@stigg/js-client-sdk 0.28.0 → 0.30.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 +53 -5
- 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
|
@@ -194,6 +194,7 @@ export declare type CreateHook = {
|
|
|
194
194
|
};
|
|
195
195
|
export declare type CreateIntegrationInput = {
|
|
196
196
|
environmentId: Scalars['String'];
|
|
197
|
+
hubspotCredentials?: InputMaybe<HubspotCredentialsInput>;
|
|
197
198
|
stripeCredentials?: InputMaybe<StripeCredentialsInput>;
|
|
198
199
|
vendorIdentifier: VendorIdentifier;
|
|
199
200
|
zuoraCredentials?: InputMaybe<ZuoraCredentialsInput>;
|
|
@@ -266,8 +267,10 @@ export declare type CustomerFilter = {
|
|
|
266
267
|
export declare type CustomerFilterCustomerSubscriptionFilter = {
|
|
267
268
|
and?: InputMaybe<Array<CustomerFilterCustomerSubscriptionFilter>>;
|
|
268
269
|
billingId?: InputMaybe<StringFieldComparison>;
|
|
270
|
+
cancellationDate?: InputMaybe<DateFieldComparison>;
|
|
269
271
|
createdAt?: InputMaybe<DateFieldComparison>;
|
|
270
272
|
crmId?: InputMaybe<StringFieldComparison>;
|
|
273
|
+
effectiveEndDate?: InputMaybe<DateFieldComparison>;
|
|
271
274
|
endDate?: InputMaybe<DateFieldComparison>;
|
|
272
275
|
environmentId?: InputMaybe<StringFieldComparison>;
|
|
273
276
|
id?: InputMaybe<StringFieldComparison>;
|
|
@@ -275,6 +278,7 @@ export declare type CustomerFilterCustomerSubscriptionFilter = {
|
|
|
275
278
|
refId?: InputMaybe<StringFieldComparison>;
|
|
276
279
|
startDate?: InputMaybe<DateFieldComparison>;
|
|
277
280
|
status?: InputMaybe<SubscriptionStatusFilterComparison>;
|
|
281
|
+
trialEndDate?: InputMaybe<DateFieldComparison>;
|
|
278
282
|
};
|
|
279
283
|
export declare type CustomerFilterPromotionalEntitlementFilter = {
|
|
280
284
|
and?: InputMaybe<Array<CustomerFilterPromotionalEntitlementFilter>>;
|
|
@@ -314,9 +318,11 @@ export declare type CustomerSubscriptionFilter = {
|
|
|
314
318
|
addons?: InputMaybe<CustomerSubscriptionFilterSubscriptionAddonFilter>;
|
|
315
319
|
and?: InputMaybe<Array<CustomerSubscriptionFilter>>;
|
|
316
320
|
billingId?: InputMaybe<StringFieldComparison>;
|
|
321
|
+
cancellationDate?: InputMaybe<DateFieldComparison>;
|
|
317
322
|
createdAt?: InputMaybe<DateFieldComparison>;
|
|
318
323
|
crmId?: InputMaybe<StringFieldComparison>;
|
|
319
324
|
customer?: InputMaybe<CustomerSubscriptionFilterCustomerFilter>;
|
|
325
|
+
effectiveEndDate?: InputMaybe<DateFieldComparison>;
|
|
320
326
|
endDate?: InputMaybe<DateFieldComparison>;
|
|
321
327
|
environmentId?: InputMaybe<StringFieldComparison>;
|
|
322
328
|
id?: InputMaybe<StringFieldComparison>;
|
|
@@ -325,6 +331,7 @@ export declare type CustomerSubscriptionFilter = {
|
|
|
325
331
|
refId?: InputMaybe<StringFieldComparison>;
|
|
326
332
|
startDate?: InputMaybe<DateFieldComparison>;
|
|
327
333
|
status?: InputMaybe<SubscriptionStatusFilterComparison>;
|
|
334
|
+
trialEndDate?: InputMaybe<DateFieldComparison>;
|
|
328
335
|
};
|
|
329
336
|
export declare type CustomerSubscriptionFilterCustomerFilter = {
|
|
330
337
|
and?: InputMaybe<Array<CustomerSubscriptionFilterCustomerFilter>>;
|
|
@@ -362,14 +369,17 @@ export declare type CustomerSubscriptionSort = {
|
|
|
362
369
|
};
|
|
363
370
|
export declare enum CustomerSubscriptionSortFields {
|
|
364
371
|
BillingId = "billingId",
|
|
372
|
+
CancellationDate = "cancellationDate",
|
|
365
373
|
CreatedAt = "createdAt",
|
|
366
374
|
CrmId = "crmId",
|
|
375
|
+
EffectiveEndDate = "effectiveEndDate",
|
|
367
376
|
EndDate = "endDate",
|
|
368
377
|
EnvironmentId = "environmentId",
|
|
369
378
|
Id = "id",
|
|
370
379
|
RefId = "refId",
|
|
371
380
|
StartDate = "startDate",
|
|
372
|
-
Status = "status"
|
|
381
|
+
Status = "status",
|
|
382
|
+
TrialEndDate = "trialEndDate"
|
|
373
383
|
}
|
|
374
384
|
export declare type DateFieldComparison = {
|
|
375
385
|
between?: InputMaybe<DateFieldComparisonBetween>;
|
|
@@ -503,6 +513,7 @@ export declare enum ErrorCode {
|
|
|
503
513
|
IdentityForbidden = "IdentityForbidden",
|
|
504
514
|
IntegrityViolation = "IntegrityViolation",
|
|
505
515
|
InvalidAddressError = "InvalidAddressError",
|
|
516
|
+
InvalidCancellationDate = "InvalidCancellationDate",
|
|
506
517
|
InvalidEntitlementResetPeriod = "InvalidEntitlementResetPeriod",
|
|
507
518
|
InvalidMemberDelete = "InvalidMemberDelete",
|
|
508
519
|
InvalidUsageValueForIncrementalFeatureError = "InvalidUsageValueForIncrementalFeatureError",
|
|
@@ -517,7 +528,9 @@ export declare enum ErrorCode {
|
|
|
517
528
|
PlansCircularDependencyError = "PlansCircularDependencyError",
|
|
518
529
|
PriceNotFound = "PriceNotFound",
|
|
519
530
|
RateLimitExceeded = "RateLimitExceeded",
|
|
531
|
+
SubscriptionAlreadyCanceledOrExpired = "SubscriptionAlreadyCanceledOrExpired",
|
|
520
532
|
SubscriptionNotFound = "SubscriptionNotFound",
|
|
533
|
+
TrialCantBeCancelledAtArbitraryDate = "TrialCantBeCancelledAtArbitraryDate",
|
|
521
534
|
TrialsNotAllowedInProduct = "TrialsNotAllowedInProduct",
|
|
522
535
|
UnPublishedPackage = "UnPublishedPackage",
|
|
523
536
|
Unauthenticated = "Unauthenticated",
|
|
@@ -534,6 +547,7 @@ export declare enum EventLogType {
|
|
|
534
547
|
CustomerCreated = "CUSTOMER_CREATED",
|
|
535
548
|
CustomerDeleted = "CUSTOMER_DELETED",
|
|
536
549
|
CustomerUpdated = "CUSTOMER_UPDATED",
|
|
550
|
+
EntitlementsUpdated = "ENTITLEMENTS_UPDATED",
|
|
537
551
|
EntitlementDenied = "ENTITLEMENT_DENIED",
|
|
538
552
|
EntitlementGranted = "ENTITLEMENT_GRANTED",
|
|
539
553
|
EntitlementRequested = "ENTITLEMENT_REQUESTED",
|
|
@@ -700,6 +714,10 @@ export declare type HookStatusFilterComparison = {
|
|
|
700
714
|
notIn?: InputMaybe<Array<HookStatus>>;
|
|
701
715
|
notLike?: InputMaybe<HookStatus>;
|
|
702
716
|
};
|
|
717
|
+
export declare type HubspotCredentialsInput = {
|
|
718
|
+
authorizationCode: Scalars['String'];
|
|
719
|
+
refreshToken?: InputMaybe<Scalars['String']>;
|
|
720
|
+
};
|
|
703
721
|
export declare type InitiateCheckoutInput = {
|
|
704
722
|
addons?: InputMaybe<Array<CheckoutAddonInput>>;
|
|
705
723
|
billingPeriod: BillingPeriod;
|
|
@@ -964,6 +982,7 @@ export declare type PlanCreateInput = {
|
|
|
964
982
|
export declare type PlanFilter = {
|
|
965
983
|
and?: InputMaybe<Array<PlanFilter>>;
|
|
966
984
|
billingId?: InputMaybe<StringFieldComparison>;
|
|
985
|
+
compatibleAddons?: InputMaybe<PlanFilterAddonFilter>;
|
|
967
986
|
createdAt?: InputMaybe<DateFieldComparison>;
|
|
968
987
|
description?: InputMaybe<StringFieldComparison>;
|
|
969
988
|
displayName?: InputMaybe<StringFieldComparison>;
|
|
@@ -978,6 +997,22 @@ export declare type PlanFilter = {
|
|
|
978
997
|
updatedAt?: InputMaybe<DateFieldComparison>;
|
|
979
998
|
versionNumber?: InputMaybe<IntFieldComparison>;
|
|
980
999
|
};
|
|
1000
|
+
export declare type PlanFilterAddonFilter = {
|
|
1001
|
+
and?: InputMaybe<Array<PlanFilterAddonFilter>>;
|
|
1002
|
+
billingId?: InputMaybe<StringFieldComparison>;
|
|
1003
|
+
createdAt?: InputMaybe<DateFieldComparison>;
|
|
1004
|
+
description?: InputMaybe<StringFieldComparison>;
|
|
1005
|
+
displayName?: InputMaybe<StringFieldComparison>;
|
|
1006
|
+
environmentId?: InputMaybe<StringFieldComparison>;
|
|
1007
|
+
id?: InputMaybe<StringFieldComparison>;
|
|
1008
|
+
isLatest?: InputMaybe<BooleanFieldComparison>;
|
|
1009
|
+
or?: InputMaybe<Array<PlanFilterAddonFilter>>;
|
|
1010
|
+
productId?: InputMaybe<StringFieldComparison>;
|
|
1011
|
+
refId?: InputMaybe<StringFieldComparison>;
|
|
1012
|
+
status?: InputMaybe<PackageStatusFilterComparison>;
|
|
1013
|
+
updatedAt?: InputMaybe<DateFieldComparison>;
|
|
1014
|
+
versionNumber?: InputMaybe<IntFieldComparison>;
|
|
1015
|
+
};
|
|
981
1016
|
export declare type PlanFilterProductFilter = {
|
|
982
1017
|
and?: InputMaybe<Array<PlanFilterProductFilter>>;
|
|
983
1018
|
createdAt?: InputMaybe<DateFieldComparison>;
|
|
@@ -1281,8 +1316,10 @@ export declare type SubscriptionAddonFilterAddonFilter = {
|
|
|
1281
1316
|
export declare type SubscriptionAddonFilterCustomerSubscriptionFilter = {
|
|
1282
1317
|
and?: InputMaybe<Array<SubscriptionAddonFilterCustomerSubscriptionFilter>>;
|
|
1283
1318
|
billingId?: InputMaybe<StringFieldComparison>;
|
|
1319
|
+
cancellationDate?: InputMaybe<DateFieldComparison>;
|
|
1284
1320
|
createdAt?: InputMaybe<DateFieldComparison>;
|
|
1285
1321
|
crmId?: InputMaybe<StringFieldComparison>;
|
|
1322
|
+
effectiveEndDate?: InputMaybe<DateFieldComparison>;
|
|
1286
1323
|
endDate?: InputMaybe<DateFieldComparison>;
|
|
1287
1324
|
environmentId?: InputMaybe<StringFieldComparison>;
|
|
1288
1325
|
id?: InputMaybe<StringFieldComparison>;
|
|
@@ -1290,6 +1327,7 @@ export declare type SubscriptionAddonFilterCustomerSubscriptionFilter = {
|
|
|
1290
1327
|
refId?: InputMaybe<StringFieldComparison>;
|
|
1291
1328
|
startDate?: InputMaybe<DateFieldComparison>;
|
|
1292
1329
|
status?: InputMaybe<SubscriptionStatusFilterComparison>;
|
|
1330
|
+
trialEndDate?: InputMaybe<DateFieldComparison>;
|
|
1293
1331
|
};
|
|
1294
1332
|
export declare type SubscriptionAddonFilterPriceFilter = {
|
|
1295
1333
|
and?: InputMaybe<Array<SubscriptionAddonFilterPriceFilter>>;
|
|
@@ -1323,7 +1361,8 @@ export declare type SubscriptionCancellationInput = {
|
|
|
1323
1361
|
};
|
|
1324
1362
|
export declare enum SubscriptionCancellationTime {
|
|
1325
1363
|
EndOfBillingPeriod = "END_OF_BILLING_PERIOD",
|
|
1326
|
-
Immediate = "IMMEDIATE"
|
|
1364
|
+
Immediate = "IMMEDIATE",
|
|
1365
|
+
SpecificDate = "SPECIFIC_DATE"
|
|
1327
1366
|
}
|
|
1328
1367
|
export declare enum SubscriptionEndSetup {
|
|
1329
1368
|
CancelSubscription = "CANCEL_SUBSCRIPTION",
|
|
@@ -1334,6 +1373,7 @@ export declare type SubscriptionInput = {
|
|
|
1334
1373
|
billingId?: InputMaybe<Scalars['String']>;
|
|
1335
1374
|
billingPeriod?: InputMaybe<BillingPeriod>;
|
|
1336
1375
|
crmId?: InputMaybe<Scalars['String']>;
|
|
1376
|
+
currentBillingPeriodEnd?: InputMaybe<Scalars['DateTime']>;
|
|
1337
1377
|
customerId: Scalars['String'];
|
|
1338
1378
|
endDate?: InputMaybe<Scalars['DateTime']>;
|
|
1339
1379
|
environmentId: Scalars['String'];
|
|
@@ -1379,8 +1419,10 @@ export declare type SubscriptionPriceFilter = {
|
|
|
1379
1419
|
export declare type SubscriptionPriceFilterCustomerSubscriptionFilter = {
|
|
1380
1420
|
and?: InputMaybe<Array<SubscriptionPriceFilterCustomerSubscriptionFilter>>;
|
|
1381
1421
|
billingId?: InputMaybe<StringFieldComparison>;
|
|
1422
|
+
cancellationDate?: InputMaybe<DateFieldComparison>;
|
|
1382
1423
|
createdAt?: InputMaybe<DateFieldComparison>;
|
|
1383
1424
|
crmId?: InputMaybe<StringFieldComparison>;
|
|
1425
|
+
effectiveEndDate?: InputMaybe<DateFieldComparison>;
|
|
1384
1426
|
endDate?: InputMaybe<DateFieldComparison>;
|
|
1385
1427
|
environmentId?: InputMaybe<StringFieldComparison>;
|
|
1386
1428
|
id?: InputMaybe<StringFieldComparison>;
|
|
@@ -1388,6 +1430,7 @@ export declare type SubscriptionPriceFilterCustomerSubscriptionFilter = {
|
|
|
1388
1430
|
refId?: InputMaybe<StringFieldComparison>;
|
|
1389
1431
|
startDate?: InputMaybe<DateFieldComparison>;
|
|
1390
1432
|
status?: InputMaybe<SubscriptionStatusFilterComparison>;
|
|
1433
|
+
trialEndDate?: InputMaybe<DateFieldComparison>;
|
|
1391
1434
|
};
|
|
1392
1435
|
export declare type SubscriptionPriceFilterPriceFilter = {
|
|
1393
1436
|
and?: InputMaybe<Array<SubscriptionPriceFilterPriceFilter>>;
|
|
@@ -1638,6 +1681,7 @@ export declare enum UsageMeasurementSortFields {
|
|
|
1638
1681
|
Id = "id"
|
|
1639
1682
|
}
|
|
1640
1683
|
export declare enum VendorIdentifier {
|
|
1684
|
+
Hubspot = "HUBSPOT",
|
|
1641
1685
|
Stripe = "STRIPE",
|
|
1642
1686
|
Zuora = "ZUORA"
|
|
1643
1687
|
}
|
|
@@ -1681,8 +1725,11 @@ export declare type SubscriptionFragment = {
|
|
|
1681
1725
|
id: string;
|
|
1682
1726
|
startDate: any;
|
|
1683
1727
|
endDate?: any | null | undefined;
|
|
1728
|
+
trialEndDate?: any | null | undefined;
|
|
1729
|
+
cancellationDate?: any | null | undefined;
|
|
1684
1730
|
status: SubscriptionStatus;
|
|
1685
1731
|
refId: string;
|
|
1732
|
+
currentBillingPeriodEnd?: any | null | undefined;
|
|
1686
1733
|
prices?: Array<{
|
|
1687
1734
|
__typename?: 'SubscriptionPrice';
|
|
1688
1735
|
usageLimit?: number | null | undefined;
|
|
@@ -1935,9 +1982,6 @@ export declare type PlanFragment = {
|
|
|
1935
1982
|
inheritedEntitlements?: Array<{
|
|
1936
1983
|
__typename?: 'PackageEntitlement';
|
|
1937
1984
|
} & PackageEntitlementFragment> | null | undefined;
|
|
1938
|
-
compatibleAddons?: Array<{
|
|
1939
|
-
__typename?: 'Addon';
|
|
1940
|
-
} & AddonFragment> | null | undefined;
|
|
1941
1985
|
prices?: Array<{
|
|
1942
1986
|
__typename?: 'Price';
|
|
1943
1987
|
} & PriceFragment> | null | undefined;
|
|
@@ -1950,6 +1994,7 @@ export declare type PlanFragment = {
|
|
|
1950
1994
|
export declare type GetPlansQueryVariables = Exact<{
|
|
1951
1995
|
paging?: Maybe<CursorPaging>;
|
|
1952
1996
|
filter?: Maybe<PlanFilter>;
|
|
1997
|
+
addonFilter?: Maybe<AddonFilter>;
|
|
1953
1998
|
sorting?: Maybe<Array<PlanSort> | PlanSort>;
|
|
1954
1999
|
}>;
|
|
1955
2000
|
export declare type GetPlansQuery = {
|
|
@@ -1960,6 +2005,9 @@ export declare type GetPlansQuery = {
|
|
|
1960
2005
|
__typename?: 'PlanEdge';
|
|
1961
2006
|
node: {
|
|
1962
2007
|
__typename?: 'Plan';
|
|
2008
|
+
compatibleAddons?: Array<{
|
|
2009
|
+
__typename?: 'Addon';
|
|
2010
|
+
} & AddonFragment> | null | undefined;
|
|
1963
2011
|
} & PlanFragment;
|
|
1964
2012
|
}>;
|
|
1965
2013
|
};
|