@integrahub/vergefy-client 0.11.0 → 0.13.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (86) hide show
  1. package/README.md +2 -2
  2. package/dist/apis/APIAFLFlagApi.d.ts +68 -12
  3. package/dist/apis/APIAFLFlagApi.js +191 -11
  4. package/dist/esm/apis/APIAFLFlagApi.js +190 -10
  5. package/dist/esm/ext/telemetry.js +1 -1
  6. package/dist/esm/models/AffiliateTierHistoryDTO.js +9 -3
  7. package/dist/esm/models/AgentHierarchyCreateDTO.js +3 -1
  8. package/dist/esm/models/ArticleChannelStockCreateDTO.js +3 -1
  9. package/dist/esm/models/DataResponseDTOFlagEnvironmentDefinitionDTO.js +42 -0
  10. package/dist/esm/models/DataResponseDTOListFlagEnvironmentDefinitionDTO.js +42 -0
  11. package/dist/esm/models/DealCloseDTO.js +3 -1
  12. package/dist/esm/models/DealStageUpdateDTO.js +3 -1
  13. package/dist/esm/models/FlagEnvironmentCreateApiDTO.js +51 -0
  14. package/dist/esm/models/FlagEnvironmentDefinitionDTO.js +88 -0
  15. package/dist/esm/models/FleetDeviceConsumableCreateDTO.js +6 -2
  16. package/dist/esm/models/FleetGeofenceCreateDTO.js +9 -3
  17. package/dist/esm/models/FleetTelemetryCreateDTO.js +6 -2
  18. package/dist/esm/models/GoodsReceiptDTO.js +3 -1
  19. package/dist/esm/models/InsuranceBrokerCreateDTO.js +6 -2
  20. package/dist/esm/models/InsuranceCarrierCreateDTO.js +3 -1
  21. package/dist/esm/models/InsuranceClaimCreateDTO.js +10 -4
  22. package/dist/esm/models/InsuranceCommissionCreateDTO.js +9 -3
  23. package/dist/esm/models/InsuranceCommissionStatementCreateDTO.js +11 -5
  24. package/dist/esm/models/InsurancePolicyCreateDTO.js +14 -6
  25. package/dist/esm/models/LoyaltyMemberEnrollDTO.js +6 -2
  26. package/dist/esm/models/ManufacturingProcessProfileCreateDTO.js +3 -1
  27. package/dist/esm/models/ManufacturingWorkOrderMaterialCreateDTO.js +6 -2
  28. package/dist/esm/models/PlatformPaymentMethodDTO.js +3 -1
  29. package/dist/esm/models/SocialWorkflowCreateDTO.js +3 -1
  30. package/dist/esm/models/StockDTO.js +6 -2
  31. package/dist/esm/models/index.js +4 -0
  32. package/dist/ext/telemetry.d.ts +1 -1
  33. package/dist/ext/telemetry.js +1 -1
  34. package/dist/models/AffiliateTierHistoryDTO.d.ts +3 -3
  35. package/dist/models/AffiliateTierHistoryDTO.js +9 -3
  36. package/dist/models/AgentHierarchyCreateDTO.d.ts +1 -1
  37. package/dist/models/AgentHierarchyCreateDTO.js +3 -1
  38. package/dist/models/ArticleChannelStockCreateDTO.d.ts +1 -1
  39. package/dist/models/ArticleChannelStockCreateDTO.js +3 -1
  40. package/dist/models/DataResponseDTOFlagEnvironmentDefinitionDTO.d.ts +33 -0
  41. package/dist/models/DataResponseDTOFlagEnvironmentDefinitionDTO.js +49 -0
  42. package/dist/models/DataResponseDTOListFlagEnvironmentDefinitionDTO.d.ts +33 -0
  43. package/dist/models/DataResponseDTOListFlagEnvironmentDefinitionDTO.js +49 -0
  44. package/dist/models/DealCloseDTO.d.ts +1 -1
  45. package/dist/models/DealCloseDTO.js +3 -1
  46. package/dist/models/DealStageUpdateDTO.d.ts +1 -1
  47. package/dist/models/DealStageUpdateDTO.js +3 -1
  48. package/dist/models/FlagEnvironmentCreateApiDTO.d.ts +50 -0
  49. package/dist/models/FlagEnvironmentCreateApiDTO.js +58 -0
  50. package/dist/models/FlagEnvironmentDefinitionDTO.d.ts +140 -0
  51. package/dist/models/FlagEnvironmentDefinitionDTO.js +96 -0
  52. package/dist/models/FleetDeviceConsumableCreateDTO.d.ts +2 -2
  53. package/dist/models/FleetDeviceConsumableCreateDTO.js +6 -2
  54. package/dist/models/FleetGeofenceCreateDTO.d.ts +3 -3
  55. package/dist/models/FleetGeofenceCreateDTO.js +9 -3
  56. package/dist/models/FleetTelemetryCreateDTO.d.ts +2 -2
  57. package/dist/models/FleetTelemetryCreateDTO.js +6 -2
  58. package/dist/models/GoodsReceiptDTO.d.ts +1 -1
  59. package/dist/models/GoodsReceiptDTO.js +3 -1
  60. package/dist/models/InsuranceBrokerCreateDTO.d.ts +2 -2
  61. package/dist/models/InsuranceBrokerCreateDTO.js +6 -2
  62. package/dist/models/InsuranceCarrierCreateDTO.d.ts +1 -1
  63. package/dist/models/InsuranceCarrierCreateDTO.js +3 -1
  64. package/dist/models/InsuranceClaimCreateDTO.d.ts +3 -3
  65. package/dist/models/InsuranceClaimCreateDTO.js +10 -4
  66. package/dist/models/InsuranceCommissionCreateDTO.d.ts +3 -3
  67. package/dist/models/InsuranceCommissionCreateDTO.js +9 -3
  68. package/dist/models/InsuranceCommissionStatementCreateDTO.d.ts +3 -3
  69. package/dist/models/InsuranceCommissionStatementCreateDTO.js +11 -5
  70. package/dist/models/InsurancePolicyCreateDTO.d.ts +4 -4
  71. package/dist/models/InsurancePolicyCreateDTO.js +14 -6
  72. package/dist/models/LoyaltyMemberEnrollDTO.d.ts +2 -2
  73. package/dist/models/LoyaltyMemberEnrollDTO.js +6 -2
  74. package/dist/models/ManufacturingProcessProfileCreateDTO.d.ts +1 -1
  75. package/dist/models/ManufacturingProcessProfileCreateDTO.js +3 -1
  76. package/dist/models/ManufacturingWorkOrderMaterialCreateDTO.d.ts +2 -2
  77. package/dist/models/ManufacturingWorkOrderMaterialCreateDTO.js +6 -2
  78. package/dist/models/PlatformPaymentMethodDTO.d.ts +1 -1
  79. package/dist/models/PlatformPaymentMethodDTO.js +3 -1
  80. package/dist/models/SocialWorkflowCreateDTO.d.ts +1 -1
  81. package/dist/models/SocialWorkflowCreateDTO.js +3 -1
  82. package/dist/models/StockDTO.d.ts +2 -2
  83. package/dist/models/StockDTO.js +6 -2
  84. package/dist/models/index.d.ts +4 -0
  85. package/dist/models/index.js +4 -0
  86. package/package.json +1 -1
