@stigg/js-client-sdk 0.28.1 → 0.31.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 +25 -2
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/models.d.ts +3 -0
- package/package.json +1 -1
|
@@ -267,8 +267,10 @@ export declare type CustomerFilter = {
|
|
|
267
267
|
export declare type CustomerFilterCustomerSubscriptionFilter = {
|
|
268
268
|
and?: InputMaybe<Array<CustomerFilterCustomerSubscriptionFilter>>;
|
|
269
269
|
billingId?: InputMaybe<StringFieldComparison>;
|
|
270
|
+
cancellationDate?: InputMaybe<DateFieldComparison>;
|
|
270
271
|
createdAt?: InputMaybe<DateFieldComparison>;
|
|
271
272
|
crmId?: InputMaybe<StringFieldComparison>;
|
|
273
|
+
effectiveEndDate?: InputMaybe<DateFieldComparison>;
|
|
272
274
|
endDate?: InputMaybe<DateFieldComparison>;
|
|
273
275
|
environmentId?: InputMaybe<StringFieldComparison>;
|
|
274
276
|
id?: InputMaybe<StringFieldComparison>;
|
|
@@ -276,6 +278,7 @@ export declare type CustomerFilterCustomerSubscriptionFilter = {
|
|
|
276
278
|
refId?: InputMaybe<StringFieldComparison>;
|
|
277
279
|
startDate?: InputMaybe<DateFieldComparison>;
|
|
278
280
|
status?: InputMaybe<SubscriptionStatusFilterComparison>;
|
|
281
|
+
trialEndDate?: InputMaybe<DateFieldComparison>;
|
|
279
282
|
};
|
|
280
283
|
export declare type CustomerFilterPromotionalEntitlementFilter = {
|
|
281
284
|
and?: InputMaybe<Array<CustomerFilterPromotionalEntitlementFilter>>;
|
|
@@ -315,9 +318,11 @@ export declare type CustomerSubscriptionFilter = {
|
|
|
315
318
|
addons?: InputMaybe<CustomerSubscriptionFilterSubscriptionAddonFilter>;
|
|
316
319
|
and?: InputMaybe<Array<CustomerSubscriptionFilter>>;
|
|
317
320
|
billingId?: InputMaybe<StringFieldComparison>;
|
|
321
|
+
cancellationDate?: InputMaybe<DateFieldComparison>;
|
|
318
322
|
createdAt?: InputMaybe<DateFieldComparison>;
|
|
319
323
|
crmId?: InputMaybe<StringFieldComparison>;
|
|
320
324
|
customer?: InputMaybe<CustomerSubscriptionFilterCustomerFilter>;
|
|
325
|
+
effectiveEndDate?: InputMaybe<DateFieldComparison>;
|
|
321
326
|
endDate?: InputMaybe<DateFieldComparison>;
|
|
322
327
|
environmentId?: InputMaybe<StringFieldComparison>;
|
|
323
328
|
id?: InputMaybe<StringFieldComparison>;
|
|
@@ -326,6 +331,7 @@ export declare type CustomerSubscriptionFilter = {
|
|
|
326
331
|
refId?: InputMaybe<StringFieldComparison>;
|
|
327
332
|
startDate?: InputMaybe<DateFieldComparison>;
|
|
328
333
|
status?: InputMaybe<SubscriptionStatusFilterComparison>;
|
|
334
|
+
trialEndDate?: InputMaybe<DateFieldComparison>;
|
|
329
335
|
};
|
|
330
336
|
export declare type CustomerSubscriptionFilterCustomerFilter = {
|
|
331
337
|
and?: InputMaybe<Array<CustomerSubscriptionFilterCustomerFilter>>;
|
|
@@ -363,14 +369,17 @@ export declare type CustomerSubscriptionSort = {
|
|
|
363
369
|
};
|
|
364
370
|
export declare enum CustomerSubscriptionSortFields {
|
|
365
371
|
BillingId = "billingId",
|
|
372
|
+
CancellationDate = "cancellationDate",
|
|
366
373
|
CreatedAt = "createdAt",
|
|
367
374
|
CrmId = "crmId",
|
|
375
|
+
EffectiveEndDate = "effectiveEndDate",
|
|
368
376
|
EndDate = "endDate",
|
|
369
377
|
EnvironmentId = "environmentId",
|
|
370
378
|
Id = "id",
|
|
371
379
|
RefId = "refId",
|
|
372
380
|
StartDate = "startDate",
|
|
373
|
-
Status = "status"
|
|
381
|
+
Status = "status",
|
|
382
|
+
TrialEndDate = "trialEndDate"
|
|
374
383
|
}
|
|
375
384
|
export declare type DateFieldComparison = {
|
|
376
385
|
between?: InputMaybe<DateFieldComparisonBetween>;
|
|
@@ -504,6 +513,7 @@ export declare enum ErrorCode {
|
|
|
504
513
|
IdentityForbidden = "IdentityForbidden",
|
|
505
514
|
IntegrityViolation = "IntegrityViolation",
|
|
506
515
|
InvalidAddressError = "InvalidAddressError",
|
|
516
|
+
InvalidCancellationDate = "InvalidCancellationDate",
|
|
507
517
|
InvalidEntitlementResetPeriod = "InvalidEntitlementResetPeriod",
|
|
508
518
|
InvalidMemberDelete = "InvalidMemberDelete",
|
|
509
519
|
InvalidUsageValueForIncrementalFeatureError = "InvalidUsageValueForIncrementalFeatureError",
|
|
@@ -518,7 +528,9 @@ export declare enum ErrorCode {
|
|
|
518
528
|
PlansCircularDependencyError = "PlansCircularDependencyError",
|
|
519
529
|
PriceNotFound = "PriceNotFound",
|
|
520
530
|
RateLimitExceeded = "RateLimitExceeded",
|
|
531
|
+
SubscriptionAlreadyCanceledOrExpired = "SubscriptionAlreadyCanceledOrExpired",
|
|
521
532
|
SubscriptionNotFound = "SubscriptionNotFound",
|
|
533
|
+
TrialCantBeCancelledAtArbitraryDate = "TrialCantBeCancelledAtArbitraryDate",
|
|
522
534
|
TrialsNotAllowedInProduct = "TrialsNotAllowedInProduct",
|
|
523
535
|
UnPublishedPackage = "UnPublishedPackage",
|
|
524
536
|
Unauthenticated = "Unauthenticated",
|
|
@@ -1304,8 +1316,10 @@ export declare type SubscriptionAddonFilterAddonFilter = {
|
|
|
1304
1316
|
export declare type SubscriptionAddonFilterCustomerSubscriptionFilter = {
|
|
1305
1317
|
and?: InputMaybe<Array<SubscriptionAddonFilterCustomerSubscriptionFilter>>;
|
|
1306
1318
|
billingId?: InputMaybe<StringFieldComparison>;
|
|
1319
|
+
cancellationDate?: InputMaybe<DateFieldComparison>;
|
|
1307
1320
|
createdAt?: InputMaybe<DateFieldComparison>;
|
|
1308
1321
|
crmId?: InputMaybe<StringFieldComparison>;
|
|
1322
|
+
effectiveEndDate?: InputMaybe<DateFieldComparison>;
|
|
1309
1323
|
endDate?: InputMaybe<DateFieldComparison>;
|
|
1310
1324
|
environmentId?: InputMaybe<StringFieldComparison>;
|
|
1311
1325
|
id?: InputMaybe<StringFieldComparison>;
|
|
@@ -1313,6 +1327,7 @@ export declare type SubscriptionAddonFilterCustomerSubscriptionFilter = {
|
|
|
1313
1327
|
refId?: InputMaybe<StringFieldComparison>;
|
|
1314
1328
|
startDate?: InputMaybe<DateFieldComparison>;
|
|
1315
1329
|
status?: InputMaybe<SubscriptionStatusFilterComparison>;
|
|
1330
|
+
trialEndDate?: InputMaybe<DateFieldComparison>;
|
|
1316
1331
|
};
|
|
1317
1332
|
export declare type SubscriptionAddonFilterPriceFilter = {
|
|
1318
1333
|
and?: InputMaybe<Array<SubscriptionAddonFilterPriceFilter>>;
|
|
@@ -1346,7 +1361,8 @@ export declare type SubscriptionCancellationInput = {
|
|
|
1346
1361
|
};
|
|
1347
1362
|
export declare enum SubscriptionCancellationTime {
|
|
1348
1363
|
EndOfBillingPeriod = "END_OF_BILLING_PERIOD",
|
|
1349
|
-
Immediate = "IMMEDIATE"
|
|
1364
|
+
Immediate = "IMMEDIATE",
|
|
1365
|
+
SpecificDate = "SPECIFIC_DATE"
|
|
1350
1366
|
}
|
|
1351
1367
|
export declare enum SubscriptionEndSetup {
|
|
1352
1368
|
CancelSubscription = "CANCEL_SUBSCRIPTION",
|
|
@@ -1357,6 +1373,7 @@ export declare type SubscriptionInput = {
|
|
|
1357
1373
|
billingId?: InputMaybe<Scalars['String']>;
|
|
1358
1374
|
billingPeriod?: InputMaybe<BillingPeriod>;
|
|
1359
1375
|
crmId?: InputMaybe<Scalars['String']>;
|
|
1376
|
+
currentBillingPeriodEnd?: InputMaybe<Scalars['DateTime']>;
|
|
1360
1377
|
customerId: Scalars['String'];
|
|
1361
1378
|
endDate?: InputMaybe<Scalars['DateTime']>;
|
|
1362
1379
|
environmentId: Scalars['String'];
|
|
@@ -1402,8 +1419,10 @@ export declare type SubscriptionPriceFilter = {
|
|
|
1402
1419
|
export declare type SubscriptionPriceFilterCustomerSubscriptionFilter = {
|
|
1403
1420
|
and?: InputMaybe<Array<SubscriptionPriceFilterCustomerSubscriptionFilter>>;
|
|
1404
1421
|
billingId?: InputMaybe<StringFieldComparison>;
|
|
1422
|
+
cancellationDate?: InputMaybe<DateFieldComparison>;
|
|
1405
1423
|
createdAt?: InputMaybe<DateFieldComparison>;
|
|
1406
1424
|
crmId?: InputMaybe<StringFieldComparison>;
|
|
1425
|
+
effectiveEndDate?: InputMaybe<DateFieldComparison>;
|
|
1407
1426
|
endDate?: InputMaybe<DateFieldComparison>;
|
|
1408
1427
|
environmentId?: InputMaybe<StringFieldComparison>;
|
|
1409
1428
|
id?: InputMaybe<StringFieldComparison>;
|
|
@@ -1411,6 +1430,7 @@ export declare type SubscriptionPriceFilterCustomerSubscriptionFilter = {
|
|
|
1411
1430
|
refId?: InputMaybe<StringFieldComparison>;
|
|
1412
1431
|
startDate?: InputMaybe<DateFieldComparison>;
|
|
1413
1432
|
status?: InputMaybe<SubscriptionStatusFilterComparison>;
|
|
1433
|
+
trialEndDate?: InputMaybe<DateFieldComparison>;
|
|
1414
1434
|
};
|
|
1415
1435
|
export declare type SubscriptionPriceFilterPriceFilter = {
|
|
1416
1436
|
and?: InputMaybe<Array<SubscriptionPriceFilterPriceFilter>>;
|
|
@@ -1705,8 +1725,11 @@ export declare type SubscriptionFragment = {
|
|
|
1705
1725
|
id: string;
|
|
1706
1726
|
startDate: any;
|
|
1707
1727
|
endDate?: any | null | undefined;
|
|
1728
|
+
trialEndDate?: any | null | undefined;
|
|
1729
|
+
cancellationDate?: any | null | undefined;
|
|
1708
1730
|
status: SubscriptionStatus;
|
|
1709
1731
|
refId: string;
|
|
1732
|
+
currentBillingPeriodEnd?: any | null | undefined;
|
|
1710
1733
|
prices?: Array<{
|
|
1711
1734
|
__typename?: 'SubscriptionPrice';
|
|
1712
1735
|
usageLimit?: number | null | undefined;
|