@stigg/js-client-sdk 0.34.0 → 0.35.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.
- package/dist/api/generated/types.d.ts +47 -6
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/models.d.ts +15 -1
- package/dist/utils/ModelMapper.d.ts +1 -0
- package/package.json +1 -1
|
@@ -22,6 +22,8 @@ export declare type Scalars = {
|
|
|
22
22
|
ConnectionCursor: any;
|
|
23
23
|
/** A date-time string at UTC, such as 2019-12-03T09:54:33Z, compliant with the date-time format. */
|
|
24
24
|
DateTime: any;
|
|
25
|
+
/** The `JSON` scalar type represents JSON values as specified by [ECMA-404](http://www.ecma-international.org/publications/files/ECMA-ST/ECMA-404.pdf). */
|
|
26
|
+
JSON: any;
|
|
25
27
|
};
|
|
26
28
|
/** DenyReason of get access policy */
|
|
27
29
|
export declare enum AccessDeniedReason {
|
|
@@ -85,6 +87,7 @@ export declare enum AddonSortFields {
|
|
|
85
87
|
VersionNumber = "versionNumber"
|
|
86
88
|
}
|
|
87
89
|
export declare type AddonUpdateInput = {
|
|
90
|
+
additionalMetaData?: InputMaybe<Scalars['JSON']>;
|
|
88
91
|
billingId?: InputMaybe<Scalars['String']>;
|
|
89
92
|
description?: InputMaybe<Scalars['String']>;
|
|
90
93
|
displayName: Scalars['String'];
|
|
@@ -173,10 +176,6 @@ export declare enum ChangeType {
|
|
|
173
176
|
Deleted = "DELETED",
|
|
174
177
|
Modified = "MODIFIED"
|
|
175
178
|
}
|
|
176
|
-
export declare type CheckoutAddonInput = {
|
|
177
|
-
addonId: Scalars['String'];
|
|
178
|
-
quantity?: InputMaybe<Scalars['Int']>;
|
|
179
|
-
};
|
|
180
179
|
export declare type CreateEnvironment = {
|
|
181
180
|
createdAt?: InputMaybe<Scalars['DateTime']>;
|
|
182
181
|
description?: InputMaybe<Scalars['String']>;
|
|
@@ -255,6 +254,8 @@ export declare type CustomerFilter = {
|
|
|
255
254
|
and?: InputMaybe<Array<CustomerFilter>>;
|
|
256
255
|
billingId?: InputMaybe<StringFieldComparison>;
|
|
257
256
|
createdAt?: InputMaybe<DateFieldComparison>;
|
|
257
|
+
crmHubspotCompanyId?: InputMaybe<StringFieldComparison>;
|
|
258
|
+
crmHubspotCompanyUrl?: InputMaybe<StringFieldComparison>;
|
|
258
259
|
crmId?: InputMaybe<StringFieldComparison>;
|
|
259
260
|
email?: InputMaybe<StringFieldComparison>;
|
|
260
261
|
environmentId?: InputMaybe<StringFieldComparison>;
|
|
@@ -273,6 +274,7 @@ export declare type CustomerFilterCustomerSubscriptionFilter = {
|
|
|
273
274
|
cancellationDate?: InputMaybe<DateFieldComparison>;
|
|
274
275
|
createdAt?: InputMaybe<DateFieldComparison>;
|
|
275
276
|
crmId?: InputMaybe<StringFieldComparison>;
|
|
277
|
+
crmLinkUrl?: InputMaybe<StringFieldComparison>;
|
|
276
278
|
effectiveEndDate?: InputMaybe<DateFieldComparison>;
|
|
277
279
|
endDate?: InputMaybe<DateFieldComparison>;
|
|
278
280
|
environmentId?: InputMaybe<StringFieldComparison>;
|
|
@@ -294,6 +296,7 @@ export declare type CustomerFilterPromotionalEntitlementFilter = {
|
|
|
294
296
|
updatedAt?: InputMaybe<DateFieldComparison>;
|
|
295
297
|
};
|
|
296
298
|
export declare type CustomerInput = {
|
|
299
|
+
additionalMetaData?: InputMaybe<Scalars['JSON']>;
|
|
297
300
|
billingId?: InputMaybe<Scalars['String']>;
|
|
298
301
|
billingInformation?: InputMaybe<CustomerBillingInfo>;
|
|
299
302
|
crmId?: InputMaybe<Scalars['String']>;
|
|
@@ -310,6 +313,8 @@ export declare type CustomerSort = {
|
|
|
310
313
|
export declare enum CustomerSortFields {
|
|
311
314
|
BillingId = "billingId",
|
|
312
315
|
CreatedAt = "createdAt",
|
|
316
|
+
CrmHubspotCompanyId = "crmHubspotCompanyId",
|
|
317
|
+
CrmHubspotCompanyUrl = "crmHubspotCompanyUrl",
|
|
313
318
|
CrmId = "crmId",
|
|
314
319
|
Email = "email",
|
|
315
320
|
EnvironmentId = "environmentId",
|
|
@@ -326,6 +331,7 @@ export declare type CustomerSubscriptionFilter = {
|
|
|
326
331
|
cancellationDate?: InputMaybe<DateFieldComparison>;
|
|
327
332
|
createdAt?: InputMaybe<DateFieldComparison>;
|
|
328
333
|
crmId?: InputMaybe<StringFieldComparison>;
|
|
334
|
+
crmLinkUrl?: InputMaybe<StringFieldComparison>;
|
|
329
335
|
customer?: InputMaybe<CustomerSubscriptionFilterCustomerFilter>;
|
|
330
336
|
effectiveEndDate?: InputMaybe<DateFieldComparison>;
|
|
331
337
|
endDate?: InputMaybe<DateFieldComparison>;
|
|
@@ -343,6 +349,8 @@ export declare type CustomerSubscriptionFilterCustomerFilter = {
|
|
|
343
349
|
and?: InputMaybe<Array<CustomerSubscriptionFilterCustomerFilter>>;
|
|
344
350
|
billingId?: InputMaybe<StringFieldComparison>;
|
|
345
351
|
createdAt?: InputMaybe<DateFieldComparison>;
|
|
352
|
+
crmHubspotCompanyId?: InputMaybe<StringFieldComparison>;
|
|
353
|
+
crmHubspotCompanyUrl?: InputMaybe<StringFieldComparison>;
|
|
346
354
|
crmId?: InputMaybe<StringFieldComparison>;
|
|
347
355
|
email?: InputMaybe<StringFieldComparison>;
|
|
348
356
|
environmentId?: InputMaybe<StringFieldComparison>;
|
|
@@ -379,6 +387,7 @@ export declare enum CustomerSubscriptionSortFields {
|
|
|
379
387
|
CancellationDate = "cancellationDate",
|
|
380
388
|
CreatedAt = "createdAt",
|
|
381
389
|
CrmId = "crmId",
|
|
390
|
+
CrmLinkUrl = "crmLinkUrl",
|
|
382
391
|
EffectiveEndDate = "effectiveEndDate",
|
|
383
392
|
EndDate = "endDate",
|
|
384
393
|
EnvironmentId = "environmentId",
|
|
@@ -523,12 +532,14 @@ export declare enum ErrorCode {
|
|
|
523
532
|
FailedToImportCustomer = "FailedToImportCustomer",
|
|
524
533
|
FeatureNotFound = "FeatureNotFound",
|
|
525
534
|
IdentityForbidden = "IdentityForbidden",
|
|
535
|
+
IntegrationNotFound = "IntegrationNotFound",
|
|
526
536
|
IntegrityViolation = "IntegrityViolation",
|
|
527
537
|
InvalidAddressError = "InvalidAddressError",
|
|
528
538
|
InvalidArgumentError = "InvalidArgumentError",
|
|
529
539
|
InvalidCancellationDate = "InvalidCancellationDate",
|
|
530
540
|
InvalidEntitlementResetPeriod = "InvalidEntitlementResetPeriod",
|
|
531
541
|
InvalidMemberDelete = "InvalidMemberDelete",
|
|
542
|
+
InvalidQuantity = "InvalidQuantity",
|
|
532
543
|
InvalidSubscriptionStatus = "InvalidSubscriptionStatus",
|
|
533
544
|
InvalidUsageValueForIncrementalFeatureError = "InvalidUsageValueForIncrementalFeatureError",
|
|
534
545
|
MemberInvitationError = "MemberInvitationError",
|
|
@@ -543,10 +554,12 @@ export declare enum ErrorCode {
|
|
|
543
554
|
PlansCircularDependencyError = "PlansCircularDependencyError",
|
|
544
555
|
PriceNotFound = "PriceNotFound",
|
|
545
556
|
RateLimitExceeded = "RateLimitExceeded",
|
|
557
|
+
ResyncAlreadyInProgress = "ResyncAlreadyInProgress",
|
|
546
558
|
SubscriptionAlreadyCanceledOrExpired = "SubscriptionAlreadyCanceledOrExpired",
|
|
559
|
+
SubscriptionMustHaveSinglePlanError = "SubscriptionMustHaveSinglePlanError",
|
|
547
560
|
SubscriptionNotFound = "SubscriptionNotFound",
|
|
548
|
-
TrialMustBeCancelledImmediately = "TrialMustBeCancelledImmediately",
|
|
549
561
|
TrialMinDateError = "TrialMinDateError",
|
|
562
|
+
TrialMustBeCancelledImmediately = "TrialMustBeCancelledImmediately",
|
|
550
563
|
TrialsNotAllowedInProduct = "TrialsNotAllowedInProduct",
|
|
551
564
|
UnPublishedPackage = "UnPublishedPackage",
|
|
552
565
|
Unauthenticated = "Unauthenticated",
|
|
@@ -579,6 +592,7 @@ export declare enum EventLogType {
|
|
|
579
592
|
PromotionalEntitlementGranted = "PROMOTIONAL_ENTITLEMENT_GRANTED",
|
|
580
593
|
PromotionalEntitlementRevoked = "PROMOTIONAL_ENTITLEMENT_REVOKED",
|
|
581
594
|
PromotionalEntitlementUpdated = "PROMOTIONAL_ENTITLEMENT_UPDATED",
|
|
595
|
+
ResyncIntegrationTriggered = "RESYNC_INTEGRATION_TRIGGERED",
|
|
582
596
|
SubscriptionCanceled = "SUBSCRIPTION_CANCELED",
|
|
583
597
|
SubscriptionCreated = "SUBSCRIPTION_CREATED",
|
|
584
598
|
SubscriptionExpired = "SUBSCRIPTION_EXPIRED",
|
|
@@ -742,7 +756,7 @@ export declare type ImportCustomerInput = {
|
|
|
742
756
|
refId: Scalars['String'];
|
|
743
757
|
};
|
|
744
758
|
export declare type InitiateCheckoutInput = {
|
|
745
|
-
addons?: InputMaybe<Array<
|
|
759
|
+
addons?: InputMaybe<Array<SubscriptionAddonInput>>;
|
|
746
760
|
billingPeriod: BillingPeriod;
|
|
747
761
|
cancelUrl: Scalars['String'];
|
|
748
762
|
customerId: Scalars['String'];
|
|
@@ -1080,6 +1094,7 @@ export declare enum PlanSortFields {
|
|
|
1080
1094
|
VersionNumber = "versionNumber"
|
|
1081
1095
|
}
|
|
1082
1096
|
export declare type PlanUpdateInput = {
|
|
1097
|
+
additionalMetaData?: InputMaybe<Scalars['JSON']>;
|
|
1083
1098
|
billingId?: InputMaybe<Scalars['String']>;
|
|
1084
1099
|
defaultTrialConfig?: InputMaybe<DefaultTrialConfigInputDto>;
|
|
1085
1100
|
description?: InputMaybe<Scalars['String']>;
|
|
@@ -1195,6 +1210,7 @@ export declare enum ProductSortFields {
|
|
|
1195
1210
|
UpdatedAt = "updatedAt"
|
|
1196
1211
|
}
|
|
1197
1212
|
export declare type ProductUpdateInput = {
|
|
1213
|
+
additionalMetaData?: InputMaybe<Scalars['JSON']>;
|
|
1198
1214
|
description?: InputMaybe<Scalars['String']>;
|
|
1199
1215
|
displayName?: InputMaybe<Scalars['String']>;
|
|
1200
1216
|
productSettings?: InputMaybe<ProductSettingsInput>;
|
|
@@ -1293,6 +1309,10 @@ export declare type RemoveCompatibleAddonsFromPlanInput = {
|
|
|
1293
1309
|
/** The ids of the relations. */
|
|
1294
1310
|
relationIds: Array<Scalars['String']>;
|
|
1295
1311
|
};
|
|
1312
|
+
export declare type ResyncIntegrationInput = {
|
|
1313
|
+
environmentId: Scalars['String'];
|
|
1314
|
+
vendorIdentifier: VendorIdentifier;
|
|
1315
|
+
};
|
|
1296
1316
|
export declare type SetBasePlanOnPlanInput = {
|
|
1297
1317
|
/** The id of the record. */
|
|
1298
1318
|
id: Scalars['String'];
|
|
@@ -1371,6 +1391,7 @@ export declare type SubscriptionAddonFilterCustomerSubscriptionFilter = {
|
|
|
1371
1391
|
cancellationDate?: InputMaybe<DateFieldComparison>;
|
|
1372
1392
|
createdAt?: InputMaybe<DateFieldComparison>;
|
|
1373
1393
|
crmId?: InputMaybe<StringFieldComparison>;
|
|
1394
|
+
crmLinkUrl?: InputMaybe<StringFieldComparison>;
|
|
1374
1395
|
effectiveEndDate?: InputMaybe<DateFieldComparison>;
|
|
1375
1396
|
endDate?: InputMaybe<DateFieldComparison>;
|
|
1376
1397
|
environmentId?: InputMaybe<StringFieldComparison>;
|
|
@@ -1413,6 +1434,7 @@ export declare enum SubscriptionCancelReason {
|
|
|
1413
1434
|
Expired = "Expired",
|
|
1414
1435
|
Immediate = "Immediate",
|
|
1415
1436
|
PendingPaymentExpired = "PendingPaymentExpired",
|
|
1437
|
+
ScheduledCancellation = "ScheduledCancellation",
|
|
1416
1438
|
TrialConverted = "TrialConverted",
|
|
1417
1439
|
TrialEnded = "TrialEnded",
|
|
1418
1440
|
UpgradeOrDowngrade = "UpgradeOrDowngrade"
|
|
@@ -1454,6 +1476,7 @@ export declare enum SubscriptionEndSetup {
|
|
|
1454
1476
|
DowngradeToFree = "DOWNGRADE_TO_FREE"
|
|
1455
1477
|
}
|
|
1456
1478
|
export declare type SubscriptionInput = {
|
|
1479
|
+
additionalMetaData?: InputMaybe<Scalars['JSON']>;
|
|
1457
1480
|
addons?: InputMaybe<Array<SubscriptionAddonInput>>;
|
|
1458
1481
|
billingId?: InputMaybe<Scalars['String']>;
|
|
1459
1482
|
billingPeriod?: InputMaybe<BillingPeriod>;
|
|
@@ -1511,6 +1534,7 @@ export declare type SubscriptionPriceFilterCustomerSubscriptionFilter = {
|
|
|
1511
1534
|
cancellationDate?: InputMaybe<DateFieldComparison>;
|
|
1512
1535
|
createdAt?: InputMaybe<DateFieldComparison>;
|
|
1513
1536
|
crmId?: InputMaybe<StringFieldComparison>;
|
|
1537
|
+
crmLinkUrl?: InputMaybe<StringFieldComparison>;
|
|
1514
1538
|
effectiveEndDate?: InputMaybe<DateFieldComparison>;
|
|
1515
1539
|
endDate?: InputMaybe<DateFieldComparison>;
|
|
1516
1540
|
environmentId?: InputMaybe<StringFieldComparison>;
|
|
@@ -1590,6 +1614,7 @@ export declare type TaskStatusFilterComparison = {
|
|
|
1590
1614
|
notLike?: InputMaybe<TaskStatus>;
|
|
1591
1615
|
};
|
|
1592
1616
|
export declare enum TaskType {
|
|
1617
|
+
ResyncIntegration = "RESYNC_INTEGRATION",
|
|
1593
1618
|
SubscriptionMigration = "SUBSCRIPTION_MIGRATION"
|
|
1594
1619
|
}
|
|
1595
1620
|
export declare type TaskTypeFilterComparison = {
|
|
@@ -1622,6 +1647,7 @@ export declare enum TrialPeriodUnits {
|
|
|
1622
1647
|
Month = "MONTH"
|
|
1623
1648
|
}
|
|
1624
1649
|
export declare type UpdateCustomerInput = {
|
|
1650
|
+
additionalMetaData?: InputMaybe<Scalars['JSON']>;
|
|
1625
1651
|
billingId?: InputMaybe<Scalars['String']>;
|
|
1626
1652
|
billingInformation?: InputMaybe<CustomerBillingInfo>;
|
|
1627
1653
|
crmId?: InputMaybe<Scalars['String']>;
|
|
@@ -1708,6 +1734,11 @@ export declare type UpdateOnePromotionalEntitlementInput = {
|
|
|
1708
1734
|
/** The update to apply. */
|
|
1709
1735
|
update: PromotionalEntitlementUpdateInput;
|
|
1710
1736
|
};
|
|
1737
|
+
export declare type UpdateSubscriptionInput = {
|
|
1738
|
+
additionalMetaData?: InputMaybe<Scalars['JSON']>;
|
|
1739
|
+
environmentId?: InputMaybe<Scalars['String']>;
|
|
1740
|
+
refId: Scalars['String'];
|
|
1741
|
+
};
|
|
1711
1742
|
export declare type UsageHistoryInput = {
|
|
1712
1743
|
customerRefId: Scalars['String'];
|
|
1713
1744
|
endDate?: InputMaybe<Scalars['DateTime']>;
|
|
@@ -1738,6 +1769,8 @@ export declare type UsageMeasurementFilterCustomerFilter = {
|
|
|
1738
1769
|
and?: InputMaybe<Array<UsageMeasurementFilterCustomerFilter>>;
|
|
1739
1770
|
billingId?: InputMaybe<StringFieldComparison>;
|
|
1740
1771
|
createdAt?: InputMaybe<DateFieldComparison>;
|
|
1772
|
+
crmHubspotCompanyId?: InputMaybe<StringFieldComparison>;
|
|
1773
|
+
crmHubspotCompanyUrl?: InputMaybe<StringFieldComparison>;
|
|
1741
1774
|
crmId?: InputMaybe<StringFieldComparison>;
|
|
1742
1775
|
email?: InputMaybe<StringFieldComparison>;
|
|
1743
1776
|
environmentId?: InputMaybe<StringFieldComparison>;
|
|
@@ -1818,9 +1851,11 @@ export declare type SubscriptionFragment = {
|
|
|
1818
1851
|
endDate?: any | null | undefined;
|
|
1819
1852
|
trialEndDate?: any | null | undefined;
|
|
1820
1853
|
cancellationDate?: any | null | undefined;
|
|
1854
|
+
effectiveEndDate?: any | null | undefined;
|
|
1821
1855
|
status: SubscriptionStatus;
|
|
1822
1856
|
refId: string;
|
|
1823
1857
|
currentBillingPeriodEnd?: any | null | undefined;
|
|
1858
|
+
additionalMetaData?: any | null | undefined;
|
|
1824
1859
|
pricingType: PricingType;
|
|
1825
1860
|
prices?: Array<{
|
|
1826
1861
|
__typename?: 'SubscriptionPrice';
|
|
@@ -1835,6 +1870,7 @@ export declare type SubscriptionFragment = {
|
|
|
1835
1870
|
refId: string;
|
|
1836
1871
|
displayName: string;
|
|
1837
1872
|
description?: string | null | undefined;
|
|
1873
|
+
additionalMetaData?: any | null | undefined;
|
|
1838
1874
|
product: {
|
|
1839
1875
|
__typename?: 'Product';
|
|
1840
1876
|
refId: string;
|
|
@@ -1890,6 +1926,7 @@ export declare type SubscriptionFragment = {
|
|
|
1890
1926
|
refId: string;
|
|
1891
1927
|
displayName: string;
|
|
1892
1928
|
description?: string | null | undefined;
|
|
1929
|
+
additionalMetaData?: any | null | undefined;
|
|
1893
1930
|
entitlements?: Array<{
|
|
1894
1931
|
__typename?: 'PackageEntitlement';
|
|
1895
1932
|
usageLimit?: number | null | undefined;
|
|
@@ -1938,6 +1975,7 @@ export declare type CustomerFragment = {
|
|
|
1938
1975
|
updatedAt: any;
|
|
1939
1976
|
hasPaymentMethod: boolean;
|
|
1940
1977
|
refId: string;
|
|
1978
|
+
additionalMetaData?: any | null | undefined;
|
|
1941
1979
|
promotionalEntitlements: Array<{
|
|
1942
1980
|
__typename?: 'PromotionalEntitlement';
|
|
1943
1981
|
} & PromotionalEntitlementFragment>;
|
|
@@ -2043,6 +2081,7 @@ export declare type AddonFragment = {
|
|
|
2043
2081
|
refId: string;
|
|
2044
2082
|
displayName: string;
|
|
2045
2083
|
description?: string | null | undefined;
|
|
2084
|
+
additionalMetaData?: any | null | undefined;
|
|
2046
2085
|
pricingType?: PricingType | null | undefined;
|
|
2047
2086
|
entitlements?: Array<{
|
|
2048
2087
|
__typename?: 'PackageEntitlement';
|
|
@@ -2057,12 +2096,14 @@ export declare type PlanFragment = {
|
|
|
2057
2096
|
refId: string;
|
|
2058
2097
|
description?: string | null | undefined;
|
|
2059
2098
|
displayName: string;
|
|
2099
|
+
additionalMetaData?: any | null | undefined;
|
|
2060
2100
|
pricingType?: PricingType | null | undefined;
|
|
2061
2101
|
product: {
|
|
2062
2102
|
__typename?: 'Product';
|
|
2063
2103
|
refId: string;
|
|
2064
2104
|
displayName?: string | null | undefined;
|
|
2065
2105
|
description?: string | null | undefined;
|
|
2106
|
+
additionalMetaData?: any | null | undefined;
|
|
2066
2107
|
};
|
|
2067
2108
|
basePlan?: {
|
|
2068
2109
|
__typename?: 'Plan';
|