diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 689de7a..e7b27c6 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -14,7 +14,7 @@ jobs: uses: actions/setup-node@v3 - name: Compile - run: yarn && yarn build + run: npm build publish: needs: [ compile ] @@ -29,10 +29,10 @@ jobs: uses: actions/setup-node@v3 - name: Install dependencies - run: yarn install + run: npm install - name: Build - run: yarn build + run: npm build - name: Publish to npm run: | diff --git a/package-lock.json b/package-lock.json index df2ba53..4a104d3 100644 --- a/package-lock.json +++ b/package-lock.json @@ -8,7 +8,6 @@ "name": "@squidex/squidex", "version": "1.2.1", "dependencies": { - "cross-env": "^7.0.3", "url-join": "4.0.1" }, "devDependencies": { @@ -17,6 +16,7 @@ "@babel/preset-typescript": "^7.24.7", "@types/jest": "^29.5.12", "@types/node": "17.0.33", + "cross-env": "^7.0.3", "jest": "^29.7.0", "prettier": "2.7.1", "typescript": "4.6.4" @@ -3213,6 +3213,7 @@ "version": "7.0.3", "resolved": "https://registry.npmjs.org/cross-env/-/cross-env-7.0.3.tgz", "integrity": "sha512-+/HKd6EgcQCJGh2PSjZuUitQBQynKor4wrFbRg4DtAgS1aWO+gU52xpH7M9ScGgXSYmAVS9bIJ8EzuaGw0oNAw==", + "dev": true, "dependencies": { "cross-spawn": "^7.0.1" }, @@ -3230,6 +3231,7 @@ "version": "7.0.3", "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.3.tgz", "integrity": "sha512-iRDPJKUPVEND7dHPO8rkbOnPpyDygcDFtWjpeWNCgy8WP2rXcxXL8TskReQl6OrB2G7+UJrags1q15Fudc7G6w==", + "dev": true, "dependencies": { "path-key": "^3.1.0", "shebang-command": "^2.0.0", @@ -3706,7 +3708,8 @@ "node_modules/isexe": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz", - "integrity": "sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==" + "integrity": "sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==", + "dev": true }, "node_modules/istanbul-lib-coverage": { "version": "3.2.2", @@ -5699,6 +5702,7 @@ "version": "3.1.1", "resolved": "https://registry.npmjs.org/path-key/-/path-key-3.1.1.tgz", "integrity": "sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==", + "dev": true, "engines": { "node": ">=8" } @@ -5964,6 +5968,7 @@ "version": "2.0.0", "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-2.0.0.tgz", "integrity": "sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==", + "dev": true, "dependencies": { "shebang-regex": "^3.0.0" }, @@ -5975,6 +5980,7 @@ "version": "3.0.0", "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-3.0.0.tgz", "integrity": "sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==", + "dev": true, "engines": { "node": ">=8" } @@ -6316,6 +6322,7 @@ "version": "2.0.2", "resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz", "integrity": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==", + "dev": true, "dependencies": { "isexe": "^2.0.0" }, diff --git a/src/generated/models/AddFieldDto.ts b/src/generated/models/AddFieldDto.ts index 9f08018..ae11ef8 100644 --- a/src/generated/models/AddFieldDto.ts +++ b/src/generated/models/AddFieldDto.ts @@ -50,7 +50,7 @@ export interface AddFieldDto { /** * Check if a given object implements the AddFieldDto interface. */ -export function instanceOfAddFieldDto(value: object): value is AddFieldDto { +export function instanceOfAddFieldDto(value: any): value is AddFieldDto { if (!('name' in value) || value['name'] === undefined) return false; if (!('properties' in value) || value['properties'] === undefined) return false; return true; diff --git a/src/generated/models/AddLanguageDto.ts b/src/generated/models/AddLanguageDto.ts index f19532a..5aaaa65 100644 --- a/src/generated/models/AddLanguageDto.ts +++ b/src/generated/models/AddLanguageDto.ts @@ -31,7 +31,7 @@ export interface AddLanguageDto { /** * Check if a given object implements the AddLanguageDto interface. */ -export function instanceOfAddLanguageDto(value: object): value is AddLanguageDto { +export function instanceOfAddLanguageDto(value: any): value is AddLanguageDto { if (!('language' in value) || value['language'] === undefined) return false; return true; } diff --git a/src/generated/models/AddRoleDto.ts b/src/generated/models/AddRoleDto.ts index f01a534..3a82e52 100644 --- a/src/generated/models/AddRoleDto.ts +++ b/src/generated/models/AddRoleDto.ts @@ -31,7 +31,7 @@ export interface AddRoleDto { /** * Check if a given object implements the AddRoleDto interface. */ -export function instanceOfAddRoleDto(value: object): value is AddRoleDto { +export function instanceOfAddRoleDto(value: any): value is AddRoleDto { if (!('name' in value) || value['name'] === undefined) return false; return true; } diff --git a/src/generated/models/AddWorkflowDto.ts b/src/generated/models/AddWorkflowDto.ts index 4f2b1d0..eaceaf7 100644 --- a/src/generated/models/AddWorkflowDto.ts +++ b/src/generated/models/AddWorkflowDto.ts @@ -31,7 +31,7 @@ export interface AddWorkflowDto { /** * Check if a given object implements the AddWorkflowDto interface. */ -export function instanceOfAddWorkflowDto(value: object): value is AddWorkflowDto { +export function instanceOfAddWorkflowDto(value: any): value is AddWorkflowDto { if (!('name' in value) || value['name'] === undefined) return false; return true; } diff --git a/src/generated/models/AlgoliaRuleActionDto.ts b/src/generated/models/AlgoliaRuleActionDto.ts index 032fe6a..3f1be70 100644 --- a/src/generated/models/AlgoliaRuleActionDto.ts +++ b/src/generated/models/AlgoliaRuleActionDto.ts @@ -62,7 +62,7 @@ export interface AlgoliaRuleActionDto extends RuleActionDto { /** * Check if a given object implements the AlgoliaRuleActionDto interface. */ -export function instanceOfAlgoliaRuleActionDto(value: object): value is AlgoliaRuleActionDto { +export function instanceOfAlgoliaRuleActionDto(value: any): value is AlgoliaRuleActionDto { if (!('appId' in value) || value['appId'] === undefined) return false; if (!('apiKey' in value) || value['apiKey'] === undefined) return false; if (!('indexName' in value) || value['indexName'] === undefined) return false; diff --git a/src/generated/models/AllContentsByPostDto.ts b/src/generated/models/AllContentsByPostDto.ts index 3f7bfc7..010303a 100644 --- a/src/generated/models/AllContentsByPostDto.ts +++ b/src/generated/models/AllContentsByPostDto.ts @@ -67,7 +67,7 @@ export interface AllContentsByPostDto { /** * Check if a given object implements the AllContentsByPostDto interface. */ -export function instanceOfAllContentsByPostDto(value: object): value is AllContentsByPostDto { +export function instanceOfAllContentsByPostDto(value: any): value is AllContentsByPostDto { return true; } diff --git a/src/generated/models/AnnotateAssetDto.ts b/src/generated/models/AnnotateAssetDto.ts index 9403ae7..b68353f 100644 --- a/src/generated/models/AnnotateAssetDto.ts +++ b/src/generated/models/AnnotateAssetDto.ts @@ -55,7 +55,7 @@ export interface AnnotateAssetDto { /** * Check if a given object implements the AnnotateAssetDto interface. */ -export function instanceOfAnnotateAssetDto(value: object): value is AnnotateAssetDto { +export function instanceOfAnnotateAssetDto(value: any): value is AnnotateAssetDto { return true; } diff --git a/src/generated/models/AppDto.ts b/src/generated/models/AppDto.ts index d82745a..4414518 100644 --- a/src/generated/models/AppDto.ts +++ b/src/generated/models/AppDto.ts @@ -117,7 +117,7 @@ export interface AppDto { /** * Check if a given object implements the AppDto interface. */ -export function instanceOfAppDto(value: object): value is AppDto { +export function instanceOfAppDto(value: any): value is AppDto { if (!('links' in value) || value['links'] === undefined) return false; if (!('id' in value) || value['id'] === undefined) return false; if (!('name' in value) || value['name'] === undefined) return false; @@ -164,7 +164,7 @@ export function AppDtoToJSON(value?: AppDto | null, ignoreDiscriminator = false) } return { - '_links': (mapValues(value['links'], ResourceLinkToJSON)), + '_links': (mapValues(value['links'], x => ResourceLinkToJSON(x))), 'id': value['id'], 'name': value['name'], 'label': value['label'], diff --git a/src/generated/models/AppLanguageDto.ts b/src/generated/models/AppLanguageDto.ts index e356785..2d87e33 100644 --- a/src/generated/models/AppLanguageDto.ts +++ b/src/generated/models/AppLanguageDto.ts @@ -68,7 +68,7 @@ export interface AppLanguageDto { /** * Check if a given object implements the AppLanguageDto interface. */ -export function instanceOfAppLanguageDto(value: object): value is AppLanguageDto { +export function instanceOfAppLanguageDto(value: any): value is AppLanguageDto { if (!('links' in value) || value['links'] === undefined) return false; if (!('iso2Code' in value) || value['iso2Code'] === undefined) return false; if (!('englishName' in value) || value['englishName'] === undefined) return false; @@ -103,7 +103,7 @@ export function AppLanguageDtoToJSON(value?: AppLanguageDto | null, ignoreDiscri } return { - '_links': (mapValues(value['links'], ResourceLinkToJSON)), + '_links': (mapValues(value['links'], x => ResourceLinkToJSON(x))), 'iso2Code': value['iso2Code'], 'englishName': value['englishName'], 'fallback': value['fallback'], diff --git a/src/generated/models/AppLanguagesDto.ts b/src/generated/models/AppLanguagesDto.ts index 991d70a..400832b 100644 --- a/src/generated/models/AppLanguagesDto.ts +++ b/src/generated/models/AppLanguagesDto.ts @@ -50,7 +50,7 @@ export interface AppLanguagesDto { /** * Check if a given object implements the AppLanguagesDto interface. */ -export function instanceOfAppLanguagesDto(value: object): value is AppLanguagesDto { +export function instanceOfAppLanguagesDto(value: any): value is AppLanguagesDto { if (!('links' in value) || value['links'] === undefined) return false; if (!('items' in value) || value['items'] === undefined) return false; return true; @@ -77,7 +77,7 @@ export function AppLanguagesDtoToJSON(value?: AppLanguagesDto | null, ignoreDisc } return { - '_links': (mapValues(value['links'], ResourceLinkToJSON)), - 'items': ((value['items'] as Array).map(AppLanguageDtoToJSON)), + '_links': (mapValues(value['links'], x => ResourceLinkToJSON(x))), + 'items': ((value['items'] as Array).map(x => AppLanguageDtoToJSON(x))), }; } diff --git a/src/generated/models/AppSettingsDto.ts b/src/generated/models/AppSettingsDto.ts index 08ef43d..4b238ed 100644 --- a/src/generated/models/AppSettingsDto.ts +++ b/src/generated/models/AppSettingsDto.ts @@ -80,7 +80,7 @@ export interface AppSettingsDto { /** * Check if a given object implements the AppSettingsDto interface. */ -export function instanceOfAppSettingsDto(value: object): value is AppSettingsDto { +export function instanceOfAppSettingsDto(value: any): value is AppSettingsDto { if (!('links' in value) || value['links'] === undefined) return false; if (!('patterns' in value) || value['patterns'] === undefined) return false; if (!('editors' in value) || value['editors'] === undefined) return false; @@ -115,9 +115,9 @@ export function AppSettingsDtoToJSON(value?: AppSettingsDto | null, ignoreDiscri } return { - '_links': (mapValues(value['links'], ResourceLinkToJSON)), - 'patterns': ((value['patterns'] as Array).map(PatternDtoToJSON)), - 'editors': ((value['editors'] as Array).map(EditorDtoToJSON)), + '_links': (mapValues(value['links'], x => ResourceLinkToJSON(x))), + 'patterns': ((value['patterns'] as Array).map(x => PatternDtoToJSON(x))), + 'editors': ((value['editors'] as Array).map(x => EditorDtoToJSON(x))), 'hideScheduler': value['hideScheduler'], 'hideDateTimeModeButton': value['hideDateTimeModeButton'], 'version': value['version'], diff --git a/src/generated/models/ArrayFieldPropertiesDto.ts b/src/generated/models/ArrayFieldPropertiesDto.ts index 30ff398..07741fe 100644 --- a/src/generated/models/ArrayFieldPropertiesDto.ts +++ b/src/generated/models/ArrayFieldPropertiesDto.ts @@ -64,7 +64,7 @@ export interface ArrayFieldPropertiesDto extends FieldPropertiesDto { /** * Check if a given object implements the ArrayFieldPropertiesDto interface. */ -export function instanceOfArrayFieldPropertiesDto(value: object): value is ArrayFieldPropertiesDto { +export function instanceOfArrayFieldPropertiesDto(value: any): value is ArrayFieldPropertiesDto { return true; } diff --git a/src/generated/models/AssetChangedRuleTriggerDto.ts b/src/generated/models/AssetChangedRuleTriggerDto.ts index e92b90d..b8f6569 100644 --- a/src/generated/models/AssetChangedRuleTriggerDto.ts +++ b/src/generated/models/AssetChangedRuleTriggerDto.ts @@ -38,7 +38,7 @@ export interface AssetChangedRuleTriggerDto extends RuleTriggerDto { /** * Check if a given object implements the AssetChangedRuleTriggerDto interface. */ -export function instanceOfAssetChangedRuleTriggerDto(value: object): value is AssetChangedRuleTriggerDto { +export function instanceOfAssetChangedRuleTriggerDto(value: any): value is AssetChangedRuleTriggerDto { return true; } diff --git a/src/generated/models/AssetDto.ts b/src/generated/models/AssetDto.ts index f12ecd6..2dc1a06 100644 --- a/src/generated/models/AssetDto.ts +++ b/src/generated/models/AssetDto.ts @@ -199,7 +199,7 @@ export interface AssetDto { /** * Check if a given object implements the AssetDto interface. */ -export function instanceOfAssetDto(value: object): value is AssetDto { +export function instanceOfAssetDto(value: any): value is AssetDto { if (!('links' in value) || value['links'] === undefined) return false; if (!('id' in value) || value['id'] === undefined) return false; if (!('parentId' in value) || value['parentId'] === undefined) return false; @@ -266,7 +266,7 @@ export function AssetDtoToJSON(value?: AssetDto | null, ignoreDiscriminator = fa } return { - '_links': (mapValues(value['links'], ResourceLinkToJSON)), + '_links': (mapValues(value['links'], x => ResourceLinkToJSON(x))), 'id': value['id'], 'parentId': value['parentId'], 'fileName': value['fileName'], diff --git a/src/generated/models/AssetFolderDto.ts b/src/generated/models/AssetFolderDto.ts index 5774d2f..40f1209 100644 --- a/src/generated/models/AssetFolderDto.ts +++ b/src/generated/models/AssetFolderDto.ts @@ -62,7 +62,7 @@ export interface AssetFolderDto { /** * Check if a given object implements the AssetFolderDto interface. */ -export function instanceOfAssetFolderDto(value: object): value is AssetFolderDto { +export function instanceOfAssetFolderDto(value: any): value is AssetFolderDto { if (!('links' in value) || value['links'] === undefined) return false; if (!('id' in value) || value['id'] === undefined) return false; if (!('parentId' in value) || value['parentId'] === undefined) return false; @@ -95,7 +95,7 @@ export function AssetFolderDtoToJSON(value?: AssetFolderDto | null, ignoreDiscri } return { - '_links': (mapValues(value['links'], ResourceLinkToJSON)), + '_links': (mapValues(value['links'], x => ResourceLinkToJSON(x))), 'id': value['id'], 'parentId': value['parentId'], 'folderName': value['folderName'], diff --git a/src/generated/models/AssetFoldersDto.ts b/src/generated/models/AssetFoldersDto.ts index 53c4817..e320d0b 100644 --- a/src/generated/models/AssetFoldersDto.ts +++ b/src/generated/models/AssetFoldersDto.ts @@ -62,7 +62,7 @@ export interface AssetFoldersDto { /** * Check if a given object implements the AssetFoldersDto interface. */ -export function instanceOfAssetFoldersDto(value: object): value is AssetFoldersDto { +export function instanceOfAssetFoldersDto(value: any): value is AssetFoldersDto { if (!('links' in value) || value['links'] === undefined) return false; if (!('total' in value) || value['total'] === undefined) return false; if (!('items' in value) || value['items'] === undefined) return false; @@ -93,9 +93,9 @@ export function AssetFoldersDtoToJSON(value?: AssetFoldersDto | null, ignoreDisc } return { - '_links': (mapValues(value['links'], ResourceLinkToJSON)), + '_links': (mapValues(value['links'], x => ResourceLinkToJSON(x))), 'total': value['total'], - 'items': ((value['items'] as Array).map(AssetFolderDtoToJSON)), - 'path': ((value['path'] as Array).map(AssetFolderDtoToJSON)), + 'items': ((value['items'] as Array).map(x => AssetFolderDtoToJSON(x))), + 'path': ((value['path'] as Array).map(x => AssetFolderDtoToJSON(x))), }; } diff --git a/src/generated/models/AssetMeta.ts b/src/generated/models/AssetMeta.ts index 07f11ca..f407c06 100644 --- a/src/generated/models/AssetMeta.ts +++ b/src/generated/models/AssetMeta.ts @@ -31,7 +31,7 @@ export interface AssetMeta { /** * Check if a given object implements the AssetMeta interface. */ -export function instanceOfAssetMeta(value: object): value is AssetMeta { +export function instanceOfAssetMeta(value: any): value is AssetMeta { if (!('isDuplicate' in value) || value['isDuplicate'] === undefined) return false; return true; } diff --git a/src/generated/models/AssetScriptsDto.ts b/src/generated/models/AssetScriptsDto.ts index c24b223..32b86d2 100644 --- a/src/generated/models/AssetScriptsDto.ts +++ b/src/generated/models/AssetScriptsDto.ts @@ -86,7 +86,7 @@ export interface AssetScriptsDto { /** * Check if a given object implements the AssetScriptsDto interface. */ -export function instanceOfAssetScriptsDto(value: object): value is AssetScriptsDto { +export function instanceOfAssetScriptsDto(value: any): value is AssetScriptsDto { if (!('links' in value) || value['links'] === undefined) return false; if (!('version' in value) || value['version'] === undefined) return false; return true; @@ -120,7 +120,7 @@ export function AssetScriptsDtoToJSON(value?: AssetScriptsDto | null, ignoreDisc } return { - '_links': (mapValues(value['links'], ResourceLinkToJSON)), + '_links': (mapValues(value['links'], x => ResourceLinkToJSON(x))), 'query': value['query'], 'queryPre': value['queryPre'], 'create': value['create'], diff --git a/src/generated/models/AssetsDto.ts b/src/generated/models/AssetsDto.ts index a5b9b7b..152732d 100644 --- a/src/generated/models/AssetsDto.ts +++ b/src/generated/models/AssetsDto.ts @@ -56,7 +56,7 @@ export interface AssetsDto { /** * Check if a given object implements the AssetsDto interface. */ -export function instanceOfAssetsDto(value: object): value is AssetsDto { +export function instanceOfAssetsDto(value: any): value is AssetsDto { if (!('links' in value) || value['links'] === undefined) return false; if (!('total' in value) || value['total'] === undefined) return false; if (!('items' in value) || value['items'] === undefined) return false; @@ -85,8 +85,8 @@ export function AssetsDtoToJSON(value?: AssetsDto | null, ignoreDiscriminator = } return { - '_links': (mapValues(value['links'], ResourceLinkToJSON)), + '_links': (mapValues(value['links'], x => ResourceLinkToJSON(x))), 'total': value['total'], - 'items': ((value['items'] as Array).map(AssetDtoToJSON)), + 'items': ((value['items'] as Array).map(x => AssetDtoToJSON(x))), }; } diff --git a/src/generated/models/AssetsFieldPropertiesDto.ts b/src/generated/models/AssetsFieldPropertiesDto.ts index a78896d..4964cf1 100644 --- a/src/generated/models/AssetsFieldPropertiesDto.ts +++ b/src/generated/models/AssetsFieldPropertiesDto.ts @@ -174,7 +174,7 @@ export interface AssetsFieldPropertiesDto extends FieldPropertiesDto { /** * Check if a given object implements the AssetsFieldPropertiesDto interface. */ -export function instanceOfAssetsFieldPropertiesDto(value: object): value is AssetsFieldPropertiesDto { +export function instanceOfAssetsFieldPropertiesDto(value: any): value is AssetsFieldPropertiesDto { return true; } diff --git a/src/generated/models/AssignContributorDto.ts b/src/generated/models/AssignContributorDto.ts index cc54977..698ff1e 100644 --- a/src/generated/models/AssignContributorDto.ts +++ b/src/generated/models/AssignContributorDto.ts @@ -43,7 +43,7 @@ export interface AssignContributorDto { /** * Check if a given object implements the AssignContributorDto interface. */ -export function instanceOfAssignContributorDto(value: object): value is AssignContributorDto { +export function instanceOfAssignContributorDto(value: any): value is AssignContributorDto { if (!('contributorId' in value) || value['contributorId'] === undefined) return false; return true; } diff --git a/src/generated/models/AuthSchemeDto.ts b/src/generated/models/AuthSchemeDto.ts index 1629051..00773ac 100644 --- a/src/generated/models/AuthSchemeDto.ts +++ b/src/generated/models/AuthSchemeDto.ts @@ -61,7 +61,7 @@ export interface AuthSchemeDto { /** * Check if a given object implements the AuthSchemeDto interface. */ -export function instanceOfAuthSchemeDto(value: object): value is AuthSchemeDto { +export function instanceOfAuthSchemeDto(value: any): value is AuthSchemeDto { if (!('domain' in value) || value['domain'] === undefined) return false; if (!('displayName' in value) || value['displayName'] === undefined) return false; if (!('clientId' in value) || value['clientId'] === undefined) return false; diff --git a/src/generated/models/AuthSchemeResponseDto.ts b/src/generated/models/AuthSchemeResponseDto.ts index 48cef47..230cedb 100644 --- a/src/generated/models/AuthSchemeResponseDto.ts +++ b/src/generated/models/AuthSchemeResponseDto.ts @@ -50,7 +50,7 @@ export interface AuthSchemeResponseDto { /** * Check if a given object implements the AuthSchemeResponseDto interface. */ -export function instanceOfAuthSchemeResponseDto(value: object): value is AuthSchemeResponseDto { +export function instanceOfAuthSchemeResponseDto(value: any): value is AuthSchemeResponseDto { if (!('links' in value) || value['links'] === undefined) return false; return true; } @@ -76,7 +76,7 @@ export function AuthSchemeResponseDtoToJSON(value?: AuthSchemeResponseDto | null } return { - '_links': (mapValues(value['links'], ResourceLinkToJSON)), + '_links': (mapValues(value['links'], x => ResourceLinkToJSON(x))), 'scheme': AuthSchemeDtoToJSON(value['scheme']), }; } diff --git a/src/generated/models/AuthSchemeValueDto.ts b/src/generated/models/AuthSchemeValueDto.ts index cf6b2a3..18e018f 100644 --- a/src/generated/models/AuthSchemeValueDto.ts +++ b/src/generated/models/AuthSchemeValueDto.ts @@ -38,7 +38,7 @@ export interface AuthSchemeValueDto { /** * Check if a given object implements the AuthSchemeValueDto interface. */ -export function instanceOfAuthSchemeValueDto(value: object): value is AuthSchemeValueDto { +export function instanceOfAuthSchemeValueDto(value: any): value is AuthSchemeValueDto { return true; } diff --git a/src/generated/models/AzureQueueRuleActionDto.ts b/src/generated/models/AzureQueueRuleActionDto.ts index 9f417d5..cb3c341 100644 --- a/src/generated/models/AzureQueueRuleActionDto.ts +++ b/src/generated/models/AzureQueueRuleActionDto.ts @@ -50,7 +50,7 @@ export interface AzureQueueRuleActionDto extends RuleActionDto { /** * Check if a given object implements the AzureQueueRuleActionDto interface. */ -export function instanceOfAzureQueueRuleActionDto(value: object): value is AzureQueueRuleActionDto { +export function instanceOfAzureQueueRuleActionDto(value: any): value is AzureQueueRuleActionDto { if (!('connectionString' in value) || value['connectionString'] === undefined) return false; if (!('queue' in value) || value['queue'] === undefined) return false; return true; diff --git a/src/generated/models/BackupJobDto.ts b/src/generated/models/BackupJobDto.ts index c759ae1..7f6ece4 100644 --- a/src/generated/models/BackupJobDto.ts +++ b/src/generated/models/BackupJobDto.ts @@ -82,7 +82,7 @@ export interface BackupJobDto { /** * Check if a given object implements the BackupJobDto interface. */ -export function instanceOfBackupJobDto(value: object): value is BackupJobDto { +export function instanceOfBackupJobDto(value: any): value is BackupJobDto { if (!('links' in value) || value['links'] === undefined) return false; if (!('id' in value) || value['id'] === undefined) return false; if (!('started' in value) || value['started'] === undefined) return false; @@ -118,7 +118,7 @@ export function BackupJobDtoToJSON(value?: BackupJobDto | null, ignoreDiscrimina } return { - '_links': (mapValues(value['links'], ResourceLinkToJSON)), + '_links': (mapValues(value['links'], x => ResourceLinkToJSON(x))), 'id': value['id'], 'started': ((value['started']).toISOString()), 'stopped': value['stopped'] == null ? undefined : ((value['stopped'] as any).toISOString()), diff --git a/src/generated/models/BackupJobsDto.ts b/src/generated/models/BackupJobsDto.ts index 40f7be1..c65b4c9 100644 --- a/src/generated/models/BackupJobsDto.ts +++ b/src/generated/models/BackupJobsDto.ts @@ -50,7 +50,7 @@ export interface BackupJobsDto { /** * Check if a given object implements the BackupJobsDto interface. */ -export function instanceOfBackupJobsDto(value: object): value is BackupJobsDto { +export function instanceOfBackupJobsDto(value: any): value is BackupJobsDto { if (!('links' in value) || value['links'] === undefined) return false; if (!('items' in value) || value['items'] === undefined) return false; return true; @@ -77,7 +77,7 @@ export function BackupJobsDtoToJSON(value?: BackupJobsDto | null, ignoreDiscrimi } return { - '_links': (mapValues(value['links'], ResourceLinkToJSON)), - 'items': ((value['items'] as Array).map(BackupJobDtoToJSON)), + '_links': (mapValues(value['links'], x => ResourceLinkToJSON(x))), + 'items': ((value['items'] as Array).map(x => BackupJobDtoToJSON(x))), }; } diff --git a/src/generated/models/BooleanFieldPropertiesDto.ts b/src/generated/models/BooleanFieldPropertiesDto.ts index 992d6d1..8feb58c 100644 --- a/src/generated/models/BooleanFieldPropertiesDto.ts +++ b/src/generated/models/BooleanFieldPropertiesDto.ts @@ -64,7 +64,7 @@ export interface BooleanFieldPropertiesDto extends FieldPropertiesDto { /** * Check if a given object implements the BooleanFieldPropertiesDto interface. */ -export function instanceOfBooleanFieldPropertiesDto(value: object): value is BooleanFieldPropertiesDto { +export function instanceOfBooleanFieldPropertiesDto(value: any): value is BooleanFieldPropertiesDto { return true; } diff --git a/src/generated/models/BulkResultDto.ts b/src/generated/models/BulkResultDto.ts index 66465be..8e6785f 100644 --- a/src/generated/models/BulkResultDto.ts +++ b/src/generated/models/BulkResultDto.ts @@ -57,7 +57,7 @@ export interface BulkResultDto { /** * Check if a given object implements the BulkResultDto interface. */ -export function instanceOfBulkResultDto(value: object): value is BulkResultDto { +export function instanceOfBulkResultDto(value: any): value is BulkResultDto { if (!('jobIndex' in value) || value['jobIndex'] === undefined) return false; return true; } diff --git a/src/generated/models/BulkUpdateAssetsDto.ts b/src/generated/models/BulkUpdateAssetsDto.ts index f035f4c..4ebcbc8 100644 --- a/src/generated/models/BulkUpdateAssetsDto.ts +++ b/src/generated/models/BulkUpdateAssetsDto.ts @@ -56,7 +56,7 @@ export interface BulkUpdateAssetsDto { /** * Check if a given object implements the BulkUpdateAssetsDto interface. */ -export function instanceOfBulkUpdateAssetsDto(value: object): value is BulkUpdateAssetsDto { +export function instanceOfBulkUpdateAssetsDto(value: any): value is BulkUpdateAssetsDto { return true; } @@ -83,7 +83,7 @@ export function BulkUpdateAssetsDtoToJSON(value?: BulkUpdateAssetsDto | null, ig } return { - 'jobs': value['jobs'] == null ? undefined : ((value['jobs'] as Array).map(BulkUpdateAssetsJobDtoToJSON)), + 'jobs': value['jobs'] == null ? undefined : ((value['jobs'] as Array).map(x => BulkUpdateAssetsJobDtoToJSON(x))), 'checkReferrers': value['checkReferrers'], 'optimizeValidation': value['optimizeValidation'], 'doNotScript': value['doNotScript'], diff --git a/src/generated/models/BulkUpdateAssetsJobDto.ts b/src/generated/models/BulkUpdateAssetsJobDto.ts index 5cbd07e..2f88e9b 100644 --- a/src/generated/models/BulkUpdateAssetsJobDto.ts +++ b/src/generated/models/BulkUpdateAssetsJobDto.ts @@ -94,7 +94,7 @@ export interface BulkUpdateAssetsJobDto { /** * Check if a given object implements the BulkUpdateAssetsJobDto interface. */ -export function instanceOfBulkUpdateAssetsJobDto(value: object): value is BulkUpdateAssetsJobDto { +export function instanceOfBulkUpdateAssetsJobDto(value: any): value is BulkUpdateAssetsJobDto { return true; } diff --git a/src/generated/models/BulkUpdateContentsDto.ts b/src/generated/models/BulkUpdateContentsDto.ts index e0430dd..4340533 100644 --- a/src/generated/models/BulkUpdateContentsDto.ts +++ b/src/generated/models/BulkUpdateContentsDto.ts @@ -82,7 +82,7 @@ export interface BulkUpdateContentsDto { /** * Check if a given object implements the BulkUpdateContentsDto interface. */ -export function instanceOfBulkUpdateContentsDto(value: object): value is BulkUpdateContentsDto { +export function instanceOfBulkUpdateContentsDto(value: any): value is BulkUpdateContentsDto { if (!('jobs' in value) || value['jobs'] === undefined) return false; return true; } @@ -114,7 +114,7 @@ export function BulkUpdateContentsDtoToJSON(value?: BulkUpdateContentsDto | null } return { - 'jobs': ((value['jobs'] as Array).map(BulkUpdateContentsJobDtoToJSON)), + 'jobs': ((value['jobs'] as Array).map(x => BulkUpdateContentsJobDtoToJSON(x))), 'publish': value['publish'], 'doNotScript': value['doNotScript'], 'enrichRequiredFields': value['enrichRequiredFields'], diff --git a/src/generated/models/BulkUpdateContentsJobDto.ts b/src/generated/models/BulkUpdateContentsJobDto.ts index 44f82a7..bcd26b9 100644 --- a/src/generated/models/BulkUpdateContentsJobDto.ts +++ b/src/generated/models/BulkUpdateContentsJobDto.ts @@ -112,7 +112,7 @@ export interface BulkUpdateContentsJobDto { /** * Check if a given object implements the BulkUpdateContentsJobDto interface. */ -export function instanceOfBulkUpdateContentsJobDto(value: object): value is BulkUpdateContentsJobDto { +export function instanceOfBulkUpdateContentsJobDto(value: any): value is BulkUpdateContentsJobDto { return true; } diff --git a/src/generated/models/CallsUsageDtoDto.ts b/src/generated/models/CallsUsageDtoDto.ts index 716b164..3388797 100644 --- a/src/generated/models/CallsUsageDtoDto.ts +++ b/src/generated/models/CallsUsageDtoDto.ts @@ -86,7 +86,7 @@ export interface CallsUsageDtoDto { /** * Check if a given object implements the CallsUsageDtoDto interface. */ -export function instanceOfCallsUsageDtoDto(value: object): value is CallsUsageDtoDto { +export function instanceOfCallsUsageDtoDto(value: any): value is CallsUsageDtoDto { if (!('totalCalls' in value) || value['totalCalls'] === undefined) return false; if (!('totalBytes' in value) || value['totalBytes'] === undefined) return false; if (!('monthCalls' in value) || value['monthCalls'] === undefined) return false; diff --git a/src/generated/models/CallsUsagePerDateDto.ts b/src/generated/models/CallsUsagePerDateDto.ts index 79c260f..1a9eb72 100644 --- a/src/generated/models/CallsUsagePerDateDto.ts +++ b/src/generated/models/CallsUsagePerDateDto.ts @@ -49,7 +49,7 @@ export interface CallsUsagePerDateDto { /** * Check if a given object implements the CallsUsagePerDateDto interface. */ -export function instanceOfCallsUsagePerDateDto(value: object): value is CallsUsagePerDateDto { +export function instanceOfCallsUsagePerDateDto(value: any): value is CallsUsagePerDateDto { if (!('date' in value) || value['date'] === undefined) return false; if (!('totalCalls' in value) || value['totalCalls'] === undefined) return false; if (!('totalBytes' in value) || value['totalBytes'] === undefined) return false; diff --git a/src/generated/models/ChangeCategoryDto.ts b/src/generated/models/ChangeCategoryDto.ts index 90adcd6..5bdfb6d 100644 --- a/src/generated/models/ChangeCategoryDto.ts +++ b/src/generated/models/ChangeCategoryDto.ts @@ -31,7 +31,7 @@ export interface ChangeCategoryDto { /** * Check if a given object implements the ChangeCategoryDto interface. */ -export function instanceOfChangeCategoryDto(value: object): value is ChangeCategoryDto { +export function instanceOfChangeCategoryDto(value: any): value is ChangeCategoryDto { return true; } diff --git a/src/generated/models/ChangePlanDto.ts b/src/generated/models/ChangePlanDto.ts index c8a0275..d1b6de7 100644 --- a/src/generated/models/ChangePlanDto.ts +++ b/src/generated/models/ChangePlanDto.ts @@ -31,7 +31,7 @@ export interface ChangePlanDto { /** * Check if a given object implements the ChangePlanDto interface. */ -export function instanceOfChangePlanDto(value: object): value is ChangePlanDto { +export function instanceOfChangePlanDto(value: any): value is ChangePlanDto { if (!('planId' in value) || value['planId'] === undefined) return false; return true; } diff --git a/src/generated/models/ChangeStatusDto.ts b/src/generated/models/ChangeStatusDto.ts index 6344959..72d55a5 100644 --- a/src/generated/models/ChangeStatusDto.ts +++ b/src/generated/models/ChangeStatusDto.ts @@ -43,7 +43,7 @@ export interface ChangeStatusDto { /** * Check if a given object implements the ChangeStatusDto interface. */ -export function instanceOfChangeStatusDto(value: object): value is ChangeStatusDto { +export function instanceOfChangeStatusDto(value: any): value is ChangeStatusDto { if (!('status' in value) || value['status'] === undefined) return false; return true; } diff --git a/src/generated/models/ClientDto.ts b/src/generated/models/ClientDto.ts index 3e72ca2..31ea544 100644 --- a/src/generated/models/ClientDto.ts +++ b/src/generated/models/ClientDto.ts @@ -80,7 +80,7 @@ export interface ClientDto { /** * Check if a given object implements the ClientDto interface. */ -export function instanceOfClientDto(value: object): value is ClientDto { +export function instanceOfClientDto(value: any): value is ClientDto { if (!('links' in value) || value['links'] === undefined) return false; if (!('id' in value) || value['id'] === undefined) return false; if (!('secret' in value) || value['secret'] === undefined) return false; @@ -118,7 +118,7 @@ export function ClientDtoToJSON(value?: ClientDto | null, ignoreDiscriminator = } return { - '_links': (mapValues(value['links'], ResourceLinkToJSON)), + '_links': (mapValues(value['links'], x => ResourceLinkToJSON(x))), 'id': value['id'], 'secret': value['secret'], 'name': value['name'], diff --git a/src/generated/models/ClientsDto.ts b/src/generated/models/ClientsDto.ts index 5b31f76..eaec908 100644 --- a/src/generated/models/ClientsDto.ts +++ b/src/generated/models/ClientsDto.ts @@ -50,7 +50,7 @@ export interface ClientsDto { /** * Check if a given object implements the ClientsDto interface. */ -export function instanceOfClientsDto(value: object): value is ClientsDto { +export function instanceOfClientsDto(value: any): value is ClientsDto { if (!('links' in value) || value['links'] === undefined) return false; if (!('items' in value) || value['items'] === undefined) return false; return true; @@ -77,7 +77,7 @@ export function ClientsDtoToJSON(value?: ClientsDto | null, ignoreDiscriminator } return { - '_links': (mapValues(value['links'], ResourceLinkToJSON)), - 'items': ((value['items'] as Array).map(ClientDtoToJSON)), + '_links': (mapValues(value['links'], x => ResourceLinkToJSON(x))), + 'items': ((value['items'] as Array).map(x => ClientDtoToJSON(x))), }; } diff --git a/src/generated/models/CommentRuleActionDto.ts b/src/generated/models/CommentRuleActionDto.ts index b4a3061..9e4b02b 100644 --- a/src/generated/models/CommentRuleActionDto.ts +++ b/src/generated/models/CommentRuleActionDto.ts @@ -44,7 +44,7 @@ export interface CommentRuleActionDto extends RuleActionDto { /** * Check if a given object implements the CommentRuleActionDto interface. */ -export function instanceOfCommentRuleActionDto(value: object): value is CommentRuleActionDto { +export function instanceOfCommentRuleActionDto(value: any): value is CommentRuleActionDto { if (!('text' in value) || value['text'] === undefined) return false; return true; } diff --git a/src/generated/models/CommentRuleTriggerDto.ts b/src/generated/models/CommentRuleTriggerDto.ts index 06977ed..f394e45 100644 --- a/src/generated/models/CommentRuleTriggerDto.ts +++ b/src/generated/models/CommentRuleTriggerDto.ts @@ -38,7 +38,7 @@ export interface CommentRuleTriggerDto extends RuleTriggerDto { /** * Check if a given object implements the CommentRuleTriggerDto interface. */ -export function instanceOfCommentRuleTriggerDto(value: object): value is CommentRuleTriggerDto { +export function instanceOfCommentRuleTriggerDto(value: any): value is CommentRuleTriggerDto { return true; } diff --git a/src/generated/models/ComponentFieldPropertiesDto.ts b/src/generated/models/ComponentFieldPropertiesDto.ts index 485f44b..f914b79 100644 --- a/src/generated/models/ComponentFieldPropertiesDto.ts +++ b/src/generated/models/ComponentFieldPropertiesDto.ts @@ -38,7 +38,7 @@ export interface ComponentFieldPropertiesDto extends FieldPropertiesDto { /** * Check if a given object implements the ComponentFieldPropertiesDto interface. */ -export function instanceOfComponentFieldPropertiesDto(value: object): value is ComponentFieldPropertiesDto { +export function instanceOfComponentFieldPropertiesDto(value: any): value is ComponentFieldPropertiesDto { return true; } diff --git a/src/generated/models/ComponentsFieldPropertiesDto.ts b/src/generated/models/ComponentsFieldPropertiesDto.ts index 60839d6..5155806 100644 --- a/src/generated/models/ComponentsFieldPropertiesDto.ts +++ b/src/generated/models/ComponentsFieldPropertiesDto.ts @@ -70,7 +70,7 @@ export interface ComponentsFieldPropertiesDto extends FieldPropertiesDto { /** * Check if a given object implements the ComponentsFieldPropertiesDto interface. */ -export function instanceOfComponentsFieldPropertiesDto(value: object): value is ComponentsFieldPropertiesDto { +export function instanceOfComponentsFieldPropertiesDto(value: any): value is ComponentsFieldPropertiesDto { return true; } diff --git a/src/generated/models/ConfigureFieldRulesDto.ts b/src/generated/models/ConfigureFieldRulesDto.ts index e0e09d5..194ef27 100644 --- a/src/generated/models/ConfigureFieldRulesDto.ts +++ b/src/generated/models/ConfigureFieldRulesDto.ts @@ -38,7 +38,7 @@ export interface ConfigureFieldRulesDto { /** * Check if a given object implements the ConfigureFieldRulesDto interface. */ -export function instanceOfConfigureFieldRulesDto(value: object): value is ConfigureFieldRulesDto { +export function instanceOfConfigureFieldRulesDto(value: any): value is ConfigureFieldRulesDto { return true; } @@ -62,6 +62,6 @@ export function ConfigureFieldRulesDtoToJSON(value?: ConfigureFieldRulesDto | nu } return { - 'fieldRules': value['fieldRules'] == null ? undefined : ((value['fieldRules'] as Array).map(FieldRuleDtoToJSON)), + 'fieldRules': value['fieldRules'] == null ? undefined : ((value['fieldRules'] as Array).map(x => FieldRuleDtoToJSON(x))), }; } diff --git a/src/generated/models/ConfigureUIFieldsDto.ts b/src/generated/models/ConfigureUIFieldsDto.ts index 24bcee7..de54d11 100644 --- a/src/generated/models/ConfigureUIFieldsDto.ts +++ b/src/generated/models/ConfigureUIFieldsDto.ts @@ -37,7 +37,7 @@ export interface ConfigureUIFieldsDto { /** * Check if a given object implements the ConfigureUIFieldsDto interface. */ -export function instanceOfConfigureUIFieldsDto(value: object): value is ConfigureUIFieldsDto { +export function instanceOfConfigureUIFieldsDto(value: any): value is ConfigureUIFieldsDto { return true; } diff --git a/src/generated/models/ContentChangedRuleTriggerDto.ts b/src/generated/models/ContentChangedRuleTriggerDto.ts index de0de18..8789988 100644 --- a/src/generated/models/ContentChangedRuleTriggerDto.ts +++ b/src/generated/models/ContentChangedRuleTriggerDto.ts @@ -56,7 +56,7 @@ export interface ContentChangedRuleTriggerDto extends RuleTriggerDto { /** * Check if a given object implements the ContentChangedRuleTriggerDto interface. */ -export function instanceOfContentChangedRuleTriggerDto(value: object): value is ContentChangedRuleTriggerDto { +export function instanceOfContentChangedRuleTriggerDto(value: any): value is ContentChangedRuleTriggerDto { if (!('handleAll' in value) || value['handleAll'] === undefined) return false; return true; } @@ -83,8 +83,8 @@ export function ContentChangedRuleTriggerDtoToJSON(value?: ContentChangedRuleTri } return { ...RuleTriggerDtoToJSON(value, true), - 'schemas': value['schemas'] == null ? undefined : ((value['schemas'] as Array).map(SchemaConditionToJSON)), - 'referencedSchemas': value['referencedSchemas'] == null ? undefined : ((value['referencedSchemas'] as Array).map(SchemaConditionToJSON)), + 'schemas': value['schemas'] == null ? undefined : ((value['schemas'] as Array).map(x => SchemaConditionToJSON(x))), + 'referencedSchemas': value['referencedSchemas'] == null ? undefined : ((value['referencedSchemas'] as Array).map(x => SchemaConditionToJSON(x))), 'handleAll': value['handleAll'], }; } diff --git a/src/generated/models/ContentDto.ts b/src/generated/models/ContentDto.ts index beb6bb9..e1e69e6 100644 --- a/src/generated/models/ContentDto.ts +++ b/src/generated/models/ContentDto.ts @@ -164,7 +164,7 @@ export interface ContentDto { /** * Check if a given object implements the ContentDto interface. */ -export function instanceOfContentDto(value: object): value is ContentDto { +export function instanceOfContentDto(value: any): value is ContentDto { if (!('links' in value) || value['links'] === undefined) return false; if (!('id' in value) || value['id'] === undefined) return false; if (!('createdBy' in value) || value['createdBy'] === undefined) return false; @@ -219,7 +219,7 @@ export function ContentDtoToJSON(value?: ContentDto | null, ignoreDiscriminator } return { - '_links': (mapValues(value['links'], ResourceLinkToJSON)), + '_links': (mapValues(value['links'], x => ResourceLinkToJSON(x))), 'id': value['id'], 'createdBy': value['createdBy'], 'lastModifiedBy': value['lastModifiedBy'], @@ -236,7 +236,7 @@ export function ContentDtoToJSON(value?: ContentDto | null, ignoreDiscriminator 'schemaId': value['schemaId'], 'schemaName': value['schemaName'], 'schemaDisplayName': value['schemaDisplayName'], - 'referenceFields': value['referenceFields'] == null ? undefined : ((value['referenceFields'] as Array).map(FieldDtoToJSON)), + 'referenceFields': value['referenceFields'] == null ? undefined : ((value['referenceFields'] as Array).map(x => FieldDtoToJSON(x))), 'isDeleted': value['isDeleted'], 'version': value['version'], }; diff --git a/src/generated/models/ContentsDto.ts b/src/generated/models/ContentsDto.ts index c2b26f6..c5550fe 100644 --- a/src/generated/models/ContentsDto.ts +++ b/src/generated/models/ContentsDto.ts @@ -68,7 +68,7 @@ export interface ContentsDto { /** * Check if a given object implements the ContentsDto interface. */ -export function instanceOfContentsDto(value: object): value is ContentsDto { +export function instanceOfContentsDto(value: any): value is ContentsDto { if (!('links' in value) || value['links'] === undefined) return false; if (!('total' in value) || value['total'] === undefined) return false; if (!('items' in value) || value['items'] === undefined) return false; @@ -99,9 +99,9 @@ export function ContentsDtoToJSON(value?: ContentsDto | null, ignoreDiscriminato } return { - '_links': (mapValues(value['links'], ResourceLinkToJSON)), + '_links': (mapValues(value['links'], x => ResourceLinkToJSON(x))), 'total': value['total'], - 'items': ((value['items'] as Array).map(ContentDtoToJSON)), - 'statuses': ((value['statuses'] as Array).map(StatusInfoDtoToJSON)), + 'items': ((value['items'] as Array).map(x => ContentDtoToJSON(x))), + 'statuses': ((value['statuses'] as Array).map(x => StatusInfoDtoToJSON(x))), }; } diff --git a/src/generated/models/ContributorDto.ts b/src/generated/models/ContributorDto.ts index a2d6187..6bd0a92 100644 --- a/src/generated/models/ContributorDto.ts +++ b/src/generated/models/ContributorDto.ts @@ -62,7 +62,7 @@ export interface ContributorDto { /** * Check if a given object implements the ContributorDto interface. */ -export function instanceOfContributorDto(value: object): value is ContributorDto { +export function instanceOfContributorDto(value: any): value is ContributorDto { if (!('links' in value) || value['links'] === undefined) return false; if (!('contributorId' in value) || value['contributorId'] === undefined) return false; if (!('contributorName' in value) || value['contributorName'] === undefined) return false; @@ -94,7 +94,7 @@ export function ContributorDtoToJSON(value?: ContributorDto | null, ignoreDiscri } return { - '_links': (mapValues(value['links'], ResourceLinkToJSON)), + '_links': (mapValues(value['links'], x => ResourceLinkToJSON(x))), 'contributorId': value['contributorId'], 'contributorName': value['contributorName'], 'contributorEmail': value['contributorEmail'], diff --git a/src/generated/models/ContributorsDto.ts b/src/generated/models/ContributorsDto.ts index 597059d..6424180 100644 --- a/src/generated/models/ContributorsDto.ts +++ b/src/generated/models/ContributorsDto.ts @@ -68,7 +68,7 @@ export interface ContributorsDto { /** * Check if a given object implements the ContributorsDto interface. */ -export function instanceOfContributorsDto(value: object): value is ContributorsDto { +export function instanceOfContributorsDto(value: any): value is ContributorsDto { if (!('links' in value) || value['links'] === undefined) return false; if (!('items' in value) || value['items'] === undefined) return false; if (!('maxContributors' in value) || value['maxContributors'] === undefined) return false; @@ -98,8 +98,8 @@ export function ContributorsDtoToJSON(value?: ContributorsDto | null, ignoreDisc } return { - '_links': (mapValues(value['links'], ResourceLinkToJSON)), - 'items': ((value['items'] as Array).map(ContributorDtoToJSON)), + '_links': (mapValues(value['links'], x => ResourceLinkToJSON(x))), + 'items': ((value['items'] as Array).map(x => ContributorDtoToJSON(x))), 'maxContributors': value['maxContributors'], '_meta': ContributorsMetadataToJSON(value['meta']), }; diff --git a/src/generated/models/ContributorsMetadata.ts b/src/generated/models/ContributorsMetadata.ts index 53bcdde..586cd0a 100644 --- a/src/generated/models/ContributorsMetadata.ts +++ b/src/generated/models/ContributorsMetadata.ts @@ -31,7 +31,7 @@ export interface ContributorsMetadata { /** * Check if a given object implements the ContributorsMetadata interface. */ -export function instanceOfContributorsMetadata(value: object): value is ContributorsMetadata { +export function instanceOfContributorsMetadata(value: any): value is ContributorsMetadata { if (!('isInvited' in value) || value['isInvited'] === undefined) return false; return true; } diff --git a/src/generated/models/CreateAppDto.ts b/src/generated/models/CreateAppDto.ts index 2fabbf3..9e5bfe7 100644 --- a/src/generated/models/CreateAppDto.ts +++ b/src/generated/models/CreateAppDto.ts @@ -37,7 +37,7 @@ export interface CreateAppDto { /** * Check if a given object implements the CreateAppDto interface. */ -export function instanceOfCreateAppDto(value: object): value is CreateAppDto { +export function instanceOfCreateAppDto(value: any): value is CreateAppDto { if (!('name' in value) || value['name'] === undefined) return false; return true; } diff --git a/src/generated/models/CreateAssetFolderDto.ts b/src/generated/models/CreateAssetFolderDto.ts index fa70e7d..db160a7 100644 --- a/src/generated/models/CreateAssetFolderDto.ts +++ b/src/generated/models/CreateAssetFolderDto.ts @@ -37,7 +37,7 @@ export interface CreateAssetFolderDto { /** * Check if a given object implements the CreateAssetFolderDto interface. */ -export function instanceOfCreateAssetFolderDto(value: object): value is CreateAssetFolderDto { +export function instanceOfCreateAssetFolderDto(value: any): value is CreateAssetFolderDto { if (!('folderName' in value) || value['folderName'] === undefined) return false; return true; } diff --git a/src/generated/models/CreateClientDto.ts b/src/generated/models/CreateClientDto.ts index 609f5ba..5fb3f96 100644 --- a/src/generated/models/CreateClientDto.ts +++ b/src/generated/models/CreateClientDto.ts @@ -31,7 +31,7 @@ export interface CreateClientDto { /** * Check if a given object implements the CreateClientDto interface. */ -export function instanceOfCreateClientDto(value: object): value is CreateClientDto { +export function instanceOfCreateClientDto(value: any): value is CreateClientDto { if (!('id' in value) || value['id'] === undefined) return false; return true; } diff --git a/src/generated/models/CreateContentRuleActionDto.ts b/src/generated/models/CreateContentRuleActionDto.ts index 762e11f..c601eaf 100644 --- a/src/generated/models/CreateContentRuleActionDto.ts +++ b/src/generated/models/CreateContentRuleActionDto.ts @@ -56,7 +56,7 @@ export interface CreateContentRuleActionDto extends RuleActionDto { /** * Check if a given object implements the CreateContentRuleActionDto interface. */ -export function instanceOfCreateContentRuleActionDto(value: object): value is CreateContentRuleActionDto { +export function instanceOfCreateContentRuleActionDto(value: any): value is CreateContentRuleActionDto { if (!('data' in value) || value['data'] === undefined) return false; if (!('schema' in value) || value['schema'] === undefined) return false; if (!('client' in value) || value['client'] === undefined) return false; diff --git a/src/generated/models/CreateRuleDto.ts b/src/generated/models/CreateRuleDto.ts index 24308fc..eef9b1c 100644 --- a/src/generated/models/CreateRuleDto.ts +++ b/src/generated/models/CreateRuleDto.ts @@ -50,7 +50,7 @@ export interface CreateRuleDto { /** * Check if a given object implements the CreateRuleDto interface. */ -export function instanceOfCreateRuleDto(value: object): value is CreateRuleDto { +export function instanceOfCreateRuleDto(value: any): value is CreateRuleDto { if (!('trigger' in value) || value['trigger'] === undefined) return false; if (!('action' in value) || value['action'] === undefined) return false; return true; diff --git a/src/generated/models/CreateSchemaDto.ts b/src/generated/models/CreateSchemaDto.ts index 297ea71..003e01b 100644 --- a/src/generated/models/CreateSchemaDto.ts +++ b/src/generated/models/CreateSchemaDto.ts @@ -131,7 +131,7 @@ export interface CreateSchemaDto { /** * Check if a given object implements the CreateSchemaDto interface. */ -export function instanceOfCreateSchemaDto(value: object): value is CreateSchemaDto { +export function instanceOfCreateSchemaDto(value: any): value is CreateSchemaDto { if (!('name' in value) || value['name'] === undefined) return false; return true; } @@ -171,9 +171,9 @@ export function CreateSchemaDtoToJSON(value?: CreateSchemaDto | null, ignoreDisc 'scripts': SchemaScriptsDtoToJSON(value['scripts']), 'fieldsInReferences': value['fieldsInReferences'], 'fieldsInLists': value['fieldsInLists'], - 'fields': value['fields'] == null ? undefined : ((value['fields'] as Array).map(UpsertSchemaFieldDtoToJSON)), + 'fields': value['fields'] == null ? undefined : ((value['fields'] as Array).map(x => UpsertSchemaFieldDtoToJSON(x))), 'previewUrls': value['previewUrls'], - 'fieldRules': value['fieldRules'] == null ? undefined : ((value['fieldRules'] as Array).map(FieldRuleDtoToJSON)), + 'fieldRules': value['fieldRules'] == null ? undefined : ((value['fieldRules'] as Array).map(x => FieldRuleDtoToJSON(x))), 'category': value['category'], 'isPublished': value['isPublished'], 'name': value['name'], diff --git a/src/generated/models/CreateTeamDto.ts b/src/generated/models/CreateTeamDto.ts index e24110b..4a352ec 100644 --- a/src/generated/models/CreateTeamDto.ts +++ b/src/generated/models/CreateTeamDto.ts @@ -31,7 +31,7 @@ export interface CreateTeamDto { /** * Check if a given object implements the CreateTeamDto interface. */ -export function instanceOfCreateTeamDto(value: object): value is CreateTeamDto { +export function instanceOfCreateTeamDto(value: any): value is CreateTeamDto { if (!('name' in value) || value['name'] === undefined) return false; return true; } diff --git a/src/generated/models/CreateUserDto.ts b/src/generated/models/CreateUserDto.ts index 7634a0f..d3187a1 100644 --- a/src/generated/models/CreateUserDto.ts +++ b/src/generated/models/CreateUserDto.ts @@ -49,7 +49,7 @@ export interface CreateUserDto { /** * Check if a given object implements the CreateUserDto interface. */ -export function instanceOfCreateUserDto(value: object): value is CreateUserDto { +export function instanceOfCreateUserDto(value: any): value is CreateUserDto { if (!('email' in value) || value['email'] === undefined) return false; if (!('displayName' in value) || value['displayName'] === undefined) return false; if (!('password' in value) || value['password'] === undefined) return false; diff --git a/src/generated/models/CurrentStorageDto.ts b/src/generated/models/CurrentStorageDto.ts index 619237a..0369f4a 100644 --- a/src/generated/models/CurrentStorageDto.ts +++ b/src/generated/models/CurrentStorageDto.ts @@ -37,7 +37,7 @@ export interface CurrentStorageDto { /** * Check if a given object implements the CurrentStorageDto interface. */ -export function instanceOfCurrentStorageDto(value: object): value is CurrentStorageDto { +export function instanceOfCurrentStorageDto(value: any): value is CurrentStorageDto { if (!('size' in value) || value['size'] === undefined) return false; if (!('maxAllowed' in value) || value['maxAllowed'] === undefined) return false; return true; diff --git a/src/generated/models/DateTimeFieldPropertiesDto.ts b/src/generated/models/DateTimeFieldPropertiesDto.ts index ed50a1d..c6589f2 100644 --- a/src/generated/models/DateTimeFieldPropertiesDto.ts +++ b/src/generated/models/DateTimeFieldPropertiesDto.ts @@ -88,7 +88,7 @@ export interface DateTimeFieldPropertiesDto extends FieldPropertiesDto { /** * Check if a given object implements the DateTimeFieldPropertiesDto interface. */ -export function instanceOfDateTimeFieldPropertiesDto(value: object): value is DateTimeFieldPropertiesDto { +export function instanceOfDateTimeFieldPropertiesDto(value: any): value is DateTimeFieldPropertiesDto { return true; } diff --git a/src/generated/models/DiscourseRuleActionDto.ts b/src/generated/models/DiscourseRuleActionDto.ts index 89b69ea..bd33b32 100644 --- a/src/generated/models/DiscourseRuleActionDto.ts +++ b/src/generated/models/DiscourseRuleActionDto.ts @@ -74,7 +74,7 @@ export interface DiscourseRuleActionDto extends RuleActionDto { /** * Check if a given object implements the DiscourseRuleActionDto interface. */ -export function instanceOfDiscourseRuleActionDto(value: object): value is DiscourseRuleActionDto { +export function instanceOfDiscourseRuleActionDto(value: any): value is DiscourseRuleActionDto { if (!('url' in value) || value['url'] === undefined) return false; if (!('apiKey' in value) || value['apiKey'] === undefined) return false; if (!('apiUsername' in value) || value['apiUsername'] === undefined) return false; diff --git a/src/generated/models/EditorDto.ts b/src/generated/models/EditorDto.ts index 56d2233..5e7efed 100644 --- a/src/generated/models/EditorDto.ts +++ b/src/generated/models/EditorDto.ts @@ -37,7 +37,7 @@ export interface EditorDto { /** * Check if a given object implements the EditorDto interface. */ -export function instanceOfEditorDto(value: object): value is EditorDto { +export function instanceOfEditorDto(value: any): value is EditorDto { if (!('name' in value) || value['name'] === undefined) return false; if (!('url' in value) || value['url'] === undefined) return false; return true; diff --git a/src/generated/models/ElasticSearchRuleActionDto.ts b/src/generated/models/ElasticSearchRuleActionDto.ts index abec035..4114167 100644 --- a/src/generated/models/ElasticSearchRuleActionDto.ts +++ b/src/generated/models/ElasticSearchRuleActionDto.ts @@ -68,7 +68,7 @@ export interface ElasticSearchRuleActionDto extends RuleActionDto { /** * Check if a given object implements the ElasticSearchRuleActionDto interface. */ -export function instanceOfElasticSearchRuleActionDto(value: object): value is ElasticSearchRuleActionDto { +export function instanceOfElasticSearchRuleActionDto(value: any): value is ElasticSearchRuleActionDto { if (!('host' in value) || value['host'] === undefined) return false; if (!('indexName' in value) || value['indexName'] === undefined) return false; return true; diff --git a/src/generated/models/EmailRuleActionDto.ts b/src/generated/models/EmailRuleActionDto.ts index b4ee0c3..124dd06 100644 --- a/src/generated/models/EmailRuleActionDto.ts +++ b/src/generated/models/EmailRuleActionDto.ts @@ -80,7 +80,7 @@ export interface EmailRuleActionDto extends RuleActionDto { /** * Check if a given object implements the EmailRuleActionDto interface. */ -export function instanceOfEmailRuleActionDto(value: object): value is EmailRuleActionDto { +export function instanceOfEmailRuleActionDto(value: any): value is EmailRuleActionDto { if (!('serverHost' in value) || value['serverHost'] === undefined) return false; if (!('serverPort' in value) || value['serverPort'] === undefined) return false; if (!('serverUsername' in value) || value['serverUsername'] === undefined) return false; diff --git a/src/generated/models/ErrorDto.ts b/src/generated/models/ErrorDto.ts index aef21d2..706365d 100644 --- a/src/generated/models/ErrorDto.ts +++ b/src/generated/models/ErrorDto.ts @@ -61,7 +61,7 @@ export interface ErrorDto { /** * Check if a given object implements the ErrorDto interface. */ -export function instanceOfErrorDto(value: object): value is ErrorDto { +export function instanceOfErrorDto(value: any): value is ErrorDto { if (!('message' in value) || value['message'] === undefined) return false; if (!('statusCode' in value) || value['statusCode'] === undefined) return false; return true; diff --git a/src/generated/models/EventConsumerDto.ts b/src/generated/models/EventConsumerDto.ts index 257984f..8467700 100644 --- a/src/generated/models/EventConsumerDto.ts +++ b/src/generated/models/EventConsumerDto.ts @@ -74,7 +74,7 @@ export interface EventConsumerDto { /** * Check if a given object implements the EventConsumerDto interface. */ -export function instanceOfEventConsumerDto(value: object): value is EventConsumerDto { +export function instanceOfEventConsumerDto(value: any): value is EventConsumerDto { if (!('links' in value) || value['links'] === undefined) return false; if (!('isStopped' in value) || value['isStopped'] === undefined) return false; if (!('isResetting' in value) || value['isResetting'] === undefined) return false; @@ -109,7 +109,7 @@ export function EventConsumerDtoToJSON(value?: EventConsumerDto | null, ignoreDi } return { - '_links': (mapValues(value['links'], ResourceLinkToJSON)), + '_links': (mapValues(value['links'], x => ResourceLinkToJSON(x))), 'isStopped': value['isStopped'], 'isResetting': value['isResetting'], 'count': value['count'], diff --git a/src/generated/models/EventConsumersDto.ts b/src/generated/models/EventConsumersDto.ts index 701d6d5..3383c80 100644 --- a/src/generated/models/EventConsumersDto.ts +++ b/src/generated/models/EventConsumersDto.ts @@ -50,7 +50,7 @@ export interface EventConsumersDto { /** * Check if a given object implements the EventConsumersDto interface. */ -export function instanceOfEventConsumersDto(value: object): value is EventConsumersDto { +export function instanceOfEventConsumersDto(value: any): value is EventConsumersDto { if (!('links' in value) || value['links'] === undefined) return false; if (!('items' in value) || value['items'] === undefined) return false; return true; @@ -77,7 +77,7 @@ export function EventConsumersDtoToJSON(value?: EventConsumersDto | null, ignore } return { - '_links': (mapValues(value['links'], ResourceLinkToJSON)), - 'items': ((value['items'] as Array).map(EventConsumerDtoToJSON)), + '_links': (mapValues(value['links'], x => ResourceLinkToJSON(x))), + 'items': ((value['items'] as Array).map(x => EventConsumerDtoToJSON(x))), }; } diff --git a/src/generated/models/FastlyRuleActionDto.ts b/src/generated/models/FastlyRuleActionDto.ts index e97b188..400c2d7 100644 --- a/src/generated/models/FastlyRuleActionDto.ts +++ b/src/generated/models/FastlyRuleActionDto.ts @@ -44,7 +44,7 @@ export interface FastlyRuleActionDto extends RuleActionDto { /** * Check if a given object implements the FastlyRuleActionDto interface. */ -export function instanceOfFastlyRuleActionDto(value: object): value is FastlyRuleActionDto { +export function instanceOfFastlyRuleActionDto(value: any): value is FastlyRuleActionDto { if (!('apiKey' in value) || value['apiKey'] === undefined) return false; if (!('serviceId' in value) || value['serviceId'] === undefined) return false; return true; diff --git a/src/generated/models/FeatureDto.ts b/src/generated/models/FeatureDto.ts index cf9b477..6e9baa7 100644 --- a/src/generated/models/FeatureDto.ts +++ b/src/generated/models/FeatureDto.ts @@ -37,7 +37,7 @@ export interface FeatureDto { /** * Check if a given object implements the FeatureDto interface. */ -export function instanceOfFeatureDto(value: object): value is FeatureDto { +export function instanceOfFeatureDto(value: any): value is FeatureDto { if (!('name' in value) || value['name'] === undefined) return false; if (!('text' in value) || value['text'] === undefined) return false; return true; diff --git a/src/generated/models/FeaturesDto.ts b/src/generated/models/FeaturesDto.ts index bafd7b1..3abb8c3 100644 --- a/src/generated/models/FeaturesDto.ts +++ b/src/generated/models/FeaturesDto.ts @@ -44,7 +44,7 @@ export interface FeaturesDto { /** * Check if a given object implements the FeaturesDto interface. */ -export function instanceOfFeaturesDto(value: object): value is FeaturesDto { +export function instanceOfFeaturesDto(value: any): value is FeaturesDto { if (!('features' in value) || value['features'] === undefined) return false; if (!('version' in value) || value['version'] === undefined) return false; return true; @@ -71,7 +71,7 @@ export function FeaturesDtoToJSON(value?: FeaturesDto | null, ignoreDiscriminato } return { - 'features': ((value['features'] as Array).map(FeatureDtoToJSON)), + 'features': ((value['features'] as Array).map(x => FeatureDtoToJSON(x))), 'version': value['version'], }; } diff --git a/src/generated/models/FieldDto.ts b/src/generated/models/FieldDto.ts index 4cc188f..9c09105 100644 --- a/src/generated/models/FieldDto.ts +++ b/src/generated/models/FieldDto.ts @@ -98,7 +98,7 @@ export interface FieldDto { /** * Check if a given object implements the FieldDto interface. */ -export function instanceOfFieldDto(value: object): value is FieldDto { +export function instanceOfFieldDto(value: any): value is FieldDto { if (!('links' in value) || value['links'] === undefined) return false; if (!('fieldId' in value) || value['fieldId'] === undefined) return false; if (!('name' in value) || value['name'] === undefined) return false; @@ -138,7 +138,7 @@ export function FieldDtoToJSON(value?: FieldDto | null, ignoreDiscriminator = fa } return { - '_links': (mapValues(value['links'], ResourceLinkToJSON)), + '_links': (mapValues(value['links'], x => ResourceLinkToJSON(x))), 'fieldId': value['fieldId'], 'name': value['name'], 'isHidden': value['isHidden'], @@ -146,6 +146,6 @@ export function FieldDtoToJSON(value?: FieldDto | null, ignoreDiscriminator = fa 'isDisabled': value['isDisabled'], 'partitioning': value['partitioning'], 'properties': FieldPropertiesDtoToJSON(value['properties']), - 'nested': value['nested'] == null ? undefined : ((value['nested'] as Array).map(NestedFieldDtoToJSON)), + 'nested': value['nested'] == null ? undefined : ((value['nested'] as Array).map(x => NestedFieldDtoToJSON(x))), }; } diff --git a/src/generated/models/FieldPropertiesDto.ts b/src/generated/models/FieldPropertiesDto.ts index f6d4782..70b4198 100644 --- a/src/generated/models/FieldPropertiesDto.ts +++ b/src/generated/models/FieldPropertiesDto.ts @@ -149,7 +149,7 @@ export function isUIFieldPropertiesDto(value: FieldPropertiesDto): value is UIFi /** * Check if a given object implements the FieldPropertiesDto interface. */ -export function instanceOfFieldPropertiesDto(value: object): value is FieldPropertiesDto { +export function instanceOfFieldPropertiesDto(value: any): value is FieldPropertiesDto { if (!('fieldType' in value) || value['fieldType'] === undefined) return false; return true; } diff --git a/src/generated/models/FieldRuleDto.ts b/src/generated/models/FieldRuleDto.ts index 9c44c09..616227c 100644 --- a/src/generated/models/FieldRuleDto.ts +++ b/src/generated/models/FieldRuleDto.ts @@ -52,7 +52,7 @@ export interface FieldRuleDto { /** * Check if a given object implements the FieldRuleDto interface. */ -export function instanceOfFieldRuleDto(value: object): value is FieldRuleDto { +export function instanceOfFieldRuleDto(value: any): value is FieldRuleDto { if (!('action' in value) || value['action'] === undefined) return false; if (!('field' in value) || value['field'] === undefined) return false; return true; diff --git a/src/generated/models/GeolocationFieldPropertiesDto.ts b/src/generated/models/GeolocationFieldPropertiesDto.ts index 4e98e69..e70352d 100644 --- a/src/generated/models/GeolocationFieldPropertiesDto.ts +++ b/src/generated/models/GeolocationFieldPropertiesDto.ts @@ -46,7 +46,7 @@ export interface GeolocationFieldPropertiesDto extends FieldPropertiesDto { /** * Check if a given object implements the GeolocationFieldPropertiesDto interface. */ -export function instanceOfGeolocationFieldPropertiesDto(value: object): value is GeolocationFieldPropertiesDto { +export function instanceOfGeolocationFieldPropertiesDto(value: any): value is GeolocationFieldPropertiesDto { return true; } diff --git a/src/generated/models/HistoryEventDto.ts b/src/generated/models/HistoryEventDto.ts index 22ee051..1c55f7f 100644 --- a/src/generated/models/HistoryEventDto.ts +++ b/src/generated/models/HistoryEventDto.ts @@ -61,7 +61,7 @@ export interface HistoryEventDto { /** * Check if a given object implements the HistoryEventDto interface. */ -export function instanceOfHistoryEventDto(value: object): value is HistoryEventDto { +export function instanceOfHistoryEventDto(value: any): value is HistoryEventDto { if (!('message' in value) || value['message'] === undefined) return false; if (!('eventType' in value) || value['eventType'] === undefined) return false; if (!('actor' in value) || value['actor'] === undefined) return false; diff --git a/src/generated/models/ImportContentsDto.ts b/src/generated/models/ImportContentsDto.ts index d126362..e20dc2b 100644 --- a/src/generated/models/ImportContentsDto.ts +++ b/src/generated/models/ImportContentsDto.ts @@ -50,7 +50,7 @@ export interface ImportContentsDto { /** * Check if a given object implements the ImportContentsDto interface. */ -export function instanceOfImportContentsDto(value: object): value is ImportContentsDto { +export function instanceOfImportContentsDto(value: any): value is ImportContentsDto { if (!('datas' in value) || value['datas'] === undefined) return false; return true; } diff --git a/src/generated/models/JobDto.ts b/src/generated/models/JobDto.ts index 8d95df7..44f78c1 100644 --- a/src/generated/models/JobDto.ts +++ b/src/generated/models/JobDto.ts @@ -106,7 +106,7 @@ export interface JobDto { /** * Check if a given object implements the JobDto interface. */ -export function instanceOfJobDto(value: object): value is JobDto { +export function instanceOfJobDto(value: any): value is JobDto { if (!('links' in value) || value['links'] === undefined) return false; if (!('id' in value) || value['id'] === undefined) return false; if (!('started' in value) || value['started'] === undefined) return false; @@ -148,7 +148,7 @@ export function JobDtoToJSON(value?: JobDto | null, ignoreDiscriminator = false) } return { - '_links': (mapValues(value['links'], ResourceLinkToJSON)), + '_links': (mapValues(value['links'], x => ResourceLinkToJSON(x))), 'id': value['id'], 'started': ((value['started']).toISOString()), 'stopped': value['stopped'] == null ? undefined : ((value['stopped'] as any).toISOString()), @@ -156,7 +156,7 @@ export function JobDtoToJSON(value?: JobDto | null, ignoreDiscriminator = false) 'taskName': value['taskName'], 'description': value['description'], 'taskArguments': value['taskArguments'], - 'log': ((value['log'] as Array).map(JobLogMessageDtoToJSON)), + 'log': ((value['log'] as Array).map(x => JobLogMessageDtoToJSON(x))), 'canDownload': value['canDownload'], }; } diff --git a/src/generated/models/JobLogMessageDto.ts b/src/generated/models/JobLogMessageDto.ts index 058a4a0..42fdcaa 100644 --- a/src/generated/models/JobLogMessageDto.ts +++ b/src/generated/models/JobLogMessageDto.ts @@ -37,7 +37,7 @@ export interface JobLogMessageDto { /** * Check if a given object implements the JobLogMessageDto interface. */ -export function instanceOfJobLogMessageDto(value: object): value is JobLogMessageDto { +export function instanceOfJobLogMessageDto(value: any): value is JobLogMessageDto { if (!('timestamp' in value) || value['timestamp'] === undefined) return false; if (!('message' in value) || value['message'] === undefined) return false; return true; diff --git a/src/generated/models/JobsDto.ts b/src/generated/models/JobsDto.ts index ce48482..c3e269b 100644 --- a/src/generated/models/JobsDto.ts +++ b/src/generated/models/JobsDto.ts @@ -50,7 +50,7 @@ export interface JobsDto { /** * Check if a given object implements the JobsDto interface. */ -export function instanceOfJobsDto(value: object): value is JobsDto { +export function instanceOfJobsDto(value: any): value is JobsDto { if (!('links' in value) || value['links'] === undefined) return false; if (!('items' in value) || value['items'] === undefined) return false; return true; @@ -77,7 +77,7 @@ export function JobsDtoToJSON(value?: JobsDto | null, ignoreDiscriminator = fals } return { - '_links': (mapValues(value['links'], ResourceLinkToJSON)), - 'items': ((value['items'] as Array).map(JobDtoToJSON)), + '_links': (mapValues(value['links'], x => ResourceLinkToJSON(x))), + 'items': ((value['items'] as Array).map(x => JobDtoToJSON(x))), }; } diff --git a/src/generated/models/JsonFieldPropertiesDto.ts b/src/generated/models/JsonFieldPropertiesDto.ts index d4d7ef4..001254c 100644 --- a/src/generated/models/JsonFieldPropertiesDto.ts +++ b/src/generated/models/JsonFieldPropertiesDto.ts @@ -38,7 +38,7 @@ export interface JsonFieldPropertiesDto extends FieldPropertiesDto { /** * Check if a given object implements the JsonFieldPropertiesDto interface. */ -export function instanceOfJsonFieldPropertiesDto(value: object): value is JsonFieldPropertiesDto { +export function instanceOfJsonFieldPropertiesDto(value: any): value is JsonFieldPropertiesDto { return true; } diff --git a/src/generated/models/LanguageDto.ts b/src/generated/models/LanguageDto.ts index ee3a10c..889f952 100644 --- a/src/generated/models/LanguageDto.ts +++ b/src/generated/models/LanguageDto.ts @@ -43,7 +43,7 @@ export interface LanguageDto { /** * Check if a given object implements the LanguageDto interface. */ -export function instanceOfLanguageDto(value: object): value is LanguageDto { +export function instanceOfLanguageDto(value: any): value is LanguageDto { if (!('iso2Code' in value) || value['iso2Code'] === undefined) return false; if (!('englishName' in value) || value['englishName'] === undefined) return false; if (!('nativeName' in value) || value['nativeName'] === undefined) return false; diff --git a/src/generated/models/LogDownloadDto.ts b/src/generated/models/LogDownloadDto.ts index 9c5ff4d..344e031 100644 --- a/src/generated/models/LogDownloadDto.ts +++ b/src/generated/models/LogDownloadDto.ts @@ -31,7 +31,7 @@ export interface LogDownloadDto { /** * Check if a given object implements the LogDownloadDto interface. */ -export function instanceOfLogDownloadDto(value: object): value is LogDownloadDto { +export function instanceOfLogDownloadDto(value: any): value is LogDownloadDto { return true; } diff --git a/src/generated/models/ManualRuleTriggerDto.ts b/src/generated/models/ManualRuleTriggerDto.ts index 7a04276..89c5b9d 100644 --- a/src/generated/models/ManualRuleTriggerDto.ts +++ b/src/generated/models/ManualRuleTriggerDto.ts @@ -32,7 +32,7 @@ export interface ManualRuleTriggerDto extends RuleTriggerDto { /** * Check if a given object implements the ManualRuleTriggerDto interface. */ -export function instanceOfManualRuleTriggerDto(value: object): value is ManualRuleTriggerDto { +export function instanceOfManualRuleTriggerDto(value: any): value is ManualRuleTriggerDto { return true; } diff --git a/src/generated/models/MediumRuleActionDto.ts b/src/generated/models/MediumRuleActionDto.ts index f427402..c166788 100644 --- a/src/generated/models/MediumRuleActionDto.ts +++ b/src/generated/models/MediumRuleActionDto.ts @@ -74,7 +74,7 @@ export interface MediumRuleActionDto extends RuleActionDto { /** * Check if a given object implements the MediumRuleActionDto interface. */ -export function instanceOfMediumRuleActionDto(value: object): value is MediumRuleActionDto { +export function instanceOfMediumRuleActionDto(value: any): value is MediumRuleActionDto { if (!('accessToken' in value) || value['accessToken'] === undefined) return false; if (!('title' in value) || value['title'] === undefined) return false; if (!('content' in value) || value['content'] === undefined) return false; diff --git a/src/generated/models/MoveAssetDto.ts b/src/generated/models/MoveAssetDto.ts index 2dd3b09..70e0c85 100644 --- a/src/generated/models/MoveAssetDto.ts +++ b/src/generated/models/MoveAssetDto.ts @@ -31,7 +31,7 @@ export interface MoveAssetDto { /** * Check if a given object implements the MoveAssetDto interface. */ -export function instanceOfMoveAssetDto(value: object): value is MoveAssetDto { +export function instanceOfMoveAssetDto(value: any): value is MoveAssetDto { return true; } diff --git a/src/generated/models/MoveAssetFolderDto.ts b/src/generated/models/MoveAssetFolderDto.ts index d15dccd..4895a40 100644 --- a/src/generated/models/MoveAssetFolderDto.ts +++ b/src/generated/models/MoveAssetFolderDto.ts @@ -31,7 +31,7 @@ export interface MoveAssetFolderDto { /** * Check if a given object implements the MoveAssetFolderDto interface. */ -export function instanceOfMoveAssetFolderDto(value: object): value is MoveAssetFolderDto { +export function instanceOfMoveAssetFolderDto(value: any): value is MoveAssetFolderDto { return true; } diff --git a/src/generated/models/NestedFieldDto.ts b/src/generated/models/NestedFieldDto.ts index e06d368..f9d36af 100644 --- a/src/generated/models/NestedFieldDto.ts +++ b/src/generated/models/NestedFieldDto.ts @@ -80,7 +80,7 @@ export interface NestedFieldDto { /** * Check if a given object implements the NestedFieldDto interface. */ -export function instanceOfNestedFieldDto(value: object): value is NestedFieldDto { +export function instanceOfNestedFieldDto(value: any): value is NestedFieldDto { if (!('links' in value) || value['links'] === undefined) return false; if (!('fieldId' in value) || value['fieldId'] === undefined) return false; if (!('name' in value) || value['name'] === undefined) return false; @@ -117,7 +117,7 @@ export function NestedFieldDtoToJSON(value?: NestedFieldDto | null, ignoreDiscri } return { - '_links': (mapValues(value['links'], ResourceLinkToJSON)), + '_links': (mapValues(value['links'], x => ResourceLinkToJSON(x))), 'fieldId': value['fieldId'], 'name': value['name'], 'isHidden': value['isHidden'], diff --git a/src/generated/models/NotificationRuleActionDto.ts b/src/generated/models/NotificationRuleActionDto.ts index f189427..05a3b92 100644 --- a/src/generated/models/NotificationRuleActionDto.ts +++ b/src/generated/models/NotificationRuleActionDto.ts @@ -56,7 +56,7 @@ export interface NotificationRuleActionDto extends RuleActionDto { /** * Check if a given object implements the NotificationRuleActionDto interface. */ -export function instanceOfNotificationRuleActionDto(value: object): value is NotificationRuleActionDto { +export function instanceOfNotificationRuleActionDto(value: any): value is NotificationRuleActionDto { if (!('user' in value) || value['user'] === undefined) return false; if (!('text' in value) || value['text'] === undefined) return false; return true; diff --git a/src/generated/models/NumberFieldPropertiesDto.ts b/src/generated/models/NumberFieldPropertiesDto.ts index 54e9225..9c0066c 100644 --- a/src/generated/models/NumberFieldPropertiesDto.ts +++ b/src/generated/models/NumberFieldPropertiesDto.ts @@ -88,7 +88,7 @@ export interface NumberFieldPropertiesDto extends FieldPropertiesDto { /** * Check if a given object implements the NumberFieldPropertiesDto interface. */ -export function instanceOfNumberFieldPropertiesDto(value: object): value is NumberFieldPropertiesDto { +export function instanceOfNumberFieldPropertiesDto(value: any): value is NumberFieldPropertiesDto { return true; } diff --git a/src/generated/models/OpenSearchRuleActionDto.ts b/src/generated/models/OpenSearchRuleActionDto.ts index 8e7cec3..2b9ffa2 100644 --- a/src/generated/models/OpenSearchRuleActionDto.ts +++ b/src/generated/models/OpenSearchRuleActionDto.ts @@ -68,7 +68,7 @@ export interface OpenSearchRuleActionDto extends RuleActionDto { /** * Check if a given object implements the OpenSearchRuleActionDto interface. */ -export function instanceOfOpenSearchRuleActionDto(value: object): value is OpenSearchRuleActionDto { +export function instanceOfOpenSearchRuleActionDto(value: any): value is OpenSearchRuleActionDto { if (!('host' in value) || value['host'] === undefined) return false; if (!('indexName' in value) || value['indexName'] === undefined) return false; return true; diff --git a/src/generated/models/PatternDto.ts b/src/generated/models/PatternDto.ts index 496061c..f20de17 100644 --- a/src/generated/models/PatternDto.ts +++ b/src/generated/models/PatternDto.ts @@ -43,7 +43,7 @@ export interface PatternDto { /** * Check if a given object implements the PatternDto interface. */ -export function instanceOfPatternDto(value: object): value is PatternDto { +export function instanceOfPatternDto(value: any): value is PatternDto { if (!('name' in value) || value['name'] === undefined) return false; if (!('regex' in value) || value['regex'] === undefined) return false; return true; diff --git a/src/generated/models/PlanChangedDto.ts b/src/generated/models/PlanChangedDto.ts index 97f4b8a..97d4c23 100644 --- a/src/generated/models/PlanChangedDto.ts +++ b/src/generated/models/PlanChangedDto.ts @@ -31,7 +31,7 @@ export interface PlanChangedDto { /** * Check if a given object implements the PlanChangedDto interface. */ -export function instanceOfPlanChangedDto(value: object): value is PlanChangedDto { +export function instanceOfPlanChangedDto(value: any): value is PlanChangedDto { return true; } diff --git a/src/generated/models/PlanDto.ts b/src/generated/models/PlanDto.ts index 940210a..358a020 100644 --- a/src/generated/models/PlanDto.ts +++ b/src/generated/models/PlanDto.ts @@ -91,7 +91,7 @@ export interface PlanDto { /** * Check if a given object implements the PlanDto interface. */ -export function instanceOfPlanDto(value: object): value is PlanDto { +export function instanceOfPlanDto(value: any): value is PlanDto { if (!('id' in value) || value['id'] === undefined) return false; if (!('name' in value) || value['name'] === undefined) return false; if (!('costs' in value) || value['costs'] === undefined) return false; diff --git a/src/generated/models/PlansDto.ts b/src/generated/models/PlansDto.ts index 4deed12..ded5535 100644 --- a/src/generated/models/PlansDto.ts +++ b/src/generated/models/PlansDto.ts @@ -82,7 +82,7 @@ export interface PlansDto { /** * Check if a given object implements the PlansDto interface. */ -export function instanceOfPlansDto(value: object): value is PlansDto { +export function instanceOfPlansDto(value: any): value is PlansDto { if (!('plans' in value) || value['plans'] === undefined) return false; if (!('locked' in value) || value['locked'] === undefined) return false; return true; @@ -113,7 +113,7 @@ export function PlansDtoToJSON(value?: PlansDto | null, ignoreDiscriminator = fa } return { - 'plans': ((value['plans'] as Array).map(PlanDtoToJSON)), + 'plans': ((value['plans'] as Array).map(x => PlanDtoToJSON(x))), 'currentPlanId': value['currentPlanId'], 'planOwner': value['planOwner'], 'portalLink': value['portalLink'], diff --git a/src/generated/models/PrerenderRuleActionDto.ts b/src/generated/models/PrerenderRuleActionDto.ts index bcb5f83..471fbf4 100644 --- a/src/generated/models/PrerenderRuleActionDto.ts +++ b/src/generated/models/PrerenderRuleActionDto.ts @@ -44,7 +44,7 @@ export interface PrerenderRuleActionDto extends RuleActionDto { /** * Check if a given object implements the PrerenderRuleActionDto interface. */ -export function instanceOfPrerenderRuleActionDto(value: object): value is PrerenderRuleActionDto { +export function instanceOfPrerenderRuleActionDto(value: any): value is PrerenderRuleActionDto { if (!('token' in value) || value['token'] === undefined) return false; if (!('url' in value) || value['url'] === undefined) return false; return true; diff --git a/src/generated/models/QueryDto.ts b/src/generated/models/QueryDto.ts index fb9f1d7..5447af2 100644 --- a/src/generated/models/QueryDto.ts +++ b/src/generated/models/QueryDto.ts @@ -49,7 +49,7 @@ export interface QueryDto { /** * Check if a given object implements the QueryDto interface. */ -export function instanceOfQueryDto(value: object): value is QueryDto { +export function instanceOfQueryDto(value: any): value is QueryDto { return true; } diff --git a/src/generated/models/QueryJsonDto.ts b/src/generated/models/QueryJsonDto.ts index c477b44..c758a22 100644 --- a/src/generated/models/QueryJsonDto.ts +++ b/src/generated/models/QueryJsonDto.ts @@ -74,7 +74,7 @@ export interface QueryJsonDto { /** * Check if a given object implements the QueryJsonDto interface. */ -export function instanceOfQueryJsonDto(value: object): value is QueryJsonDto { +export function instanceOfQueryJsonDto(value: any): value is QueryJsonDto { if (!('skip' in value) || value['skip'] === undefined) return false; if (!('take' in value) || value['take'] === undefined) return false; if (!('random' in value) || value['random'] === undefined) return false; @@ -114,6 +114,6 @@ export function QueryJsonDtoToJSON(value?: QueryJsonDto | null, ignoreDiscrimina 'take': value['take'], 'random': value['random'], 'top': value['top'], - 'sort': value['sort'] == null ? undefined : ((value['sort'] as Array).map(SortNodeToJSON)), + 'sort': value['sort'] == null ? undefined : ((value['sort'] as Array).map(x => SortNodeToJSON(x))), }; } diff --git a/src/generated/models/ReferencesFieldPropertiesDto.ts b/src/generated/models/ReferencesFieldPropertiesDto.ts index ee43959..549086e 100644 --- a/src/generated/models/ReferencesFieldPropertiesDto.ts +++ b/src/generated/models/ReferencesFieldPropertiesDto.ts @@ -100,7 +100,7 @@ export interface ReferencesFieldPropertiesDto extends FieldPropertiesDto { /** * Check if a given object implements the ReferencesFieldPropertiesDto interface. */ -export function instanceOfReferencesFieldPropertiesDto(value: object): value is ReferencesFieldPropertiesDto { +export function instanceOfReferencesFieldPropertiesDto(value: any): value is ReferencesFieldPropertiesDto { return true; } diff --git a/src/generated/models/ReferralInfo.ts b/src/generated/models/ReferralInfo.ts index cb46ab3..c288798 100644 --- a/src/generated/models/ReferralInfo.ts +++ b/src/generated/models/ReferralInfo.ts @@ -43,7 +43,7 @@ export interface ReferralInfo { /** * Check if a given object implements the ReferralInfo interface. */ -export function instanceOfReferralInfo(value: object): value is ReferralInfo { +export function instanceOfReferralInfo(value: any): value is ReferralInfo { if (!('code' in value) || value['code'] === undefined) return false; if (!('earned' in value) || value['earned'] === undefined) return false; if (!('condition' in value) || value['condition'] === undefined) return false; diff --git a/src/generated/models/RenameAssetFolderDto.ts b/src/generated/models/RenameAssetFolderDto.ts index dd15486..aadbef2 100644 --- a/src/generated/models/RenameAssetFolderDto.ts +++ b/src/generated/models/RenameAssetFolderDto.ts @@ -31,7 +31,7 @@ export interface RenameAssetFolderDto { /** * Check if a given object implements the RenameAssetFolderDto interface. */ -export function instanceOfRenameAssetFolderDto(value: object): value is RenameAssetFolderDto { +export function instanceOfRenameAssetFolderDto(value: any): value is RenameAssetFolderDto { if (!('folderName' in value) || value['folderName'] === undefined) return false; return true; } diff --git a/src/generated/models/RenameTagDto.ts b/src/generated/models/RenameTagDto.ts index c9130bb..1c4d493 100644 --- a/src/generated/models/RenameTagDto.ts +++ b/src/generated/models/RenameTagDto.ts @@ -31,7 +31,7 @@ export interface RenameTagDto { /** * Check if a given object implements the RenameTagDto interface. */ -export function instanceOfRenameTagDto(value: object): value is RenameTagDto { +export function instanceOfRenameTagDto(value: any): value is RenameTagDto { if (!('tagName' in value) || value['tagName'] === undefined) return false; return true; } diff --git a/src/generated/models/ReorderFieldsDto.ts b/src/generated/models/ReorderFieldsDto.ts index e51988f..1a29cde 100644 --- a/src/generated/models/ReorderFieldsDto.ts +++ b/src/generated/models/ReorderFieldsDto.ts @@ -31,7 +31,7 @@ export interface ReorderFieldsDto { /** * Check if a given object implements the ReorderFieldsDto interface. */ -export function instanceOfReorderFieldsDto(value: object): value is ReorderFieldsDto { +export function instanceOfReorderFieldsDto(value: any): value is ReorderFieldsDto { if (!('fieldIds' in value) || value['fieldIds'] === undefined) return false; return true; } diff --git a/src/generated/models/Resource.ts b/src/generated/models/Resource.ts index 4df9135..f21b0d9 100644 --- a/src/generated/models/Resource.ts +++ b/src/generated/models/Resource.ts @@ -38,7 +38,7 @@ export interface Resource { /** * Check if a given object implements the Resource interface. */ -export function instanceOfResource(value: object): value is Resource { +export function instanceOfResource(value: any): value is Resource { if (!('links' in value) || value['links'] === undefined) return false; return true; } @@ -63,6 +63,6 @@ export function ResourceToJSON(value?: Resource | null, ignoreDiscriminator = fa } return { - '_links': (mapValues(value['links'], ResourceLinkToJSON)), + '_links': (mapValues(value['links'], x => ResourceLinkToJSON(x))), }; } diff --git a/src/generated/models/ResourceLink.ts b/src/generated/models/ResourceLink.ts index a528c81..9eb3862 100644 --- a/src/generated/models/ResourceLink.ts +++ b/src/generated/models/ResourceLink.ts @@ -43,7 +43,7 @@ export interface ResourceLink { /** * Check if a given object implements the ResourceLink interface. */ -export function instanceOfResourceLink(value: object): value is ResourceLink { +export function instanceOfResourceLink(value: any): value is ResourceLink { if (!('href' in value) || value['href'] === undefined) return false; if (!('method' in value) || value['method'] === undefined) return false; return true; diff --git a/src/generated/models/ResourcesDto.ts b/src/generated/models/ResourcesDto.ts index 6d4be49..b0a6cfc 100644 --- a/src/generated/models/ResourcesDto.ts +++ b/src/generated/models/ResourcesDto.ts @@ -38,7 +38,7 @@ export interface ResourcesDto { /** * Check if a given object implements the ResourcesDto interface. */ -export function instanceOfResourcesDto(value: object): value is ResourcesDto { +export function instanceOfResourcesDto(value: any): value is ResourcesDto { if (!('links' in value) || value['links'] === undefined) return false; return true; } @@ -63,6 +63,6 @@ export function ResourcesDtoToJSON(value?: ResourcesDto | null, ignoreDiscrimina } return { - '_links': (mapValues(value['links'], ResourceLinkToJSON)), + '_links': (mapValues(value['links'], x => ResourceLinkToJSON(x))), }; } diff --git a/src/generated/models/RestoreJobDto.ts b/src/generated/models/RestoreJobDto.ts index 44d18f9..7b41bae 100644 --- a/src/generated/models/RestoreJobDto.ts +++ b/src/generated/models/RestoreJobDto.ts @@ -64,7 +64,7 @@ export interface RestoreJobDto { /** * Check if a given object implements the RestoreJobDto interface. */ -export function instanceOfRestoreJobDto(value: object): value is RestoreJobDto { +export function instanceOfRestoreJobDto(value: any): value is RestoreJobDto { if (!('url' in value) || value['url'] === undefined) return false; if (!('log' in value) || value['log'] === undefined) return false; if (!('started' in value) || value['started'] === undefined) return false; diff --git a/src/generated/models/RestoreRequestDto.ts b/src/generated/models/RestoreRequestDto.ts index 6ec16d0..a468151 100644 --- a/src/generated/models/RestoreRequestDto.ts +++ b/src/generated/models/RestoreRequestDto.ts @@ -37,7 +37,7 @@ export interface RestoreRequestDto { /** * Check if a given object implements the RestoreRequestDto interface. */ -export function instanceOfRestoreRequestDto(value: object): value is RestoreRequestDto { +export function instanceOfRestoreRequestDto(value: any): value is RestoreRequestDto { if (!('url' in value) || value['url'] === undefined) return false; return true; } diff --git a/src/generated/models/RichTextFieldPropertiesDto.ts b/src/generated/models/RichTextFieldPropertiesDto.ts index dc01763..aabc576 100644 --- a/src/generated/models/RichTextFieldPropertiesDto.ts +++ b/src/generated/models/RichTextFieldPropertiesDto.ts @@ -86,7 +86,7 @@ export interface RichTextFieldPropertiesDto extends FieldPropertiesDto { /** * Check if a given object implements the RichTextFieldPropertiesDto interface. */ -export function instanceOfRichTextFieldPropertiesDto(value: object): value is RichTextFieldPropertiesDto { +export function instanceOfRichTextFieldPropertiesDto(value: any): value is RichTextFieldPropertiesDto { return true; } diff --git a/src/generated/models/RoleDto.ts b/src/generated/models/RoleDto.ts index ce52aac..c893b1d 100644 --- a/src/generated/models/RoleDto.ts +++ b/src/generated/models/RoleDto.ts @@ -74,7 +74,7 @@ export interface RoleDto { /** * Check if a given object implements the RoleDto interface. */ -export function instanceOfRoleDto(value: object): value is RoleDto { +export function instanceOfRoleDto(value: any): value is RoleDto { if (!('links' in value) || value['links'] === undefined) return false; if (!('name' in value) || value['name'] === undefined) return false; if (!('numClients' in value) || value['numClients'] === undefined) return false; @@ -111,7 +111,7 @@ export function RoleDtoToJSON(value?: RoleDto | null, ignoreDiscriminator = fals } return { - '_links': (mapValues(value['links'], ResourceLinkToJSON)), + '_links': (mapValues(value['links'], x => ResourceLinkToJSON(x))), 'name': value['name'], 'numClients': value['numClients'], 'numContributors': value['numContributors'], diff --git a/src/generated/models/RolesDto.ts b/src/generated/models/RolesDto.ts index 6a0ab27..bbcad2f 100644 --- a/src/generated/models/RolesDto.ts +++ b/src/generated/models/RolesDto.ts @@ -50,7 +50,7 @@ export interface RolesDto { /** * Check if a given object implements the RolesDto interface. */ -export function instanceOfRolesDto(value: object): value is RolesDto { +export function instanceOfRolesDto(value: any): value is RolesDto { if (!('links' in value) || value['links'] === undefined) return false; if (!('items' in value) || value['items'] === undefined) return false; return true; @@ -77,7 +77,7 @@ export function RolesDtoToJSON(value?: RolesDto | null, ignoreDiscriminator = fa } return { - '_links': (mapValues(value['links'], ResourceLinkToJSON)), - 'items': ((value['items'] as Array).map(RoleDtoToJSON)), + '_links': (mapValues(value['links'], x => ResourceLinkToJSON(x))), + 'items': ((value['items'] as Array).map(x => RoleDtoToJSON(x))), }; } diff --git a/src/generated/models/RuleActionDto.ts b/src/generated/models/RuleActionDto.ts index b269b87..0775939 100644 --- a/src/generated/models/RuleActionDto.ts +++ b/src/generated/models/RuleActionDto.ts @@ -121,7 +121,7 @@ export function isWebhookRuleActionDto(value: RuleActionDto): value is WebhookRu /** * Check if a given object implements the RuleActionDto interface. */ -export function instanceOfRuleActionDto(value: object): value is RuleActionDto { +export function instanceOfRuleActionDto(value: any): value is RuleActionDto { if (!('actionType' in value) || value['actionType'] === undefined) return false; return true; } diff --git a/src/generated/models/RuleDto.ts b/src/generated/models/RuleDto.ts index df729dd..d6d50e1 100644 --- a/src/generated/models/RuleDto.ts +++ b/src/generated/models/RuleDto.ts @@ -129,7 +129,7 @@ export interface RuleDto { /** * Check if a given object implements the RuleDto interface. */ -export function instanceOfRuleDto(value: object): value is RuleDto { +export function instanceOfRuleDto(value: any): value is RuleDto { if (!('links' in value) || value['links'] === undefined) return false; if (!('id' in value) || value['id'] === undefined) return false; if (!('createdBy' in value) || value['createdBy'] === undefined) return false; @@ -178,7 +178,7 @@ export function RuleDtoToJSON(value?: RuleDto | null, ignoreDiscriminator = fals } return { - '_links': (mapValues(value['links'], ResourceLinkToJSON)), + '_links': (mapValues(value['links'], x => ResourceLinkToJSON(x))), 'id': value['id'], 'createdBy': value['createdBy'], 'lastModifiedBy': value['lastModifiedBy'], diff --git a/src/generated/models/RuleElementDto.ts b/src/generated/models/RuleElementDto.ts index f612668..d43a23b 100644 --- a/src/generated/models/RuleElementDto.ts +++ b/src/generated/models/RuleElementDto.ts @@ -74,7 +74,7 @@ export interface RuleElementDto { /** * Check if a given object implements the RuleElementDto interface. */ -export function instanceOfRuleElementDto(value: object): value is RuleElementDto { +export function instanceOfRuleElementDto(value: any): value is RuleElementDto { if (!('description' in value) || value['description'] === undefined) return false; if (!('display' in value) || value['display'] === undefined) return false; if (!('properties' in value) || value['properties'] === undefined) return false; @@ -113,6 +113,6 @@ export function RuleElementDtoToJSON(value?: RuleElementDto | null, ignoreDiscri 'iconColor': value['iconColor'], 'iconImage': value['iconImage'], 'readMore': value['readMore'], - 'properties': ((value['properties'] as Array).map(RuleElementPropertyDtoToJSON)), + 'properties': ((value['properties'] as Array).map(x => RuleElementPropertyDtoToJSON(x))), }; } diff --git a/src/generated/models/RuleElementPropertyDto.ts b/src/generated/models/RuleElementPropertyDto.ts index 9c291ec..330dd4f 100644 --- a/src/generated/models/RuleElementPropertyDto.ts +++ b/src/generated/models/RuleElementPropertyDto.ts @@ -76,7 +76,7 @@ export interface RuleElementPropertyDto { /** * Check if a given object implements the RuleElementPropertyDto interface. */ -export function instanceOfRuleElementPropertyDto(value: object): value is RuleElementPropertyDto { +export function instanceOfRuleElementPropertyDto(value: any): value is RuleElementPropertyDto { if (!('editor' in value) || value['editor'] === undefined) return false; if (!('name' in value) || value['name'] === undefined) return false; if (!('display' in value) || value['display'] === undefined) return false; diff --git a/src/generated/models/RuleEventDto.ts b/src/generated/models/RuleEventDto.ts index b1236b9..35997e7 100644 --- a/src/generated/models/RuleEventDto.ts +++ b/src/generated/models/RuleEventDto.ts @@ -106,7 +106,7 @@ export interface RuleEventDto { /** * Check if a given object implements the RuleEventDto interface. */ -export function instanceOfRuleEventDto(value: object): value is RuleEventDto { +export function instanceOfRuleEventDto(value: any): value is RuleEventDto { if (!('links' in value) || value['links'] === undefined) return false; if (!('id' in value) || value['id'] === undefined) return false; if (!('created' in value) || value['created'] === undefined) return false; @@ -147,7 +147,7 @@ export function RuleEventDtoToJSON(value?: RuleEventDto | null, ignoreDiscrimina } return { - '_links': (mapValues(value['links'], ResourceLinkToJSON)), + '_links': (mapValues(value['links'], x => ResourceLinkToJSON(x))), 'id': value['id'], 'created': ((value['created']).toISOString()), 'description': value['description'], diff --git a/src/generated/models/RuleEventsDto.ts b/src/generated/models/RuleEventsDto.ts index 35f59ac..26ab9a9 100644 --- a/src/generated/models/RuleEventsDto.ts +++ b/src/generated/models/RuleEventsDto.ts @@ -56,7 +56,7 @@ export interface RuleEventsDto { /** * Check if a given object implements the RuleEventsDto interface. */ -export function instanceOfRuleEventsDto(value: object): value is RuleEventsDto { +export function instanceOfRuleEventsDto(value: any): value is RuleEventsDto { if (!('links' in value) || value['links'] === undefined) return false; if (!('total' in value) || value['total'] === undefined) return false; if (!('items' in value) || value['items'] === undefined) return false; @@ -85,8 +85,8 @@ export function RuleEventsDtoToJSON(value?: RuleEventsDto | null, ignoreDiscrimi } return { - '_links': (mapValues(value['links'], ResourceLinkToJSON)), + '_links': (mapValues(value['links'], x => ResourceLinkToJSON(x))), 'total': value['total'], - 'items': ((value['items'] as Array).map(RuleEventDtoToJSON)), + 'items': ((value['items'] as Array).map(x => RuleEventDtoToJSON(x))), }; } diff --git a/src/generated/models/RuleTriggerDto.ts b/src/generated/models/RuleTriggerDto.ts index 37b5d0f..7a1f9bc 100644 --- a/src/generated/models/RuleTriggerDto.ts +++ b/src/generated/models/RuleTriggerDto.ts @@ -61,7 +61,7 @@ export function isUsageRuleTriggerDto(value: RuleTriggerDto): value is UsageRule /** * Check if a given object implements the RuleTriggerDto interface. */ -export function instanceOfRuleTriggerDto(value: object): value is RuleTriggerDto { +export function instanceOfRuleTriggerDto(value: any): value is RuleTriggerDto { if (!('triggerType' in value) || value['triggerType'] === undefined) return false; return true; } diff --git a/src/generated/models/RulesDto.ts b/src/generated/models/RulesDto.ts index 9ef3aeb..b50068a 100644 --- a/src/generated/models/RulesDto.ts +++ b/src/generated/models/RulesDto.ts @@ -56,7 +56,7 @@ export interface RulesDto { /** * Check if a given object implements the RulesDto interface. */ -export function instanceOfRulesDto(value: object): value is RulesDto { +export function instanceOfRulesDto(value: any): value is RulesDto { if (!('links' in value) || value['links'] === undefined) return false; if (!('items' in value) || value['items'] === undefined) return false; return true; @@ -84,8 +84,8 @@ export function RulesDtoToJSON(value?: RulesDto | null, ignoreDiscriminator = fa } return { - '_links': (mapValues(value['links'], ResourceLinkToJSON)), - 'items': ((value['items'] as Array).map(RuleDtoToJSON)), + '_links': (mapValues(value['links'], x => ResourceLinkToJSON(x))), + 'items': ((value['items'] as Array).map(x => RuleDtoToJSON(x))), 'runningRuleId': value['runningRuleId'], }; } diff --git a/src/generated/models/ScheduleJobDto.ts b/src/generated/models/ScheduleJobDto.ts index 908cec0..3b1cb82 100644 --- a/src/generated/models/ScheduleJobDto.ts +++ b/src/generated/models/ScheduleJobDto.ts @@ -55,7 +55,7 @@ export interface ScheduleJobDto { /** * Check if a given object implements the ScheduleJobDto interface. */ -export function instanceOfScheduleJobDto(value: object): value is ScheduleJobDto { +export function instanceOfScheduleJobDto(value: any): value is ScheduleJobDto { if (!('id' in value) || value['id'] === undefined) return false; if (!('status' in value) || value['status'] === undefined) return false; if (!('dueTime' in value) || value['dueTime'] === undefined) return false; diff --git a/src/generated/models/SchemaChangedRuleTriggerDto.ts b/src/generated/models/SchemaChangedRuleTriggerDto.ts index f16cad6..44ac329 100644 --- a/src/generated/models/SchemaChangedRuleTriggerDto.ts +++ b/src/generated/models/SchemaChangedRuleTriggerDto.ts @@ -38,7 +38,7 @@ export interface SchemaChangedRuleTriggerDto extends RuleTriggerDto { /** * Check if a given object implements the SchemaChangedRuleTriggerDto interface. */ -export function instanceOfSchemaChangedRuleTriggerDto(value: object): value is SchemaChangedRuleTriggerDto { +export function instanceOfSchemaChangedRuleTriggerDto(value: any): value is SchemaChangedRuleTriggerDto { return true; } diff --git a/src/generated/models/SchemaCondition.ts b/src/generated/models/SchemaCondition.ts index 248fe3d..88a5748 100644 --- a/src/generated/models/SchemaCondition.ts +++ b/src/generated/models/SchemaCondition.ts @@ -37,7 +37,7 @@ export interface SchemaCondition { /** * Check if a given object implements the SchemaCondition interface. */ -export function instanceOfSchemaCondition(value: object): value is SchemaCondition { +export function instanceOfSchemaCondition(value: any): value is SchemaCondition { if (!('schemaId' in value) || value['schemaId'] === undefined) return false; return true; } diff --git a/src/generated/models/SchemaDto.ts b/src/generated/models/SchemaDto.ts index 1434947..de88e17 100644 --- a/src/generated/models/SchemaDto.ts +++ b/src/generated/models/SchemaDto.ts @@ -179,7 +179,7 @@ export interface SchemaDto { /** * Check if a given object implements the SchemaDto interface. */ -export function instanceOfSchemaDto(value: object): value is SchemaDto { +export function instanceOfSchemaDto(value: any): value is SchemaDto { if (!('links' in value) || value['links'] === undefined) return false; if (!('id' in value) || value['id'] === undefined) return false; if (!('createdBy' in value) || value['createdBy'] === undefined) return false; @@ -239,7 +239,7 @@ export function SchemaDtoToJSON(value?: SchemaDto | null, ignoreDiscriminator = } return { - '_links': (mapValues(value['links'], ResourceLinkToJSON)), + '_links': (mapValues(value['links'], x => ResourceLinkToJSON(x))), 'id': value['id'], 'createdBy': value['createdBy'], 'lastModifiedBy': value['lastModifiedBy'], @@ -256,7 +256,7 @@ export function SchemaDtoToJSON(value?: SchemaDto | null, ignoreDiscriminator = 'previewUrls': value['previewUrls'], 'fieldsInLists': value['fieldsInLists'], 'fieldsInReferences': value['fieldsInReferences'], - 'fieldRules': ((value['fieldRules'] as Array).map(FieldRuleDtoToJSON)), - 'fields': ((value['fields'] as Array).map(FieldDtoToJSON)), + 'fieldRules': ((value['fieldRules'] as Array).map(x => FieldRuleDtoToJSON(x))), + 'fields': ((value['fields'] as Array).map(x => FieldDtoToJSON(x))), }; } diff --git a/src/generated/models/SchemaPropertiesDto.ts b/src/generated/models/SchemaPropertiesDto.ts index 808d4f6..ec92d30 100644 --- a/src/generated/models/SchemaPropertiesDto.ts +++ b/src/generated/models/SchemaPropertiesDto.ts @@ -79,7 +79,7 @@ export interface SchemaPropertiesDto { /** * Check if a given object implements the SchemaPropertiesDto interface. */ -export function instanceOfSchemaPropertiesDto(value: object): value is SchemaPropertiesDto { +export function instanceOfSchemaPropertiesDto(value: any): value is SchemaPropertiesDto { if (!('validateOnPublish' in value) || value['validateOnPublish'] === undefined) return false; return true; } diff --git a/src/generated/models/SchemaScriptsDto.ts b/src/generated/models/SchemaScriptsDto.ts index a2cf0c0..7517f1f 100644 --- a/src/generated/models/SchemaScriptsDto.ts +++ b/src/generated/models/SchemaScriptsDto.ts @@ -61,7 +61,7 @@ export interface SchemaScriptsDto { /** * Check if a given object implements the SchemaScriptsDto interface. */ -export function instanceOfSchemaScriptsDto(value: object): value is SchemaScriptsDto { +export function instanceOfSchemaScriptsDto(value: any): value is SchemaScriptsDto { return true; } diff --git a/src/generated/models/SchemasDto.ts b/src/generated/models/SchemasDto.ts index ba2e9de..89fd592 100644 --- a/src/generated/models/SchemasDto.ts +++ b/src/generated/models/SchemasDto.ts @@ -50,7 +50,7 @@ export interface SchemasDto { /** * Check if a given object implements the SchemasDto interface. */ -export function instanceOfSchemasDto(value: object): value is SchemasDto { +export function instanceOfSchemasDto(value: any): value is SchemasDto { if (!('links' in value) || value['links'] === undefined) return false; if (!('items' in value) || value['items'] === undefined) return false; return true; @@ -77,7 +77,7 @@ export function SchemasDtoToJSON(value?: SchemasDto | null, ignoreDiscriminator } return { - '_links': (mapValues(value['links'], ResourceLinkToJSON)), - 'items': ((value['items'] as Array).map(SchemaDtoToJSON)), + '_links': (mapValues(value['links'], x => ResourceLinkToJSON(x))), + 'items': ((value['items'] as Array).map(x => SchemaDtoToJSON(x))), }; } diff --git a/src/generated/models/ScriptRuleActionDto.ts b/src/generated/models/ScriptRuleActionDto.ts index 669f5dd..02a526b 100644 --- a/src/generated/models/ScriptRuleActionDto.ts +++ b/src/generated/models/ScriptRuleActionDto.ts @@ -38,7 +38,7 @@ export interface ScriptRuleActionDto extends RuleActionDto { /** * Check if a given object implements the ScriptRuleActionDto interface. */ -export function instanceOfScriptRuleActionDto(value: object): value is ScriptRuleActionDto { +export function instanceOfScriptRuleActionDto(value: any): value is ScriptRuleActionDto { if (!('script' in value) || value['script'] === undefined) return false; return true; } diff --git a/src/generated/models/SearchResultDto.ts b/src/generated/models/SearchResultDto.ts index 48645f5..a35f258 100644 --- a/src/generated/models/SearchResultDto.ts +++ b/src/generated/models/SearchResultDto.ts @@ -64,7 +64,7 @@ export interface SearchResultDto { /** * Check if a given object implements the SearchResultDto interface. */ -export function instanceOfSearchResultDto(value: object): value is SearchResultDto { +export function instanceOfSearchResultDto(value: any): value is SearchResultDto { if (!('links' in value) || value['links'] === undefined) return false; if (!('name' in value) || value['name'] === undefined) return false; if (!('type' in value) || value['type'] === undefined) return false; @@ -94,7 +94,7 @@ export function SearchResultDtoToJSON(value?: SearchResultDto | null, ignoreDisc } return { - '_links': (mapValues(value['links'], ResourceLinkToJSON)), + '_links': (mapValues(value['links'], x => ResourceLinkToJSON(x))), 'name': value['name'], 'type': SearchResultTypeToJSON(value['type']), 'label': value['label'], diff --git a/src/generated/models/SignalRRuleActionDto.ts b/src/generated/models/SignalRRuleActionDto.ts index 70f3c4b..a16b250 100644 --- a/src/generated/models/SignalRRuleActionDto.ts +++ b/src/generated/models/SignalRRuleActionDto.ts @@ -76,7 +76,7 @@ export interface SignalRRuleActionDto extends RuleActionDto { /** * Check if a given object implements the SignalRRuleActionDto interface. */ -export function instanceOfSignalRRuleActionDto(value: object): value is SignalRRuleActionDto { +export function instanceOfSignalRRuleActionDto(value: any): value is SignalRRuleActionDto { if (!('connectionString' in value) || value['connectionString'] === undefined) return false; if (!('hubName' in value) || value['hubName'] === undefined) return false; if (!('action' in value) || value['action'] === undefined) return false; diff --git a/src/generated/models/SimulatedRuleEventDto.ts b/src/generated/models/SimulatedRuleEventDto.ts index c771be8..9c04c60 100644 --- a/src/generated/models/SimulatedRuleEventDto.ts +++ b/src/generated/models/SimulatedRuleEventDto.ts @@ -86,7 +86,7 @@ export interface SimulatedRuleEventDto { /** * Check if a given object implements the SimulatedRuleEventDto interface. */ -export function instanceOfSimulatedRuleEventDto(value: object): value is SimulatedRuleEventDto { +export function instanceOfSimulatedRuleEventDto(value: any): value is SimulatedRuleEventDto { if (!('eventId' in value) || value['eventId'] === undefined) return false; if (!('uniqueId' in value) || value['uniqueId'] === undefined) return false; if (!('eventName' in value) || value['eventName'] === undefined) return false; @@ -131,6 +131,6 @@ export function SimulatedRuleEventDtoToJSON(value?: SimulatedRuleEventDto | null 'actionName': value['actionName'], 'actionData': value['actionData'], 'error': value['error'], - 'skipReasons': ((value['skipReasons'] as Array).map(SkipReasonToJSON)), + 'skipReasons': ((value['skipReasons'] as Array).map(x => SkipReasonToJSON(x))), }; } diff --git a/src/generated/models/SimulatedRuleEventsDto.ts b/src/generated/models/SimulatedRuleEventsDto.ts index d044cd8..06e0dc3 100644 --- a/src/generated/models/SimulatedRuleEventsDto.ts +++ b/src/generated/models/SimulatedRuleEventsDto.ts @@ -56,7 +56,7 @@ export interface SimulatedRuleEventsDto { /** * Check if a given object implements the SimulatedRuleEventsDto interface. */ -export function instanceOfSimulatedRuleEventsDto(value: object): value is SimulatedRuleEventsDto { +export function instanceOfSimulatedRuleEventsDto(value: any): value is SimulatedRuleEventsDto { if (!('links' in value) || value['links'] === undefined) return false; if (!('total' in value) || value['total'] === undefined) return false; if (!('items' in value) || value['items'] === undefined) return false; @@ -85,8 +85,8 @@ export function SimulatedRuleEventsDtoToJSON(value?: SimulatedRuleEventsDto | nu } return { - '_links': (mapValues(value['links'], ResourceLinkToJSON)), + '_links': (mapValues(value['links'], x => ResourceLinkToJSON(x))), 'total': value['total'], - 'items': ((value['items'] as Array).map(SimulatedRuleEventDtoToJSON)), + 'items': ((value['items'] as Array).map(x => SimulatedRuleEventDtoToJSON(x))), }; } diff --git a/src/generated/models/SlackRuleActionDto.ts b/src/generated/models/SlackRuleActionDto.ts index e02afaa..e5eb2ef 100644 --- a/src/generated/models/SlackRuleActionDto.ts +++ b/src/generated/models/SlackRuleActionDto.ts @@ -44,7 +44,7 @@ export interface SlackRuleActionDto extends RuleActionDto { /** * Check if a given object implements the SlackRuleActionDto interface. */ -export function instanceOfSlackRuleActionDto(value: object): value is SlackRuleActionDto { +export function instanceOfSlackRuleActionDto(value: any): value is SlackRuleActionDto { if (!('webhookUrl' in value) || value['webhookUrl'] === undefined) return false; if (!('text' in value) || value['text'] === undefined) return false; return true; diff --git a/src/generated/models/SortNode.ts b/src/generated/models/SortNode.ts index 8b03c9f..76cad1d 100644 --- a/src/generated/models/SortNode.ts +++ b/src/generated/models/SortNode.ts @@ -46,7 +46,7 @@ export interface SortNode { /** * Check if a given object implements the SortNode interface. */ -export function instanceOfSortNode(value: object): value is SortNode { +export function instanceOfSortNode(value: any): value is SortNode { if (!('path' in value) || value['path'] === undefined) return false; if (!('order' in value) || value['order'] === undefined) return false; return true; diff --git a/src/generated/models/StatusInfoDto.ts b/src/generated/models/StatusInfoDto.ts index 5bf19df..d20c7cb 100644 --- a/src/generated/models/StatusInfoDto.ts +++ b/src/generated/models/StatusInfoDto.ts @@ -37,7 +37,7 @@ export interface StatusInfoDto { /** * Check if a given object implements the StatusInfoDto interface. */ -export function instanceOfStatusInfoDto(value: object): value is StatusInfoDto { +export function instanceOfStatusInfoDto(value: any): value is StatusInfoDto { if (!('status' in value) || value['status'] === undefined) return false; if (!('color' in value) || value['color'] === undefined) return false; return true; diff --git a/src/generated/models/StorageUsagePerDateDto.ts b/src/generated/models/StorageUsagePerDateDto.ts index 6da4efb..9b1c152 100644 --- a/src/generated/models/StorageUsagePerDateDto.ts +++ b/src/generated/models/StorageUsagePerDateDto.ts @@ -43,7 +43,7 @@ export interface StorageUsagePerDateDto { /** * Check if a given object implements the StorageUsagePerDateDto interface. */ -export function instanceOfStorageUsagePerDateDto(value: object): value is StorageUsagePerDateDto { +export function instanceOfStorageUsagePerDateDto(value: any): value is StorageUsagePerDateDto { if (!('date' in value) || value['date'] === undefined) return false; if (!('totalCount' in value) || value['totalCount'] === undefined) return false; if (!('totalSize' in value) || value['totalSize'] === undefined) return false; diff --git a/src/generated/models/StringFieldPropertiesDto.ts b/src/generated/models/StringFieldPropertiesDto.ts index d8911cd..43b8546 100644 --- a/src/generated/models/StringFieldPropertiesDto.ts +++ b/src/generated/models/StringFieldPropertiesDto.ts @@ -166,7 +166,7 @@ export interface StringFieldPropertiesDto extends FieldPropertiesDto { /** * Check if a given object implements the StringFieldPropertiesDto interface. */ -export function instanceOfStringFieldPropertiesDto(value: object): value is StringFieldPropertiesDto { +export function instanceOfStringFieldPropertiesDto(value: any): value is StringFieldPropertiesDto { return true; } diff --git a/src/generated/models/SynchronizeSchemaDto.ts b/src/generated/models/SynchronizeSchemaDto.ts index 9ddfce9..6f0abea 100644 --- a/src/generated/models/SynchronizeSchemaDto.ts +++ b/src/generated/models/SynchronizeSchemaDto.ts @@ -116,7 +116,7 @@ export interface SynchronizeSchemaDto { /** * Check if a given object implements the SynchronizeSchemaDto interface. */ -export function instanceOfSynchronizeSchemaDto(value: object): value is SynchronizeSchemaDto { +export function instanceOfSynchronizeSchemaDto(value: any): value is SynchronizeSchemaDto { return true; } @@ -154,9 +154,9 @@ export function SynchronizeSchemaDtoToJSON(value?: SynchronizeSchemaDto | null, 'scripts': SchemaScriptsDtoToJSON(value['scripts']), 'fieldsInReferences': value['fieldsInReferences'], 'fieldsInLists': value['fieldsInLists'], - 'fields': value['fields'] == null ? undefined : ((value['fields'] as Array).map(UpsertSchemaFieldDtoToJSON)), + 'fields': value['fields'] == null ? undefined : ((value['fields'] as Array).map(x => UpsertSchemaFieldDtoToJSON(x))), 'previewUrls': value['previewUrls'], - 'fieldRules': value['fieldRules'] == null ? undefined : ((value['fieldRules'] as Array).map(FieldRuleDtoToJSON)), + 'fieldRules': value['fieldRules'] == null ? undefined : ((value['fieldRules'] as Array).map(x => FieldRuleDtoToJSON(x))), 'category': value['category'], 'isPublished': value['isPublished'], 'noFieldDeletion': value['noFieldDeletion'], diff --git a/src/generated/models/TagsFieldPropertiesDto.ts b/src/generated/models/TagsFieldPropertiesDto.ts index 3a50037..50da182 100644 --- a/src/generated/models/TagsFieldPropertiesDto.ts +++ b/src/generated/models/TagsFieldPropertiesDto.ts @@ -82,7 +82,7 @@ export interface TagsFieldPropertiesDto extends FieldPropertiesDto { /** * Check if a given object implements the TagsFieldPropertiesDto interface. */ -export function instanceOfTagsFieldPropertiesDto(value: object): value is TagsFieldPropertiesDto { +export function instanceOfTagsFieldPropertiesDto(value: any): value is TagsFieldPropertiesDto { return true; } diff --git a/src/generated/models/TeamDto.ts b/src/generated/models/TeamDto.ts index e37cec7..063224a 100644 --- a/src/generated/models/TeamDto.ts +++ b/src/generated/models/TeamDto.ts @@ -74,7 +74,7 @@ export interface TeamDto { /** * Check if a given object implements the TeamDto interface. */ -export function instanceOfTeamDto(value: object): value is TeamDto { +export function instanceOfTeamDto(value: any): value is TeamDto { if (!('links' in value) || value['links'] === undefined) return false; if (!('id' in value) || value['id'] === undefined) return false; if (!('name' in value) || value['name'] === undefined) return false; @@ -110,7 +110,7 @@ export function TeamDtoToJSON(value?: TeamDto | null, ignoreDiscriminator = fals } return { - '_links': (mapValues(value['links'], ResourceLinkToJSON)), + '_links': (mapValues(value['links'], x => ResourceLinkToJSON(x))), 'id': value['id'], 'name': value['name'], 'version': value['version'], diff --git a/src/generated/models/TemplateDetailsDto.ts b/src/generated/models/TemplateDetailsDto.ts index 1f903d6..9b426d8 100644 --- a/src/generated/models/TemplateDetailsDto.ts +++ b/src/generated/models/TemplateDetailsDto.ts @@ -44,7 +44,7 @@ export interface TemplateDetailsDto { /** * Check if a given object implements the TemplateDetailsDto interface. */ -export function instanceOfTemplateDetailsDto(value: object): value is TemplateDetailsDto { +export function instanceOfTemplateDetailsDto(value: any): value is TemplateDetailsDto { if (!('links' in value) || value['links'] === undefined) return false; if (!('details' in value) || value['details'] === undefined) return false; return true; @@ -71,7 +71,7 @@ export function TemplateDetailsDtoToJSON(value?: TemplateDetailsDto | null, igno } return { - '_links': (mapValues(value['links'], ResourceLinkToJSON)), + '_links': (mapValues(value['links'], x => ResourceLinkToJSON(x))), 'details': value['details'], }; } diff --git a/src/generated/models/TemplateDto.ts b/src/generated/models/TemplateDto.ts index e132776..9b24dbb 100644 --- a/src/generated/models/TemplateDto.ts +++ b/src/generated/models/TemplateDto.ts @@ -62,7 +62,7 @@ export interface TemplateDto { /** * Check if a given object implements the TemplateDto interface. */ -export function instanceOfTemplateDto(value: object): value is TemplateDto { +export function instanceOfTemplateDto(value: any): value is TemplateDto { if (!('links' in value) || value['links'] === undefined) return false; if (!('name' in value) || value['name'] === undefined) return false; if (!('title' in value) || value['title'] === undefined) return false; @@ -95,7 +95,7 @@ export function TemplateDtoToJSON(value?: TemplateDto | null, ignoreDiscriminato } return { - '_links': (mapValues(value['links'], ResourceLinkToJSON)), + '_links': (mapValues(value['links'], x => ResourceLinkToJSON(x))), 'name': value['name'], 'title': value['title'], 'description': value['description'], diff --git a/src/generated/models/TemplatesDto.ts b/src/generated/models/TemplatesDto.ts index 22ad7af..cd91104 100644 --- a/src/generated/models/TemplatesDto.ts +++ b/src/generated/models/TemplatesDto.ts @@ -50,7 +50,7 @@ export interface TemplatesDto { /** * Check if a given object implements the TemplatesDto interface. */ -export function instanceOfTemplatesDto(value: object): value is TemplatesDto { +export function instanceOfTemplatesDto(value: any): value is TemplatesDto { if (!('links' in value) || value['links'] === undefined) return false; if (!('items' in value) || value['items'] === undefined) return false; return true; @@ -77,7 +77,7 @@ export function TemplatesDtoToJSON(value?: TemplatesDto | null, ignoreDiscrimina } return { - '_links': (mapValues(value['links'], ResourceLinkToJSON)), - 'items': ((value['items'] as Array).map(TemplateDtoToJSON)), + '_links': (mapValues(value['links'], x => ResourceLinkToJSON(x))), + 'items': ((value['items'] as Array).map(x => TemplateDtoToJSON(x))), }; } diff --git a/src/generated/models/TransferToTeamDto.ts b/src/generated/models/TransferToTeamDto.ts index 76f7f54..c5dab8f 100644 --- a/src/generated/models/TransferToTeamDto.ts +++ b/src/generated/models/TransferToTeamDto.ts @@ -31,7 +31,7 @@ export interface TransferToTeamDto { /** * Check if a given object implements the TransferToTeamDto interface. */ -export function instanceOfTransferToTeamDto(value: object): value is TransferToTeamDto { +export function instanceOfTransferToTeamDto(value: any): value is TransferToTeamDto { return true; } diff --git a/src/generated/models/TranslateDto.ts b/src/generated/models/TranslateDto.ts index 7eae5fb..2cc503f 100644 --- a/src/generated/models/TranslateDto.ts +++ b/src/generated/models/TranslateDto.ts @@ -43,7 +43,7 @@ export interface TranslateDto { /** * Check if a given object implements the TranslateDto interface. */ -export function instanceOfTranslateDto(value: object): value is TranslateDto { +export function instanceOfTranslateDto(value: any): value is TranslateDto { if (!('text' in value) || value['text'] === undefined) return false; if (!('targetLanguage' in value) || value['targetLanguage'] === undefined) return false; return true; diff --git a/src/generated/models/TranslationDto.ts b/src/generated/models/TranslationDto.ts index fff5341..3ac2d4e 100644 --- a/src/generated/models/TranslationDto.ts +++ b/src/generated/models/TranslationDto.ts @@ -52,7 +52,7 @@ export interface TranslationDto { /** * Check if a given object implements the TranslationDto interface. */ -export function instanceOfTranslationDto(value: object): value is TranslationDto { +export function instanceOfTranslationDto(value: any): value is TranslationDto { if (!('status' in value) || value['status'] === undefined) return false; if (!('result' in value) || value['result'] === undefined) return false; return true; diff --git a/src/generated/models/TweetRuleActionDto.ts b/src/generated/models/TweetRuleActionDto.ts index bf710c9..bfa1816 100644 --- a/src/generated/models/TweetRuleActionDto.ts +++ b/src/generated/models/TweetRuleActionDto.ts @@ -50,7 +50,7 @@ export interface TweetRuleActionDto extends RuleActionDto { /** * Check if a given object implements the TweetRuleActionDto interface. */ -export function instanceOfTweetRuleActionDto(value: object): value is TweetRuleActionDto { +export function instanceOfTweetRuleActionDto(value: any): value is TweetRuleActionDto { if (!('accessToken' in value) || value['accessToken'] === undefined) return false; if (!('accessSecret' in value) || value['accessSecret'] === undefined) return false; if (!('text' in value) || value['text'] === undefined) return false; diff --git a/src/generated/models/TypesenseRuleActionDto.ts b/src/generated/models/TypesenseRuleActionDto.ts index 9e35ef4..a9bb535 100644 --- a/src/generated/models/TypesenseRuleActionDto.ts +++ b/src/generated/models/TypesenseRuleActionDto.ts @@ -62,7 +62,7 @@ export interface TypesenseRuleActionDto extends RuleActionDto { /** * Check if a given object implements the TypesenseRuleActionDto interface. */ -export function instanceOfTypesenseRuleActionDto(value: object): value is TypesenseRuleActionDto { +export function instanceOfTypesenseRuleActionDto(value: any): value is TypesenseRuleActionDto { if (!('host' in value) || value['host'] === undefined) return false; if (!('indexName' in value) || value['indexName'] === undefined) return false; if (!('apiKey' in value) || value['apiKey'] === undefined) return false; diff --git a/src/generated/models/UIFieldPropertiesDto.ts b/src/generated/models/UIFieldPropertiesDto.ts index 0146a38..662a6e9 100644 --- a/src/generated/models/UIFieldPropertiesDto.ts +++ b/src/generated/models/UIFieldPropertiesDto.ts @@ -46,7 +46,7 @@ export interface UIFieldPropertiesDto extends FieldPropertiesDto { /** * Check if a given object implements the UIFieldPropertiesDto interface. */ -export function instanceOfUIFieldPropertiesDto(value: object): value is UIFieldPropertiesDto { +export function instanceOfUIFieldPropertiesDto(value: any): value is UIFieldPropertiesDto { return true; } diff --git a/src/generated/models/UpdateAppDto.ts b/src/generated/models/UpdateAppDto.ts index d4840f2..2e09c2c 100644 --- a/src/generated/models/UpdateAppDto.ts +++ b/src/generated/models/UpdateAppDto.ts @@ -37,7 +37,7 @@ export interface UpdateAppDto { /** * Check if a given object implements the UpdateAppDto interface. */ -export function instanceOfUpdateAppDto(value: object): value is UpdateAppDto { +export function instanceOfUpdateAppDto(value: any): value is UpdateAppDto { return true; } diff --git a/src/generated/models/UpdateAppSettingsDto.ts b/src/generated/models/UpdateAppSettingsDto.ts index e6feb59..491e30f 100644 --- a/src/generated/models/UpdateAppSettingsDto.ts +++ b/src/generated/models/UpdateAppSettingsDto.ts @@ -62,7 +62,7 @@ export interface UpdateAppSettingsDto { /** * Check if a given object implements the UpdateAppSettingsDto interface. */ -export function instanceOfUpdateAppSettingsDto(value: object): value is UpdateAppSettingsDto { +export function instanceOfUpdateAppSettingsDto(value: any): value is UpdateAppSettingsDto { if (!('patterns' in value) || value['patterns'] === undefined) return false; if (!('editors' in value) || value['editors'] === undefined) return false; return true; @@ -91,8 +91,8 @@ export function UpdateAppSettingsDtoToJSON(value?: UpdateAppSettingsDto | null, } return { - 'patterns': ((value['patterns'] as Array).map(PatternDtoToJSON)), - 'editors': ((value['editors'] as Array).map(EditorDtoToJSON)), + 'patterns': ((value['patterns'] as Array).map(x => PatternDtoToJSON(x))), + 'editors': ((value['editors'] as Array).map(x => EditorDtoToJSON(x))), 'hideScheduler': value['hideScheduler'], 'hideDateTimeModeButton': value['hideDateTimeModeButton'], }; diff --git a/src/generated/models/UpdateAssetScriptsDto.ts b/src/generated/models/UpdateAssetScriptsDto.ts index a405f53..707555d 100644 --- a/src/generated/models/UpdateAssetScriptsDto.ts +++ b/src/generated/models/UpdateAssetScriptsDto.ts @@ -67,7 +67,7 @@ export interface UpdateAssetScriptsDto { /** * Check if a given object implements the UpdateAssetScriptsDto interface. */ -export function instanceOfUpdateAssetScriptsDto(value: object): value is UpdateAssetScriptsDto { +export function instanceOfUpdateAssetScriptsDto(value: any): value is UpdateAssetScriptsDto { return true; } diff --git a/src/generated/models/UpdateClientDto.ts b/src/generated/models/UpdateClientDto.ts index 725c113..2e46973 100644 --- a/src/generated/models/UpdateClientDto.ts +++ b/src/generated/models/UpdateClientDto.ts @@ -55,7 +55,7 @@ export interface UpdateClientDto { /** * Check if a given object implements the UpdateClientDto interface. */ -export function instanceOfUpdateClientDto(value: object): value is UpdateClientDto { +export function instanceOfUpdateClientDto(value: any): value is UpdateClientDto { return true; } diff --git a/src/generated/models/UpdateFieldDto.ts b/src/generated/models/UpdateFieldDto.ts index 3ccb60c..03a3143 100644 --- a/src/generated/models/UpdateFieldDto.ts +++ b/src/generated/models/UpdateFieldDto.ts @@ -38,7 +38,7 @@ export interface UpdateFieldDto { /** * Check if a given object implements the UpdateFieldDto interface. */ -export function instanceOfUpdateFieldDto(value: object): value is UpdateFieldDto { +export function instanceOfUpdateFieldDto(value: any): value is UpdateFieldDto { if (!('properties' in value) || value['properties'] === undefined) return false; return true; } diff --git a/src/generated/models/UpdateLanguageDto.ts b/src/generated/models/UpdateLanguageDto.ts index 7a90d8c..5f834ba 100644 --- a/src/generated/models/UpdateLanguageDto.ts +++ b/src/generated/models/UpdateLanguageDto.ts @@ -43,7 +43,7 @@ export interface UpdateLanguageDto { /** * Check if a given object implements the UpdateLanguageDto interface. */ -export function instanceOfUpdateLanguageDto(value: object): value is UpdateLanguageDto { +export function instanceOfUpdateLanguageDto(value: any): value is UpdateLanguageDto { return true; } diff --git a/src/generated/models/UpdateProfileDto.ts b/src/generated/models/UpdateProfileDto.ts index 9494860..fa88856 100644 --- a/src/generated/models/UpdateProfileDto.ts +++ b/src/generated/models/UpdateProfileDto.ts @@ -31,7 +31,7 @@ export interface UpdateProfileDto { /** * Check if a given object implements the UpdateProfileDto interface. */ -export function instanceOfUpdateProfileDto(value: object): value is UpdateProfileDto { +export function instanceOfUpdateProfileDto(value: any): value is UpdateProfileDto { return true; } diff --git a/src/generated/models/UpdateRoleDto.ts b/src/generated/models/UpdateRoleDto.ts index 98fc2a5..14191f4 100644 --- a/src/generated/models/UpdateRoleDto.ts +++ b/src/generated/models/UpdateRoleDto.ts @@ -37,7 +37,7 @@ export interface UpdateRoleDto { /** * Check if a given object implements the UpdateRoleDto interface. */ -export function instanceOfUpdateRoleDto(value: object): value is UpdateRoleDto { +export function instanceOfUpdateRoleDto(value: any): value is UpdateRoleDto { if (!('permissions' in value) || value['permissions'] === undefined) return false; return true; } diff --git a/src/generated/models/UpdateRuleDto.ts b/src/generated/models/UpdateRuleDto.ts index a31951e..b01a68d 100644 --- a/src/generated/models/UpdateRuleDto.ts +++ b/src/generated/models/UpdateRuleDto.ts @@ -62,7 +62,7 @@ export interface UpdateRuleDto { /** * Check if a given object implements the UpdateRuleDto interface. */ -export function instanceOfUpdateRuleDto(value: object): value is UpdateRuleDto { +export function instanceOfUpdateRuleDto(value: any): value is UpdateRuleDto { return true; } diff --git a/src/generated/models/UpdateSchemaDto.ts b/src/generated/models/UpdateSchemaDto.ts index 22dc5cb..29bcbe2 100644 --- a/src/generated/models/UpdateSchemaDto.ts +++ b/src/generated/models/UpdateSchemaDto.ts @@ -67,7 +67,7 @@ export interface UpdateSchemaDto { /** * Check if a given object implements the UpdateSchemaDto interface. */ -export function instanceOfUpdateSchemaDto(value: object): value is UpdateSchemaDto { +export function instanceOfUpdateSchemaDto(value: any): value is UpdateSchemaDto { return true; } diff --git a/src/generated/models/UpdateSettingDto.ts b/src/generated/models/UpdateSettingDto.ts index b64d318..2370eec 100644 --- a/src/generated/models/UpdateSettingDto.ts +++ b/src/generated/models/UpdateSettingDto.ts @@ -31,7 +31,7 @@ export interface UpdateSettingDto { /** * Check if a given object implements the UpdateSettingDto interface. */ -export function instanceOfUpdateSettingDto(value: object): value is UpdateSettingDto { +export function instanceOfUpdateSettingDto(value: any): value is UpdateSettingDto { if (!('value' in value) || value['value'] === undefined) return false; return true; } diff --git a/src/generated/models/UpdateTeamDto.ts b/src/generated/models/UpdateTeamDto.ts index df61ad7..8ae1afe 100644 --- a/src/generated/models/UpdateTeamDto.ts +++ b/src/generated/models/UpdateTeamDto.ts @@ -31,7 +31,7 @@ export interface UpdateTeamDto { /** * Check if a given object implements the UpdateTeamDto interface. */ -export function instanceOfUpdateTeamDto(value: object): value is UpdateTeamDto { +export function instanceOfUpdateTeamDto(value: any): value is UpdateTeamDto { if (!('name' in value) || value['name'] === undefined) return false; return true; } diff --git a/src/generated/models/UpdateUserDto.ts b/src/generated/models/UpdateUserDto.ts index a448d9b..a29ff20 100644 --- a/src/generated/models/UpdateUserDto.ts +++ b/src/generated/models/UpdateUserDto.ts @@ -49,7 +49,7 @@ export interface UpdateUserDto { /** * Check if a given object implements the UpdateUserDto interface. */ -export function instanceOfUpdateUserDto(value: object): value is UpdateUserDto { +export function instanceOfUpdateUserDto(value: any): value is UpdateUserDto { if (!('email' in value) || value['email'] === undefined) return false; if (!('displayName' in value) || value['displayName'] === undefined) return false; if (!('permissions' in value) || value['permissions'] === undefined) return false; diff --git a/src/generated/models/UpdateWorkflowDto.ts b/src/generated/models/UpdateWorkflowDto.ts index d1d1c09..eae87da 100644 --- a/src/generated/models/UpdateWorkflowDto.ts +++ b/src/generated/models/UpdateWorkflowDto.ts @@ -56,7 +56,7 @@ export interface UpdateWorkflowDto { /** * Check if a given object implements the UpdateWorkflowDto interface. */ -export function instanceOfUpdateWorkflowDto(value: object): value is UpdateWorkflowDto { +export function instanceOfUpdateWorkflowDto(value: any): value is UpdateWorkflowDto { if (!('steps' in value) || value['steps'] === undefined) return false; if (!('initial' in value) || value['initial'] === undefined) return false; return true; @@ -86,7 +86,7 @@ export function UpdateWorkflowDtoToJSON(value?: UpdateWorkflowDto | null, ignore return { 'name': value['name'], - 'steps': (mapValues(value['steps'], WorkflowStepDtoToJSON)), + 'steps': (mapValues(value['steps'], x => WorkflowStepDtoToJSON(x))), 'schemaIds': value['schemaIds'], 'initial': value['initial'], }; diff --git a/src/generated/models/UpsertSchemaDto.ts b/src/generated/models/UpsertSchemaDto.ts index abd8e93..552a086 100644 --- a/src/generated/models/UpsertSchemaDto.ts +++ b/src/generated/models/UpsertSchemaDto.ts @@ -104,7 +104,7 @@ export interface UpsertSchemaDto { /** * Check if a given object implements the UpsertSchemaDto interface. */ -export function instanceOfUpsertSchemaDto(value: object): value is UpsertSchemaDto { +export function instanceOfUpsertSchemaDto(value: any): value is UpsertSchemaDto { return true; } @@ -140,9 +140,9 @@ export function UpsertSchemaDtoToJSON(value?: UpsertSchemaDto | null, ignoreDisc 'scripts': SchemaScriptsDtoToJSON(value['scripts']), 'fieldsInReferences': value['fieldsInReferences'], 'fieldsInLists': value['fieldsInLists'], - 'fields': value['fields'] == null ? undefined : ((value['fields'] as Array).map(UpsertSchemaFieldDtoToJSON)), + 'fields': value['fields'] == null ? undefined : ((value['fields'] as Array).map(x => UpsertSchemaFieldDtoToJSON(x))), 'previewUrls': value['previewUrls'], - 'fieldRules': value['fieldRules'] == null ? undefined : ((value['fieldRules'] as Array).map(FieldRuleDtoToJSON)), + 'fieldRules': value['fieldRules'] == null ? undefined : ((value['fieldRules'] as Array).map(x => FieldRuleDtoToJSON(x))), 'category': value['category'], 'isPublished': value['isPublished'], }; diff --git a/src/generated/models/UpsertSchemaFieldDto.ts b/src/generated/models/UpsertSchemaFieldDto.ts index 6c74c49..3e9f23a 100644 --- a/src/generated/models/UpsertSchemaFieldDto.ts +++ b/src/generated/models/UpsertSchemaFieldDto.ts @@ -80,7 +80,7 @@ export interface UpsertSchemaFieldDto { /** * Check if a given object implements the UpsertSchemaFieldDto interface. */ -export function instanceOfUpsertSchemaFieldDto(value: object): value is UpsertSchemaFieldDto { +export function instanceOfUpsertSchemaFieldDto(value: any): value is UpsertSchemaFieldDto { if (!('name' in value) || value['name'] === undefined) return false; if (!('properties' in value) || value['properties'] === undefined) return false; return true; @@ -118,6 +118,6 @@ export function UpsertSchemaFieldDtoToJSON(value?: UpsertSchemaFieldDto | null, 'isDisabled': value['isDisabled'], 'partitioning': value['partitioning'], 'properties': FieldPropertiesDtoToJSON(value['properties']), - 'nested': value['nested'] == null ? undefined : ((value['nested'] as Array).map(UpsertSchemaNestedFieldDtoToJSON)), + 'nested': value['nested'] == null ? undefined : ((value['nested'] as Array).map(x => UpsertSchemaNestedFieldDtoToJSON(x))), }; } diff --git a/src/generated/models/UpsertSchemaNestedFieldDto.ts b/src/generated/models/UpsertSchemaNestedFieldDto.ts index 19a2c9f..49b655d 100644 --- a/src/generated/models/UpsertSchemaNestedFieldDto.ts +++ b/src/generated/models/UpsertSchemaNestedFieldDto.ts @@ -62,7 +62,7 @@ export interface UpsertSchemaNestedFieldDto { /** * Check if a given object implements the UpsertSchemaNestedFieldDto interface. */ -export function instanceOfUpsertSchemaNestedFieldDto(value: object): value is UpsertSchemaNestedFieldDto { +export function instanceOfUpsertSchemaNestedFieldDto(value: any): value is UpsertSchemaNestedFieldDto { if (!('name' in value) || value['name'] === undefined) return false; if (!('properties' in value) || value['properties'] === undefined) return false; return true; diff --git a/src/generated/models/UsageRuleTriggerDto.ts b/src/generated/models/UsageRuleTriggerDto.ts index 2fd0316..c8b6313 100644 --- a/src/generated/models/UsageRuleTriggerDto.ts +++ b/src/generated/models/UsageRuleTriggerDto.ts @@ -44,7 +44,7 @@ export interface UsageRuleTriggerDto extends RuleTriggerDto { /** * Check if a given object implements the UsageRuleTriggerDto interface. */ -export function instanceOfUsageRuleTriggerDto(value: object): value is UsageRuleTriggerDto { +export function instanceOfUsageRuleTriggerDto(value: any): value is UsageRuleTriggerDto { if (!('limit' in value) || value['limit'] === undefined) return false; return true; } diff --git a/src/generated/models/UserDto.ts b/src/generated/models/UserDto.ts index 4eaa001..8c582ad 100644 --- a/src/generated/models/UserDto.ts +++ b/src/generated/models/UserDto.ts @@ -68,7 +68,7 @@ export interface UserDto { /** * Check if a given object implements the UserDto interface. */ -export function instanceOfUserDto(value: object): value is UserDto { +export function instanceOfUserDto(value: any): value is UserDto { if (!('links' in value) || value['links'] === undefined) return false; if (!('id' in value) || value['id'] === undefined) return false; if (!('email' in value) || value['email'] === undefined) return false; @@ -103,7 +103,7 @@ export function UserDtoToJSON(value?: UserDto | null, ignoreDiscriminator = fals } return { - '_links': (mapValues(value['links'], ResourceLinkToJSON)), + '_links': (mapValues(value['links'], x => ResourceLinkToJSON(x))), 'id': value['id'], 'email': value['email'], 'displayName': value['displayName'], diff --git a/src/generated/models/UserProperty.ts b/src/generated/models/UserProperty.ts index 6aab7a5..fce14e9 100644 --- a/src/generated/models/UserProperty.ts +++ b/src/generated/models/UserProperty.ts @@ -37,7 +37,7 @@ export interface UserProperty { /** * Check if a given object implements the UserProperty interface. */ -export function instanceOfUserProperty(value: object): value is UserProperty { +export function instanceOfUserProperty(value: any): value is UserProperty { if (!('name' in value) || value['name'] === undefined) return false; if (!('value' in value) || value['value'] === undefined) return false; return true; diff --git a/src/generated/models/UsersDto.ts b/src/generated/models/UsersDto.ts index f7d56a5..06926b9 100644 --- a/src/generated/models/UsersDto.ts +++ b/src/generated/models/UsersDto.ts @@ -56,7 +56,7 @@ export interface UsersDto { /** * Check if a given object implements the UsersDto interface. */ -export function instanceOfUsersDto(value: object): value is UsersDto { +export function instanceOfUsersDto(value: any): value is UsersDto { if (!('links' in value) || value['links'] === undefined) return false; if (!('total' in value) || value['total'] === undefined) return false; if (!('items' in value) || value['items'] === undefined) return false; @@ -85,8 +85,8 @@ export function UsersDtoToJSON(value?: UsersDto | null, ignoreDiscriminator = fa } return { - '_links': (mapValues(value['links'], ResourceLinkToJSON)), + '_links': (mapValues(value['links'], x => ResourceLinkToJSON(x))), 'total': value['total'], - 'items': ((value['items'] as Array).map(UserDtoToJSON)), + 'items': ((value['items'] as Array).map(x => UserDtoToJSON(x))), }; } diff --git a/src/generated/models/WebhookRuleActionDto.ts b/src/generated/models/WebhookRuleActionDto.ts index 617bb2e..698a97d 100644 --- a/src/generated/models/WebhookRuleActionDto.ts +++ b/src/generated/models/WebhookRuleActionDto.ts @@ -76,7 +76,7 @@ export interface WebhookRuleActionDto extends RuleActionDto { /** * Check if a given object implements the WebhookRuleActionDto interface. */ -export function instanceOfWebhookRuleActionDto(value: object): value is WebhookRuleActionDto { +export function instanceOfWebhookRuleActionDto(value: any): value is WebhookRuleActionDto { if (!('url' in value) || value['url'] === undefined) return false; if (!('method' in value) || value['method'] === undefined) return false; return true; diff --git a/src/generated/models/WorkflowDto.ts b/src/generated/models/WorkflowDto.ts index b42d1e4..1d548cd 100644 --- a/src/generated/models/WorkflowDto.ts +++ b/src/generated/models/WorkflowDto.ts @@ -74,7 +74,7 @@ export interface WorkflowDto { /** * Check if a given object implements the WorkflowDto interface. */ -export function instanceOfWorkflowDto(value: object): value is WorkflowDto { +export function instanceOfWorkflowDto(value: any): value is WorkflowDto { if (!('links' in value) || value['links'] === undefined) return false; if (!('id' in value) || value['id'] === undefined) return false; if (!('steps' in value) || value['steps'] === undefined) return false; @@ -107,10 +107,10 @@ export function WorkflowDtoToJSON(value?: WorkflowDto | null, ignoreDiscriminato } return { - '_links': (mapValues(value['links'], ResourceLinkToJSON)), + '_links': (mapValues(value['links'], x => ResourceLinkToJSON(x))), 'id': value['id'], 'name': value['name'], - 'steps': (mapValues(value['steps'], WorkflowStepDtoToJSON)), + 'steps': (mapValues(value['steps'], x => WorkflowStepDtoToJSON(x))), 'schemaIds': value['schemaIds'], 'initial': value['initial'], }; diff --git a/src/generated/models/WorkflowStepDto.ts b/src/generated/models/WorkflowStepDto.ts index 1218fa9..4efa01a 100644 --- a/src/generated/models/WorkflowStepDto.ts +++ b/src/generated/models/WorkflowStepDto.ts @@ -68,7 +68,7 @@ export interface WorkflowStepDto { /** * Check if a given object implements the WorkflowStepDto interface. */ -export function instanceOfWorkflowStepDto(value: object): value is WorkflowStepDto { +export function instanceOfWorkflowStepDto(value: any): value is WorkflowStepDto { return true; } @@ -97,7 +97,7 @@ export function WorkflowStepDtoToJSON(value?: WorkflowStepDto | null, ignoreDisc } return { - 'transitions': value['transitions'] == null ? undefined : (mapValues(value['transitions'], WorkflowTransitionDtoToJSON)), + 'transitions': value['transitions'] == null ? undefined : (mapValues(value['transitions'], x => WorkflowTransitionDtoToJSON(x))), 'color': value['color'], 'validate': value['validate'], 'noUpdate': value['noUpdate'], diff --git a/src/generated/models/WorkflowTransitionDto.ts b/src/generated/models/WorkflowTransitionDto.ts index 0818001..68b6f7b 100644 --- a/src/generated/models/WorkflowTransitionDto.ts +++ b/src/generated/models/WorkflowTransitionDto.ts @@ -37,7 +37,7 @@ export interface WorkflowTransitionDto { /** * Check if a given object implements the WorkflowTransitionDto interface. */ -export function instanceOfWorkflowTransitionDto(value: object): value is WorkflowTransitionDto { +export function instanceOfWorkflowTransitionDto(value: any): value is WorkflowTransitionDto { return true; } diff --git a/src/generated/models/WorkflowsDto.ts b/src/generated/models/WorkflowsDto.ts index 4851f11..7916b12 100644 --- a/src/generated/models/WorkflowsDto.ts +++ b/src/generated/models/WorkflowsDto.ts @@ -56,7 +56,7 @@ export interface WorkflowsDto { /** * Check if a given object implements the WorkflowsDto interface. */ -export function instanceOfWorkflowsDto(value: object): value is WorkflowsDto { +export function instanceOfWorkflowsDto(value: any): value is WorkflowsDto { if (!('links' in value) || value['links'] === undefined) return false; if (!('items' in value) || value['items'] === undefined) return false; if (!('errors' in value) || value['errors'] === undefined) return false; @@ -85,8 +85,8 @@ export function WorkflowsDtoToJSON(value?: WorkflowsDto | null, ignoreDiscrimina } return { - '_links': (mapValues(value['links'], ResourceLinkToJSON)), - 'items': ((value['items'] as Array).map(WorkflowDtoToJSON)), + '_links': (mapValues(value['links'], x => ResourceLinkToJSON(x))), + 'items': ((value['items'] as Array).map(x => WorkflowDtoToJSON(x))), 'errors': value['errors'], }; } diff --git a/src/wrapper/SquidexClient.ts b/src/wrapper/SquidexClient.ts index 71bf722..74b49b8 100644 --- a/src/wrapper/SquidexClient.ts +++ b/src/wrapper/SquidexClient.ts @@ -259,7 +259,7 @@ export class SquidexClients { throw new Error("Configuration 'appName' is required."); } - this.tokenStore ||= this.clientOptions.tokenStore || new SquidexClients.InMemoryTokenStore(); + this.tokenStore = this.clientOptions.tokenStore || new SquidexClients.InMemoryTokenStore(); const originalFetch = this.clientOptions.fetcher || fetch; let fetchApi: FetchAPI = async (input, init) => { @@ -372,7 +372,7 @@ export class SquidexClients { } function addOptions(init: RequestInit, clientOptions: SquidexClients.Options) { - if (clientOptions.timeout) { + if (clientOptions.timeout && typeof AbortSignal.timeout === 'function') { init.signal = AbortSignal.timeout(clientOptions.timeout); } diff --git a/templates/modelGeneric.mustache b/templates/modelGeneric.mustache index 998c416..fa9f4ad 100644 --- a/templates/modelGeneric.mustache +++ b/templates/modelGeneric.mustache @@ -29,7 +29,7 @@ export function is{{modelName}}(value: {{classname}}): value is {{modelName}} { /** * Check if a given object implements the {{classname}} interface. */ -export function instanceOf{{classname}}(value: object): value is {{classname}} { +export function instanceOf{{classname}}(value: any): value is {{classname}} { {{#vars}} {{#required}} if (!('{{name}}' in value) || value['{{name}}'] === undefined) return false; @@ -148,14 +148,14 @@ export function {{classname}}ToJSON(value?: {{#hasReadOnly}}Omit<{{classname}}, {{^isPrimitiveType}} {{#isArray}} {{#uniqueItems}} - '{{baseName}}': {{^required}}value['{{name}}'] == null ? undefined : {{/required}}({{#required}}{{#isNullable}}value['{{name}}'] == null ? null : {{/isNullable}}{{/required}}Array.from(value['{{name}}'] as Set).map({{#items}}{{datatype}}{{/items}}ToJSON)), + '{{baseName}}': {{^required}}value['{{name}}'] == null ? undefined : {{/required}}({{#required}}{{#isNullable}}value['{{name}}'] == null ? null : {{/isNullable}}{{/required}}Array.from(value['{{name}}'] as Set).map(x => {{#items}}{{datatype}}{{/items}}ToJSON(x))), {{/uniqueItems}} {{^uniqueItems}} - '{{baseName}}': {{^required}}value['{{name}}'] == null ? undefined : {{/required}}({{#required}}{{#isNullable}}value['{{name}}'] == null ? null : {{/isNullable}}{{/required}}(value['{{name}}'] as Array).map({{#items}}{{datatype}}{{/items}}ToJSON)), + '{{baseName}}': {{^required}}value['{{name}}'] == null ? undefined : {{/required}}({{#required}}{{#isNullable}}value['{{name}}'] == null ? null : {{/isNullable}}{{/required}}(value['{{name}}'] as Array).map(x => {{#items}}{{datatype}}{{/items}}ToJSON(x))), {{/uniqueItems}} {{/isArray}} {{#isMap}} - '{{baseName}}': {{^required}}value['{{name}}'] == null ? undefined : {{/required}}({{#required}}{{#isNullable}}value['{{name}}'] == null ? null : {{/isNullable}}{{/required}}mapValues(value['{{name}}'], {{#items}}{{datatype}}{{/items}}ToJSON)), + '{{baseName}}': {{^required}}value['{{name}}'] == null ? undefined : {{/required}}({{#required}}{{#isNullable}}value['{{name}}'] == null ? null : {{/isNullable}}{{/required}}mapValues(value['{{name}}'], x => {{#items}}{{datatype}}{{/items}}ToJSON(x))), {{/isMap}} {{^isArray}} {{^isMap}} diff --git a/tests/contents.test.ts b/tests/contents.test.ts index 36885bd..50ff556 100644 --- a/tests/contents.test.ts +++ b/tests/contents.test.ts @@ -58,7 +58,7 @@ describe("Contents", () => { const content = await client.contents.getContent({ schema: createdSchema.name, id: createdContent.id, - xUnpublished: true, + unpublished: true, }); expect(content.data).toEqual({ field1: { iv: value } }); expect(content.lastModified).toBeDefined();