@@ -44,6 +44,14 @@ export const InsurancePolicyCreateDTOStatusEnum = {
44
44
  * Check if a given object implements the InsurancePolicyCreateDTO interface.
45
45
  */
46
46
  export function instanceOfInsurancePolicyCreateDTO(value) {
47
+ if (!('brokerId' in value) || value['brokerId'] === undefined)
48
+ return false;
49
+ if (!('effectiveAt' in value) || value['effectiveAt'] === undefined)
50
+ return false;
51
+ if (!('expiryAt' in value) || value['expiryAt'] === undefined)
52
+ return false;
53
+ if (!('policyType' in value) || value['policyType'] === undefined)
54
+ return false;
47
55
  return true;
48
56
  }
49
57
  export function InsurancePolicyCreateDTOFromJSON(json) {
@@ -54,7 +62,7 @@ export function InsurancePolicyCreateDTOFromJSONTyped(json, ignoreDiscriminator)
54
62
  return json;
55
63
  }
56
64
  return {
57
- 'brokerId': json['brokerId'] == null ? undefined : json['brokerId'],
65
+ 'brokerId': json['brokerId'],
58
66
  'carrierId': json['carrierId'] == null ? undefined : json['carrierId'],
59
67
  'commissionAmount': json['commissionAmount'] == null ? undefined : json['commissionAmount'],
60
68
  'commissionPercentage': json['commissionPercentage'] == null ? undefined : json['commissionPercentage'],
@@ -63,8 +71,8 @@ export function InsurancePolicyCreateDTOFromJSONTyped(json, ignoreDiscriminator)
63
71
  'deductible': json['deductible'] == null ? undefined : json['deductible'],
64
72
  'description': json['description'] == null ? undefined : json['description'],
65
73
  'documentIds': json['documentIds'] == null ? undefined : json['documentIds'],
66
- 'effectiveAt': json['effectiveAt'] == null ? undefined : (new Date(json['effectiveAt'])),
67
- 'expiryAt': json['expiryAt'] == null ? undefined : (new Date(json['expiryAt'])),
74
+ 'effectiveAt': (new Date(json['effectiveAt'])),
75
+ 'expiryAt': (new Date(json['expiryAt'])),
68
76
  'insuredCompanyId': json['insuredCompanyId'] == null ? undefined : json['insuredCompanyId'],
69
77
  'insuredPersonId': json['insuredPersonId'] == null ? undefined : json['insuredPersonId'],
70
78
  'namespaceKey': json['namespaceKey'] == null ? undefined : json['namespaceKey'],
@@ -74,7 +82,7 @@ export function InsurancePolicyCreateDTOFromJSONTyped(json, ignoreDiscriminator)
74
82
  'permissionRead': json['permissionRead'] == null ? undefined : json['permissionRead'],
75
83
  'permissionWrite': json['permissionWrite'] == null ? undefined : json['permissionWrite'],
76
84
  'policyNumber': json['policyNumber'] == null ? undefined : json['policyNumber'],
77
- 'policyType': json['policyType'] == null ? undefined : json['policyType'],
85
+ 'policyType': json['policyType'],
78
86
  'premiumAmount': json['premiumAmount'] == null ? undefined : json['premiumAmount'],
79
87
  'premiumCurrency': json['premiumCurrency'] == null ? undefined : json['premiumCurrency'],
80
88
  'productId': json['productId'] == null ? undefined : json['productId'],
@@ -99,8 +107,8 @@ export function InsurancePolicyCreateDTOToJSONTyped(value, ignoreDiscriminator =
99
107
  'deductible': value['deductible'],
100
108
  'description': value['description'],
101
109
  'documentIds': value['documentIds'],
102
- 'effectiveAt': value['effectiveAt'] == null ? value['effectiveAt'] : value['effectiveAt'].toISOString(),
103
- 'expiryAt': value['expiryAt'] == null ? value['expiryAt'] : value['expiryAt'].toISOString(),
110
+ 'effectiveAt': value['effectiveAt'].toISOString(),
111
+ 'expiryAt': value['expiryAt'].toISOString(),
104
112
  'insuredCompanyId': value['insuredCompanyId'],
105
113
  'insuredPersonId': value['insuredPersonId'],
106
114
  'namespaceKey': value['namespaceKey'],
@@ -15,6 +15,10 @@
15
15
  * Check if a given object implements the LoyaltyMemberEnrollDTO interface.
16
16
  */
17
17
  export function instanceOfLoyaltyMemberEnrollDTO(value) {
18
+ if (!('contactId' in value) || value['contactId'] === undefined)
19
+ return false;
20
+ if (!('programId' in value) || value['programId'] === undefined)
21
+ return false;
18
22
  return true;
19
23
  }
20
24
  export function LoyaltyMemberEnrollDTOFromJSON(json) {
@@ -25,9 +29,9 @@ export function LoyaltyMemberEnrollDTOFromJSONTyped(json, ignoreDiscriminator) {
25
29
  return json;
26
30
  }
27
31
  return {
28
- 'contactId': json['contactId'] == null ? undefined : json['contactId'],
32
+ 'contactId': json['contactId'],
29
33
  'emailOptIn': json['emailOptIn'] == null ? undefined : json['emailOptIn'],
30
- 'programId': json['programId'] == null ? undefined : json['programId'],
34
+ 'programId': json['programId'],
31
35
  'pushOptIn': json['pushOptIn'] == null ? undefined : json['pushOptIn'],
32
36
  'smsOptIn': json['smsOptIn'] == null ? undefined : json['smsOptIn'],
33
37
  };
@@ -25,6 +25,8 @@ export const ManufacturingProcessProfileCreateDTOProcessTypeEnum = {
25
25
  * Check if a given object implements the ManufacturingProcessProfileCreateDTO interface.
26
26
  */
27
27
  export function instanceOfManufacturingProcessProfileCreateDTO(value) {
28
+ if (!('processType' in value) || value['processType'] === undefined)
29
+ return false;
28
30
  return true;
29
31
  }
30
32
  export function ManufacturingProcessProfileCreateDTOFromJSON(json) {
@@ -46,7 +48,7 @@ export function ManufacturingProcessProfileCreateDTOFromJSONTyped(json, ignoreDi
46
48
  'permissionAdmin': json['permissionAdmin'] == null ? undefined : json['permissionAdmin'],
47
49
  'permissionRead': json['permissionRead'] == null ? undefined : json['permissionRead'],
48
50
  'permissionWrite': json['permissionWrite'] == null ? undefined : json['permissionWrite'],
49
- 'processType': json['processType'] == null ? undefined : json['processType'],
51
+ 'processType': json['processType'],
50
52
  'profileKey': json['profileKey'] == null ? undefined : json['profileKey'],
51
53
  };
52
54
  }
@@ -15,6 +15,10 @@
15
15
  * Check if a given object implements the ManufacturingWorkOrderMaterialCreateDTO interface.
16
16
  */
17
17
  export function instanceOfManufacturingWorkOrderMaterialCreateDTO(value) {
18
+ if (!('stockId' in value) || value['stockId'] === undefined)
19
+ return false;
20
+ if (!('workOrderId' in value) || value['workOrderId'] === undefined)
21
+ return false;
18
22
  return true;
19
23
  }
20
24
  export function ManufacturingWorkOrderMaterialCreateDTOFromJSON(json) {
@@ -33,9 +37,9 @@ export function ManufacturingWorkOrderMaterialCreateDTOFromJSONTyped(json, ignor
33
37
  'permissionRead': json['permissionRead'] == null ? undefined : json['permissionRead'],
34
38
  'permissionWrite': json['permissionWrite'] == null ? undefined : json['permissionWrite'],
35
39
  'quantityPerUnit': json['quantityPerUnit'] == null ? undefined : json['quantityPerUnit'],
36
- 'stockId': json['stockId'] == null ? undefined : json['stockId'],
40
+ 'stockId': json['stockId'],
37
41
  'uom': json['uom'] == null ? undefined : json['uom'],
38
- 'workOrderId': json['workOrderId'] == null ? undefined : json['workOrderId'],
42
+ 'workOrderId': json['workOrderId'],
39
43
  };
40
44
  }
41
45
  export function ManufacturingWorkOrderMaterialCreateDTOToJSON(json) {
@@ -28,6 +28,8 @@ export const PlatformPaymentMethodDTOEntityStatusEnum = {
28
28
  * Check if a given object implements the PlatformPaymentMethodDTO interface.
29
29
  */
30
30
  export function instanceOfPlatformPaymentMethodDTO(value) {
31
+ if (!('paymentMethod' in value) || value['paymentMethod'] === undefined)
32
+ return false;
31
33
  return true;
32
34
  }
33
35
  export function PlatformPaymentMethodDTOFromJSON(json) {
@@ -50,7 +52,7 @@ export function PlatformPaymentMethodDTOFromJSONTyped(json, ignoreDiscriminator)
50
52
  'lastModifiedBy': json['lastModifiedBy'] == null ? undefined : json['lastModifiedBy'],
51
53
  'namespaceKey': json['namespaceKey'] == null ? undefined : json['namespaceKey'],
52
54
  'orderNumber': json['orderNumber'] == null ? undefined : json['orderNumber'],
53
- 'paymentMethod': json['paymentMethod'] == null ? undefined : PaymentMethodDTOFromJSON(json['paymentMethod']),
55
+ 'paymentMethod': PaymentMethodDTOFromJSON(json['paymentMethod']),
54
56
  'permission': json['permission'] == null ? undefined : ElementPermissionBasedEntityEmbeddableDTOFromJSON(json['permission']),
55
57
  'version': json['version'] == null ? undefined : json['version'],
56
58
  };
@@ -37,6 +37,8 @@ export const SocialWorkflowCreateDTOWorkflowTypeEnum = {
37
37
  export function instanceOfSocialWorkflowCreateDTO(value) {
38
38
  if (!('name' in value) || value['name'] === undefined)
39
39
  return false;
40
+ if (!('scheduleExpression' in value) || value['scheduleExpression'] === undefined)
41
+ return false;
40
42
  if (!('workflowType' in value) || value['workflowType'] === undefined)
41
43
  return false;
42
44
  return true;
@@ -62,7 +64,7 @@ export function SocialWorkflowCreateDTOFromJSONTyped(json, ignoreDiscriminator)
62
64
  'platformIds': json['platformIds'] == null ? undefined : json['platformIds'],
63
65
  'priority': json['priority'] == null ? undefined : json['priority'],
64
66
  'retryDelayMinutes': json['retryDelayMinutes'] == null ? undefined : json['retryDelayMinutes'],
65
- 'scheduleExpression': json['scheduleExpression'] == null ? undefined : json['scheduleExpression'],
67
+ 'scheduleExpression': json['scheduleExpression'],
66
68
  'scheduled': json['scheduled'] == null ? undefined : json['scheduled'],
67
69
  'tagIds': json['tagIds'] == null ? undefined : json['tagIds'],
68
70
  'timeoutMinutes': json['timeoutMinutes'] == null ? undefined : json['timeoutMinutes'],
@@ -30,6 +30,10 @@ export const StockDTOEntityStatusEnum = {
30
30
  * Check if a given object implements the StockDTO interface.
31
31
  */
32
32
  export function instanceOfStockDTO(value) {
33
+ if (!('inventory' in value) || value['inventory'] === undefined)
34
+ return false;
35
+ if (!('product' in value) || value['product'] === undefined)
36
+ return false;
33
37
  return true;
34
38
  }
35
39
  export function StockDTOFromJSON(json) {
@@ -48,13 +52,13 @@ export function StockDTOFromJSONTyped(json, ignoreDiscriminator) {
48
52
  'entityStatus': json['entityStatus'] == null ? undefined : json['entityStatus'],
49
53
  'externalId': json['externalId'] == null ? undefined : json['externalId'],
50
54
  'id': json['id'] == null ? undefined : json['id'],
51
- 'inventory': json['inventory'] == null ? undefined : InventoryDTOFromJSON(json['inventory']),
55
+ 'inventory': InventoryDTOFromJSON(json['inventory']),
52
56
  'lastModifiedAt': json['lastModifiedAt'] == null ? undefined : (new Date(json['lastModifiedAt'])),
53
57
  'lastModifiedBy': json['lastModifiedBy'] == null ? undefined : json['lastModifiedBy'],
54
58
  'namespaceKey': json['namespaceKey'] == null ? undefined : json['namespaceKey'],
55
59
  'orderNumber': json['orderNumber'] == null ? undefined : json['orderNumber'],
56
60
  'permission': json['permission'] == null ? undefined : ElementPermissionBasedEntityEmbeddableDTOFromJSON(json['permission']),
57
- 'product': json['product'] == null ? undefined : ProductDTOFromJSON(json['product']),
61
+ 'product': ProductDTOFromJSON(json['product']),
58
62
  'quantity': json['quantity'] == null ? undefined : json['quantity'],
59
63
  'stockLotId': json['stockLotId'] == null ? undefined : json['stockLotId'],
60
64
  'supplier': json['supplier'] == null ? undefined : SupplierDTOFromJSON(json['supplier']),
@@ -448,6 +448,7 @@ export * from './DataResponseDTOFiscalPeriodDTO';
448
448
  export * from './DataResponseDTOFiscalYearDTO';
449
449
  export * from './DataResponseDTOFixedAssetDTO';
450
450
  export * from './DataResponseDTOFlagDTO';
451
+ export * from './DataResponseDTOFlagEnvironmentDefinitionDTO';
451
452
  export * from './DataResponseDTOFlagEnvironmentValueDTO';
452
453
  export * from './DataResponseDTOFleetAlertDTO';
453
454
  export * from './DataResponseDTOFleetAlertRuleDTO';
@@ -549,6 +550,7 @@ export * from './DataResponseDTOListEventSessionDTO';
549
550
  export * from './DataResponseDTOListEventTicketTypeDTO';
550
551
  export * from './DataResponseDTOListFinanceAiRequestDTO';
551
552
  export * from './DataResponseDTOListFiscalPeriodDTO';
553
+ export * from './DataResponseDTOListFlagEnvironmentDefinitionDTO';
552
554
  export * from './DataResponseDTOListFlagEvaluationResultDTO';
553
555
  export * from './DataResponseDTOListFleetAlertDTO';
554
556
  export * from './DataResponseDTOListFleetDeviceCommandDTO';
@@ -857,6 +859,8 @@ export * from './FixedAssetSearchDTO';
857
859
  export * from './FixedAssetUpdateDTO';
858
860
  export * from './FlagCreateApiDTO';
859
861
  export * from './FlagDTO';
862
+ export * from './FlagEnvironmentCreateApiDTO';
863
+ export * from './FlagEnvironmentDefinitionDTO';
860
864
  export * from './FlagEnvironmentValueDTO';
861
865
  export * from './FlagEvaluationRequestDTO';
862
866
  export * from './FlagEvaluationResultDTO';
@@ -6,7 +6,7 @@
6
6
  * Mirrors the canonical Java `ext/Telemetry`.
7
7
  */
8
8
  /** Kept in sync with `vergefySdkVersion` (the published artifact version). */
9
- export declare const VERSION = "0.11.0";
9
+ export declare const VERSION = "0.13.0";
10
10
  /** The `User-Agent` value, e.g. `vergefy-typescript-client/0.1.0`. */
11
11
  export declare function userAgent(): string;
12
12
  /** The structured `X-Vergefy-Client-User-Agent` JSON header value. */
@@ -14,7 +14,7 @@ exports.userAgent = userAgent;
14
14
  exports.clientInfo = clientInfo;
15
15
  exports.telemetryHeaders = telemetryHeaders;
16
16
  /** Kept in sync with `vergefySdkVersion` (the published artifact version). */
17
- exports.VERSION = '0.11.0';
17
+ exports.VERSION = '0.13.0';
18
18
  const NAME = 'vergefy-typescript-client';
19
19
  /** The `User-Agent` value, e.g. `vergefy-typescript-client/0.1.0`. */
20
20
  function userAgent() {
@@ -21,7 +21,7 @@ export interface AffiliateTierHistoryDTO {
21
21
  * @type {string}
22
22
  * @memberof AffiliateTierHistoryDTO
23
23
  */
24
- affiliateAccountId?: string;
24
+ affiliateAccountId: string;
25
25
  /**
26
26
  *
27
27
  * @type {Date}
@@ -99,7 +99,7 @@ export interface AffiliateTierHistoryDTO {
99
99
  * @type {string}
100
100
  * @memberof AffiliateTierHistoryDTO
101
101
  */
102
- newTierId?: string;
102
+ newTierId: string;
103
103
  /**
104
104
  *
105
105
  * @type {string}
@@ -129,7 +129,7 @@ export interface AffiliateTierHistoryDTO {
129
129
  * @type {AffiliateTierHistoryDTOReasonEnum}
130
130
  * @memberof AffiliateTierHistoryDTO
131
131
  */
132
- reason?: AffiliateTierHistoryDTOReasonEnum;
132
+ reason: AffiliateTierHistoryDTOReasonEnum;
133
133
  /**
134
134
  *
135
135
  * @type {string}
@@ -45,6 +45,12 @@ exports.AffiliateTierHistoryDTOReasonEnum = {
45
45
  * Check if a given object implements the AffiliateTierHistoryDTO interface.
46
46
  */
47
47
  function instanceOfAffiliateTierHistoryDTO(value) {
48
+ if (!('affiliateAccountId' in value) || value['affiliateAccountId'] === undefined)
49
+ return false;
50
+ if (!('newTierId' in value) || value['newTierId'] === undefined)
51
+ return false;
52
+ if (!('reason' in value) || value['reason'] === undefined)
53
+ return false;
48
54
  return true;
49
55
  }
50
56
  function AffiliateTierHistoryDTOFromJSON(json) {
@@ -55,7 +61,7 @@ function AffiliateTierHistoryDTOFromJSONTyped(json, ignoreDiscriminator) {
55
61
  return json;
56
62
  }
57
63
  return {
58
- 'affiliateAccountId': json['affiliateAccountId'] == null ? undefined : json['affiliateAccountId'],
64
+ 'affiliateAccountId': json['affiliateAccountId'],
59
65
  'changedAt': json['changedAt'] == null ? undefined : (new Date(json['changedAt'])),
60
66
  'changedBy': json['changedBy'] == null ? undefined : json['changedBy'],
61
67
  'createdAt': json['createdAt'] == null ? undefined : (new Date(json['createdAt'])),
@@ -68,12 +74,12 @@ function AffiliateTierHistoryDTOFromJSONTyped(json, ignoreDiscriminator) {
68
74
  'lastModifiedAt': json['lastModifiedAt'] == null ? undefined : (new Date(json['lastModifiedAt'])),
69
75
  'lastModifiedBy': json['lastModifiedBy'] == null ? undefined : json['lastModifiedBy'],
70
76
  'namespaceKey': json['namespaceKey'] == null ? undefined : json['namespaceKey'],
71
- 'newTierId': json['newTierId'] == null ? undefined : json['newTierId'],
77
+ 'newTierId': json['newTierId'],
72
78
  'notes': json['notes'] == null ? undefined : json['notes'],
73
79
  'orderNumber': json['orderNumber'] == null ? undefined : json['orderNumber'],
74
80
  'permission': json['permission'] == null ? undefined : (0, ElementPermissionBasedEntityEmbeddableDTO_1.ElementPermissionBasedEntityEmbeddableDTOFromJSON)(json['permission']),
75
81
  'previousTierId': json['previousTierId'] == null ? undefined : json['previousTierId'],
76
- 'reason': json['reason'] == null ? undefined : json['reason'],
82
+ 'reason': json['reason'],
77
83
  'salesAmountAtChange': json['salesAmountAtChange'] == null ? undefined : json['salesAmountAtChange'],
78
84
  'salesCountAtChange': json['salesCountAtChange'] == null ? undefined : json['salesCountAtChange'],
79
85
  'version': json['version'] == null ? undefined : json['version'],
@@ -32,7 +32,7 @@ export interface AgentHierarchyCreateDTO {
32
32
  * @type {{ [key: string]: object; }}
33
33
  * @memberof AgentHierarchyCreateDTO
34
34
  */
35
- delegationRules?: {
35
+ delegationRules: {
36
36
  [key: string]: object;
37
37
  };
38
38
  /**
@@ -40,6 +40,8 @@ exports.AgentHierarchyCreateDTODelegationStrategyEnum = {
40
40
  function instanceOfAgentHierarchyCreateDTO(value) {
41
41
  if (!('allowSubDelegation' in value) || value['allowSubDelegation'] === undefined)
42
42
  return false;
43
+ if (!('delegationRules' in value) || value['delegationRules'] === undefined)
44
+ return false;
43
45
  if (!('delegationStrategy' in value) || value['delegationStrategy'] === undefined)
44
46
  return false;
45
47
  if (!('priority' in value) || value['priority'] === undefined)
@@ -60,7 +62,7 @@ function AgentHierarchyCreateDTOFromJSONTyped(json, ignoreDiscriminator) {
60
62
  return {
61
63
  'active': json['active'] == null ? undefined : json['active'],
62
64
  'allowSubDelegation': json['allowSubDelegation'],
63
- 'delegationRules': json['delegationRules'] == null ? undefined : json['delegationRules'],
65
+ 'delegationRules': json['delegationRules'],
64
66
  'delegationStrategy': json['delegationStrategy'],
65
67
  'maxDelegations': json['maxDelegations'] == null ? undefined : json['maxDelegations'],
66
68
  'metadata': json['metadata'] == null ? undefined : json['metadata'],
@@ -26,7 +26,7 @@ export interface ArticleChannelStockCreateDTO {
26
26
  * @type {string}
27
27
  * @memberof ArticleChannelStockCreateDTO
28
28
  */
29
- channelId?: string;
29
+ channelId: string;
30
30
  /**
31
31
  *
32
32
  * @type {ArticleChannelStockCreateDTOChannelTypeEnum}
@@ -34,6 +34,8 @@ exports.ArticleChannelStockCreateDTOChannelTypeEnum = {
34
34
  function instanceOfArticleChannelStockCreateDTO(value) {
35
35
  if (!('articleId' in value) || value['articleId'] === undefined)
36
36
  return false;
37
+ if (!('channelId' in value) || value['channelId'] === undefined)
38
+ return false;
37
39
  if (!('channelType' in value) || value['channelType'] === undefined)
38
40
  return false;
39
41
  return true;
@@ -47,7 +49,7 @@ function ArticleChannelStockCreateDTOFromJSONTyped(json, ignoreDiscriminator) {
47
49
  }
48
50
  return {
49
51
  'articleId': json['articleId'],
50
- 'channelId': json['channelId'] == null ? undefined : json['channelId'],
52
+ 'channelId': json['channelId'],
51
53
  'channelType': json['channelType'],
52
54
  'quantityOnHand': json['quantityOnHand'] == null ? undefined : json['quantityOnHand'],
53
55
  'reservedQuantity': json['reservedQuantity'] == null ? undefined : json['reservedQuantity'],
@@ -0,0 +1,33 @@
1
+ /**
2
+ * Vergefy API
3
+ * <h1>AI Agent Management</h1><p>Create, configure, and orchestrate AI agents with multi-provider support.</p><h2>Modules</h2><ul><li><b>Agent (IAG):</b> Agent creation, configuration, lifecycle, insight and analytics (IAG001-057, IAG500-505, IAG700-701)</li><li><b>Template (IAT):</b> Agent template management — /ai/agents-templates</li><li><b>Template Advanced (IATEMP):</b> Versions, analytics, recommendations, diffs — /ai/agents-templates (IATEMP001-008)</li><li><b>Agent Upgrade (IAGENT):</b> Upgrade, rollback, version management — /ai/agents/{id}/upgrade|rollback (IAGENT001-005)</li><li><b>Hierarchy (IAH):</b> Supervisor-worker relationships, delegation — /ai/agents/hierarchies</li><li><b>Goal (IAGG):</b> Autonomous goals, success criteria — /ai/agents/goals</li><li><b>Pool (IAGP):</b> Agent pool management, allocation, coordination (queries IAGP001-023, commands IAGP101-109) — /ai/agents/pools</li><li><b>Execution (IAGE):</b> Execution tracking, history — /ai/agents/executions</li><li><b>Health (IAGH):</b> Health checks, recovery — /ai/agents/health</li><li><b>Communication (IAGC):</b> Channels (IAGC001-019) and inter-agent messages (IAGC020-052) — /ai/agents/channels, /ai/agents/messages</li><li><b>Handoff (IAGD):</b> Agent handoff and transfer — /ai/agents/handoffs</li><li><b>Orchestration (IAGO):</b> Orchestration sessions — /ai/agents/orchestration/sessions</li><li><b>Workflow (IAGW):</b> Workflow assignment and execution — /ai/agents-workflows</li><li><b>Capability (IACAP):</b> Capability definitions, permissions (queries IACAP001-011, commands IACAP101-105) — /ai/capabilities</li><li><b>Capability Mapping (IACF):</b> Capability to feature mapping — /ai/agents/capability-feature-mappings</li></ul><p><b>Providers:</b> OpenAI GPT-4, Anthropic Claude, Google Gemini</p>
4
+ *
5
+ * The version of the OpenAPI document: 2026-05-30
6
+ * Contact: support@integrahub.co
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import type { FlagEnvironmentDefinitionDTO } from './FlagEnvironmentDefinitionDTO';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface DataResponseDTOFlagEnvironmentDefinitionDTO
17
+ */
18
+ export interface DataResponseDTOFlagEnvironmentDefinitionDTO {
19
+ /**
20
+ *
21
+ * @type {FlagEnvironmentDefinitionDTO}
22
+ * @memberof DataResponseDTOFlagEnvironmentDefinitionDTO
23
+ */
24
+ data?: FlagEnvironmentDefinitionDTO;
25
+ }
26
+ /**
27
+ * Check if a given object implements the DataResponseDTOFlagEnvironmentDefinitionDTO interface.
28
+ */
29
+ export declare function instanceOfDataResponseDTOFlagEnvironmentDefinitionDTO(value: object): value is DataResponseDTOFlagEnvironmentDefinitionDTO;
30
+ export declare function DataResponseDTOFlagEnvironmentDefinitionDTOFromJSON(json: any): DataResponseDTOFlagEnvironmentDefinitionDTO;
31
+ export declare function DataResponseDTOFlagEnvironmentDefinitionDTOFromJSONTyped(json: any, ignoreDiscriminator: boolean): DataResponseDTOFlagEnvironmentDefinitionDTO;
32
+ export declare function DataResponseDTOFlagEnvironmentDefinitionDTOToJSON(json: any): DataResponseDTOFlagEnvironmentDefinitionDTO;
33
+ export declare function DataResponseDTOFlagEnvironmentDefinitionDTOToJSONTyped(value?: DataResponseDTOFlagEnvironmentDefinitionDTO | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,49 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Vergefy API
6
+ * <h1>AI Agent Management</h1><p>Create, configure, and orchestrate AI agents with multi-provider support.</p><h2>Modules</h2><ul><li><b>Agent (IAG):</b> Agent creation, configuration, lifecycle, insight and analytics (IAG001-057, IAG500-505, IAG700-701)</li><li><b>Template (IAT):</b> Agent template management — /ai/agents-templates</li><li><b>Template Advanced (IATEMP):</b> Versions, analytics, recommendations, diffs — /ai/agents-templates (IATEMP001-008)</li><li><b>Agent Upgrade (IAGENT):</b> Upgrade, rollback, version management — /ai/agents/{id}/upgrade|rollback (IAGENT001-005)</li><li><b>Hierarchy (IAH):</b> Supervisor-worker relationships, delegation — /ai/agents/hierarchies</li><li><b>Goal (IAGG):</b> Autonomous goals, success criteria — /ai/agents/goals</li><li><b>Pool (IAGP):</b> Agent pool management, allocation, coordination (queries IAGP001-023, commands IAGP101-109) — /ai/agents/pools</li><li><b>Execution (IAGE):</b> Execution tracking, history — /ai/agents/executions</li><li><b>Health (IAGH):</b> Health checks, recovery — /ai/agents/health</li><li><b>Communication (IAGC):</b> Channels (IAGC001-019) and inter-agent messages (IAGC020-052) — /ai/agents/channels, /ai/agents/messages</li><li><b>Handoff (IAGD):</b> Agent handoff and transfer — /ai/agents/handoffs</li><li><b>Orchestration (IAGO):</b> Orchestration sessions — /ai/agents/orchestration/sessions</li><li><b>Workflow (IAGW):</b> Workflow assignment and execution — /ai/agents-workflows</li><li><b>Capability (IACAP):</b> Capability definitions, permissions (queries IACAP001-011, commands IACAP101-105) — /ai/capabilities</li><li><b>Capability Mapping (IACF):</b> Capability to feature mapping — /ai/agents/capability-feature-mappings</li></ul><p><b>Providers:</b> OpenAI GPT-4, Anthropic Claude, Google Gemini</p>
7
+ *
8
+ * The version of the OpenAPI document: 2026-05-30
9
+ * Contact: support@integrahub.co
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.instanceOfDataResponseDTOFlagEnvironmentDefinitionDTO = instanceOfDataResponseDTOFlagEnvironmentDefinitionDTO;
17
+ exports.DataResponseDTOFlagEnvironmentDefinitionDTOFromJSON = DataResponseDTOFlagEnvironmentDefinitionDTOFromJSON;
18
+ exports.DataResponseDTOFlagEnvironmentDefinitionDTOFromJSONTyped = DataResponseDTOFlagEnvironmentDefinitionDTOFromJSONTyped;
19
+ exports.DataResponseDTOFlagEnvironmentDefinitionDTOToJSON = DataResponseDTOFlagEnvironmentDefinitionDTOToJSON;
20
+ exports.DataResponseDTOFlagEnvironmentDefinitionDTOToJSONTyped = DataResponseDTOFlagEnvironmentDefinitionDTOToJSONTyped;
21
+ const FlagEnvironmentDefinitionDTO_1 = require("./FlagEnvironmentDefinitionDTO");
22
+ /**
23
+ * Check if a given object implements the DataResponseDTOFlagEnvironmentDefinitionDTO interface.
24
+ */
25
+ function instanceOfDataResponseDTOFlagEnvironmentDefinitionDTO(value) {
26
+ return true;
27
+ }
28
+ function DataResponseDTOFlagEnvironmentDefinitionDTOFromJSON(json) {
29
+ return DataResponseDTOFlagEnvironmentDefinitionDTOFromJSONTyped(json, false);
30
+ }
31
+ function DataResponseDTOFlagEnvironmentDefinitionDTOFromJSONTyped(json, ignoreDiscriminator) {
32
+ if (json == null) {
33
+ return json;
34
+ }
35
+ return {
36
+ 'data': json['data'] == null ? undefined : (0, FlagEnvironmentDefinitionDTO_1.FlagEnvironmentDefinitionDTOFromJSON)(json['data']),
37
+ };
38
+ }
39
+ function DataResponseDTOFlagEnvironmentDefinitionDTOToJSON(json) {
40
+ return DataResponseDTOFlagEnvironmentDefinitionDTOToJSONTyped(json, false);
41
+ }
42
+ function DataResponseDTOFlagEnvironmentDefinitionDTOToJSONTyped(value, ignoreDiscriminator = false) {
43
+ if (value == null) {
44
+ return value;
45
+ }
46
+ return {
47
+ 'data': (0, FlagEnvironmentDefinitionDTO_1.FlagEnvironmentDefinitionDTOToJSON)(value['data']),
48
+ };
49
+ }
@@ -0,0 +1,33 @@
1
+ /**
2
+ * Vergefy API
3
+ * <h1>AI Agent Management</h1><p>Create, configure, and orchestrate AI agents with multi-provider support.</p><h2>Modules</h2><ul><li><b>Agent (IAG):</b> Agent creation, configuration, lifecycle, insight and analytics (IAG001-057, IAG500-505, IAG700-701)</li><li><b>Template (IAT):</b> Agent template management — /ai/agents-templates</li><li><b>Template Advanced (IATEMP):</b> Versions, analytics, recommendations, diffs — /ai/agents-templates (IATEMP001-008)</li><li><b>Agent Upgrade (IAGENT):</b> Upgrade, rollback, version management — /ai/agents/{id}/upgrade|rollback (IAGENT001-005)</li><li><b>Hierarchy (IAH):</b> Supervisor-worker relationships, delegation — /ai/agents/hierarchies</li><li><b>Goal (IAGG):</b> Autonomous goals, success criteria — /ai/agents/goals</li><li><b>Pool (IAGP):</b> Agent pool management, allocation, coordination (queries IAGP001-023, commands IAGP101-109) — /ai/agents/pools</li><li><b>Execution (IAGE):</b> Execution tracking, history — /ai/agents/executions</li><li><b>Health (IAGH):</b> Health checks, recovery — /ai/agents/health</li><li><b>Communication (IAGC):</b> Channels (IAGC001-019) and inter-agent messages (IAGC020-052) — /ai/agents/channels, /ai/agents/messages</li><li><b>Handoff (IAGD):</b> Agent handoff and transfer — /ai/agents/handoffs</li><li><b>Orchestration (IAGO):</b> Orchestration sessions — /ai/agents/orchestration/sessions</li><li><b>Workflow (IAGW):</b> Workflow assignment and execution — /ai/agents-workflows</li><li><b>Capability (IACAP):</b> Capability definitions, permissions (queries IACAP001-011, commands IACAP101-105) — /ai/capabilities</li><li><b>Capability Mapping (IACF):</b> Capability to feature mapping — /ai/agents/capability-feature-mappings</li></ul><p><b>Providers:</b> OpenAI GPT-4, Anthropic Claude, Google Gemini</p>
4
+ *
5
+ * The version of the OpenAPI document: 2026-05-30
6
+ * Contact: support@integrahub.co
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import type { FlagEnvironmentDefinitionDTO } from './FlagEnvironmentDefinitionDTO';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface DataResponseDTOListFlagEnvironmentDefinitionDTO
17
+ */
18
+ export interface DataResponseDTOListFlagEnvironmentDefinitionDTO {
19
+ /**
20
+ *
21
+ * @type {Array<FlagEnvironmentDefinitionDTO>}
22
+ * @memberof DataResponseDTOListFlagEnvironmentDefinitionDTO
23
+ */
24
+ data?: Array<FlagEnvironmentDefinitionDTO>;
25
+ }
26
+ /**
27
+ * Check if a given object implements the DataResponseDTOListFlagEnvironmentDefinitionDTO interface.
28
+ */
29
+ export declare function instanceOfDataResponseDTOListFlagEnvironmentDefinitionDTO(value: object): value is DataResponseDTOListFlagEnvironmentDefinitionDTO;
30
+ export declare function DataResponseDTOListFlagEnvironmentDefinitionDTOFromJSON(json: any): DataResponseDTOListFlagEnvironmentDefinitionDTO;
31
+ export declare function DataResponseDTOListFlagEnvironmentDefinitionDTOFromJSONTyped(json: any, ignoreDiscriminator: boolean): DataResponseDTOListFlagEnvironmentDefinitionDTO;
32
+ export declare function DataResponseDTOListFlagEnvironmentDefinitionDTOToJSON(json: any): DataResponseDTOListFlagEnvironmentDefinitionDTO;
33
+ export declare function DataResponseDTOListFlagEnvironmentDefinitionDTOToJSONTyped(value?: DataResponseDTOListFlagEnvironmentDefinitionDTO | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,49 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Vergefy API
6
+ * <h1>AI Agent Management</h1><p>Create, configure, and orchestrate AI agents with multi-provider support.</p><h2>Modules</h2><ul><li><b>Agent (IAG):</b> Agent creation, configuration, lifecycle, insight and analytics (IAG001-057, IAG500-505, IAG700-701)</li><li><b>Template (IAT):</b> Agent template management — /ai/agents-templates</li><li><b>Template Advanced (IATEMP):</b> Versions, analytics, recommendations, diffs — /ai/agents-templates (IATEMP001-008)</li><li><b>Agent Upgrade (IAGENT):</b> Upgrade, rollback, version management — /ai/agents/{id}/upgrade|rollback (IAGENT001-005)</li><li><b>Hierarchy (IAH):</b> Supervisor-worker relationships, delegation — /ai/agents/hierarchies</li><li><b>Goal (IAGG):</b> Autonomous goals, success criteria — /ai/agents/goals</li><li><b>Pool (IAGP):</b> Agent pool management, allocation, coordination (queries IAGP001-023, commands IAGP101-109) — /ai/agents/pools</li><li><b>Execution (IAGE):</b> Execution tracking, history — /ai/agents/executions</li><li><b>Health (IAGH):</b> Health checks, recovery — /ai/agents/health</li><li><b>Communication (IAGC):</b> Channels (IAGC001-019) and inter-agent messages (IAGC020-052) — /ai/agents/channels, /ai/agents/messages</li><li><b>Handoff (IAGD):</b> Agent handoff and transfer — /ai/agents/handoffs</li><li><b>Orchestration (IAGO):</b> Orchestration sessions — /ai/agents/orchestration/sessions</li><li><b>Workflow (IAGW):</b> Workflow assignment and execution — /ai/agents-workflows</li><li><b>Capability (IACAP):</b> Capability definitions, permissions (queries IACAP001-011, commands IACAP101-105) — /ai/capabilities</li><li><b>Capability Mapping (IACF):</b> Capability to feature mapping — /ai/agents/capability-feature-mappings</li></ul><p><b>Providers:</b> OpenAI GPT-4, Anthropic Claude, Google Gemini</p>
7
+ *
8
+ * The version of the OpenAPI document: 2026-05-30
9
+ * Contact: support@integrahub.co
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.instanceOfDataResponseDTOListFlagEnvironmentDefinitionDTO = instanceOfDataResponseDTOListFlagEnvironmentDefinitionDTO;
17
+ exports.DataResponseDTOListFlagEnvironmentDefinitionDTOFromJSON = DataResponseDTOListFlagEnvironmentDefinitionDTOFromJSON;
18
+ exports.DataResponseDTOListFlagEnvironmentDefinitionDTOFromJSONTyped = DataResponseDTOListFlagEnvironmentDefinitionDTOFromJSONTyped;
19
+ exports.DataResponseDTOListFlagEnvironmentDefinitionDTOToJSON = DataResponseDTOListFlagEnvironmentDefinitionDTOToJSON;
20
+ exports.DataResponseDTOListFlagEnvironmentDefinitionDTOToJSONTyped = DataResponseDTOListFlagEnvironmentDefinitionDTOToJSONTyped;
21
+ const FlagEnvironmentDefinitionDTO_1 = require("./FlagEnvironmentDefinitionDTO");
22
+ /**
23
+ * Check if a given object implements the DataResponseDTOListFlagEnvironmentDefinitionDTO interface.
24
+ */
25
+ function instanceOfDataResponseDTOListFlagEnvironmentDefinitionDTO(value) {
26
+ return true;
27
+ }
28
+ function DataResponseDTOListFlagEnvironmentDefinitionDTOFromJSON(json) {
29
+ return DataResponseDTOListFlagEnvironmentDefinitionDTOFromJSONTyped(json, false);
30
+ }
31
+ function DataResponseDTOListFlagEnvironmentDefinitionDTOFromJSONTyped(json, ignoreDiscriminator) {
32
+ if (json == null) {
33
+ return json;
34
+ }
35
+ return {
36
+ 'data': json['data'] == null ? undefined : (json['data'].map(FlagEnvironmentDefinitionDTO_1.FlagEnvironmentDefinitionDTOFromJSON)),
37
+ };
38
+ }
39
+ function DataResponseDTOListFlagEnvironmentDefinitionDTOToJSON(json) {
40
+ return DataResponseDTOListFlagEnvironmentDefinitionDTOToJSONTyped(json, false);
41
+ }
42
+ function DataResponseDTOListFlagEnvironmentDefinitionDTOToJSONTyped(value, ignoreDiscriminator = false) {
43
+ if (value == null) {
44
+ return value;
45
+ }
46
+ return {
47
+ 'data': value['data'] == null ? undefined : (value['data'].map(FlagEnvironmentDefinitionDTO_1.FlagEnvironmentDefinitionDTOToJSON)),
48
+ };
49
+ }
@@ -27,7 +27,7 @@ export interface DealCloseDTO {
27
27
  * @type {string}
28
28
  * @memberof DealCloseDTO
29
29
  */
30
- closeReason?: string;
30
+ closeReason: string;
31
31
  /**
32
32
  *
33
33
  * @type {Date}
@@ -46,6 +46,8 @@ exports.DealCloseDTOEntityStatusEnum = {
46
46
  * Check if a given object implements the DealCloseDTO interface.
47
47
  */
48
48
  function instanceOfDealCloseDTO(value) {
49
+ if (!('closeReason' in value) || value['closeReason'] === undefined)
50
+ return false;
49
51
  if (!('dealStage' in value) || value['dealStage'] === undefined)
50
52
  return false;
51
53
  return true;
@@ -59,7 +61,7 @@ function DealCloseDTOFromJSONTyped(json, ignoreDiscriminator) {
59
61
  }
60
62
  return {
61
63
  'actualCloseDate': json['actualCloseDate'] == null ? undefined : json['actualCloseDate'],
62
- 'closeReason': json['closeReason'] == null ? undefined : json['closeReason'],
64
+ 'closeReason': json['closeReason'],
63
65
  'createdAt': json['createdAt'] == null ? undefined : (new Date(json['createdAt'])),
64
66
  'createdBy': json['createdBy'] == null ? undefined : json['createdBy'],
65
67
  'customId': json['customId'] == null ? undefined : json['customId'],
@@ -81,7 +81,7 @@ export interface DealStageUpdateDTO {
81
81
  * @type {DealStageUpdateDTONewDealStageEnum}
82
82
  * @memberof DealStageUpdateDTO
83
83
  */
84
- newDealStage?: DealStageUpdateDTONewDealStageEnum;
84
+ newDealStage: DealStageUpdateDTONewDealStageEnum;
85
85
  /**
86
86
  *
87
87
  * @type {string}
@@ -46,6 +46,8 @@ exports.DealStageUpdateDTONewDealStageEnum = {
46
46
  * Check if a given object implements the DealStageUpdateDTO interface.
47
47
  */
48
48
  function instanceOfDealStageUpdateDTO(value) {
49
+ if (!('newDealStage' in value) || value['newDealStage'] === undefined)
50
+ return false;
49
51
  if (!('newPipelineStageId' in value) || value['newPipelineStageId'] === undefined)
50
52
  return false;
51
53
  return true;
@@ -68,7 +70,7 @@ function DealStageUpdateDTOFromJSONTyped(json, ignoreDiscriminator) {
68
70
  'lastModifiedAt': json['lastModifiedAt'] == null ? undefined : (new Date(json['lastModifiedAt'])),
69
71
  'lastModifiedBy': json['lastModifiedBy'] == null ? undefined : json['lastModifiedBy'],
70
72
  'namespaceKey': json['namespaceKey'] == null ? undefined : json['namespaceKey'],
71
- 'newDealStage': json['newDealStage'] == null ? undefined : json['newDealStage'],
73
+ 'newDealStage': json['newDealStage'],
72
74
  'newPipelineStageId': json['newPipelineStageId'],
73
75
  'newProbability': json['newProbability'] == null ? undefined : json['newProbability'],
74
76
  'notes': json['notes'] == null ? undefined : json['notes'],