@stigg/api-client-js 0.8.1 → 0.357.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stigg/api-client-js",
3
- "version": "0.8.1",
3
+ "version": "0.357.0",
4
4
  "type": "commonjs",
5
5
  "main": "./src/index.js",
6
6
  "typings": "./src/index.d.ts",
@@ -867,6 +867,7 @@ export declare enum ErrorCode {
867
867
  CustomerHasNoPaymentMethod = "CustomerHasNoPaymentMethod",
868
868
  CustomerNoBillingId = "CustomerNoBillingId",
869
869
  CustomerNotFound = "CustomerNotFound",
870
+ CustomerResourceNotFound = "CustomerResourceNotFound",
870
871
  DowngradeBillingPeriodNotSupportedError = "DowngradeBillingPeriodNotSupportedError",
871
872
  DraftPlanCantBeArchived = "DraftPlanCantBeArchived",
872
873
  DuplicatedEntityNotAllowed = "DuplicatedEntityNotAllowed",
@@ -2836,12 +2837,12 @@ export declare type AddonFragment = {
2836
2837
  description?: string | null;
2837
2838
  additionalMetaData?: any | null;
2838
2839
  pricingType?: PricingType | null;
2839
- entitlements?: Array<({
2840
+ entitlements?: Array<{
2840
2841
  __typename?: 'PackageEntitlement';
2841
- } & PackageEntitlementFragment)> | null;
2842
- prices?: Array<({
2842
+ } & PackageEntitlementFragment> | null;
2843
+ prices?: Array<{
2843
2844
  __typename?: 'Price';
2844
- } & PriceFragment)> | null;
2845
+ } & PriceFragment> | null;
2845
2846
  };
2846
2847
  export declare type PlanFragment = {
2847
2848
  __typename?: 'Plan';
@@ -2872,18 +2873,18 @@ export declare type PlanFragment = {
2872
2873
  refId: string;
2873
2874
  displayName: string;
2874
2875
  } | null;
2875
- entitlements?: Array<({
2876
+ entitlements?: Array<{
2876
2877
  __typename?: 'PackageEntitlement';
2877
- } & PackageEntitlementFragment)> | null;
2878
- inheritedEntitlements?: Array<({
2878
+ } & PackageEntitlementFragment> | null;
2879
+ inheritedEntitlements?: Array<{
2879
2880
  __typename?: 'PackageEntitlement';
2880
- } & PackageEntitlementFragment)> | null;
2881
- compatibleAddons?: Array<({
2881
+ } & PackageEntitlementFragment> | null;
2882
+ compatibleAddons?: Array<{
2882
2883
  __typename?: 'Addon';
2883
- } & AddonFragment)> | null;
2884
- prices?: Array<({
2884
+ } & AddonFragment> | null;
2885
+ prices?: Array<{
2885
2886
  __typename?: 'Price';
2886
- } & PriceFragment)> | null;
2887
+ } & PriceFragment> | null;
2887
2888
  defaultTrialConfig?: {
2888
2889
  __typename?: 'DefaultTrialConfig';
2889
2890
  duration: number;
@@ -2994,20 +2995,20 @@ export declare type SubscriptionFragment = {
2994
2995
  totalPrice?: ({
2995
2996
  __typename?: 'CustomerSubscriptionTotalPrice';
2996
2997
  } & TotalPriceFragment) | null;
2997
- plan: ({
2998
+ plan: {
2998
2999
  __typename?: 'Plan';
2999
- } & PlanFragment);
3000
+ } & PlanFragment;
3000
3001
  addons?: Array<{
3001
3002
  __typename?: 'SubscriptionAddon';
3002
3003
  id: string;
3003
3004
  quantity: number;
3004
- addon: ({
3005
+ addon: {
3005
3006
  __typename?: 'Addon';
3006
- } & AddonFragment);
3007
+ } & AddonFragment;
3007
3008
  }> | null;
3008
- scheduledUpdates?: Array<({
3009
+ scheduledUpdates?: Array<{
3009
3010
  __typename?: 'SubscriptionScheduledUpdate';
3010
- } & SubscriptionScheduledUpdateDataFragment)> | null;
3011
+ } & SubscriptionScheduledUpdateDataFragment> | null;
3011
3012
  };
3012
3013
  export declare type PromotionalEntitlementFragment = {
3013
3014
  __typename?: 'PromotionalEntitlement';
@@ -3067,12 +3068,12 @@ export declare type CustomerFragment = {
3067
3068
  productRefId?: string | null;
3068
3069
  eligible: boolean;
3069
3070
  }> | null;
3070
- promotionalEntitlements: Array<({
3071
+ promotionalEntitlements: Array<{
3071
3072
  __typename?: 'PromotionalEntitlement';
3072
- } & PromotionalEntitlementFragment)>;
3073
- subscriptions?: Array<({
3073
+ } & PromotionalEntitlementFragment>;
3074
+ subscriptions?: Array<{
3074
3075
  __typename?: 'CustomerSubscription';
3075
- } & SubscriptionFragment)> | null;
3076
+ } & SubscriptionFragment> | null;
3076
3077
  };
3077
3078
  export declare type SubscriptionPreviewFragment = {
3078
3079
  __typename?: 'SubscriptionPreview';
@@ -3141,12 +3142,12 @@ export declare type FeatureFragment = {
3141
3142
  displayName: string;
3142
3143
  refId: string;
3143
3144
  };
3144
- declare type ResetPeriodConfigurationFragment_MonthlyResetPeriodConfig_ = ({
3145
+ declare type ResetPeriodConfigurationFragment_MonthlyResetPeriodConfig_ = {
3145
3146
  __typename: 'MonthlyResetPeriodConfig';
3146
- } & MonthlyResetPeriodConfigFragment);
3147
- declare type ResetPeriodConfigurationFragment_WeeklyResetPeriodConfig_ = ({
3147
+ } & MonthlyResetPeriodConfigFragment;
3148
+ declare type ResetPeriodConfigurationFragment_WeeklyResetPeriodConfig_ = {
3148
3149
  __typename: 'WeeklyResetPeriodConfig';
3149
- } & WeeklyResetPeriodConfigFragment);
3150
+ } & WeeklyResetPeriodConfigFragment;
3150
3151
  export declare type ResetPeriodConfigurationFragment = ResetPeriodConfigurationFragment_MonthlyResetPeriodConfig_ | ResetPeriodConfigurationFragment_WeeklyResetPeriodConfig_;
3151
3152
  export declare type MonthlyResetPeriodConfigFragment = {
3152
3153
  __typename?: 'MonthlyResetPeriodConfig';
@@ -3204,12 +3205,12 @@ export declare type PaywallAddonFragment = {
3204
3205
  description?: string | null;
3205
3206
  additionalMetaData?: any | null;
3206
3207
  pricingType?: PricingType | null;
3207
- entitlements?: Array<({
3208
+ entitlements?: Array<{
3208
3209
  __typename?: 'PackageEntitlement';
3209
- } & PaywallPackageEntitlementFragment)> | null;
3210
- prices?: Array<({
3210
+ } & PaywallPackageEntitlementFragment> | null;
3211
+ prices?: Array<{
3211
3212
  __typename?: 'Price';
3212
- } & PriceFragment)> | null;
3213
+ } & PriceFragment> | null;
3213
3214
  };
3214
3215
  export declare type PaywallPlanFragment = {
3215
3216
  __typename?: 'Plan';
@@ -3240,23 +3241,23 @@ export declare type PaywallPlanFragment = {
3240
3241
  refId: string;
3241
3242
  displayName: string;
3242
3243
  } | null;
3243
- entitlements?: Array<({
3244
+ entitlements?: Array<{
3244
3245
  __typename?: 'PackageEntitlement';
3245
- } & PaywallPackageEntitlementFragment)> | null;
3246
- inheritedEntitlements?: Array<({
3246
+ } & PaywallPackageEntitlementFragment> | null;
3247
+ inheritedEntitlements?: Array<{
3247
3248
  __typename?: 'PackageEntitlement';
3248
- } & PaywallPackageEntitlementFragment)> | null;
3249
- prices?: Array<({
3249
+ } & PaywallPackageEntitlementFragment> | null;
3250
+ prices?: Array<{
3250
3251
  __typename?: 'Price';
3251
- } & PriceFragment)> | null;
3252
+ } & PriceFragment> | null;
3252
3253
  defaultTrialConfig?: {
3253
3254
  __typename?: 'DefaultTrialConfig';
3254
3255
  duration: number;
3255
3256
  units: TrialPeriodUnits;
3256
3257
  } | null;
3257
- compatibleAddons?: Array<({
3258
+ compatibleAddons?: Array<{
3258
3259
  __typename?: 'Addon';
3259
- } & PaywallAddonFragment)> | null;
3260
+ } & PaywallAddonFragment> | null;
3260
3261
  };
3261
3262
  export declare type TypographyConfigurationFragment = {
3262
3263
  __typename?: 'TypographyConfiguration';
@@ -3311,9 +3312,9 @@ export declare type ProvisionCustomerMutation = {
3311
3312
  provisionCustomer: {
3312
3313
  __typename?: 'ProvisionedCustomer';
3313
3314
  subscriptionDecisionStrategy: SubscriptionDecisionStrategy;
3314
- customer: ({
3315
+ customer: {
3315
3316
  __typename?: 'Customer';
3316
- } & CustomerFragment);
3317
+ } & CustomerFragment;
3317
3318
  subscription?: ({
3318
3319
  __typename?: 'CustomerSubscription';
3319
3320
  } & SlimSubscriptionFragment) | null;
@@ -3324,18 +3325,18 @@ export declare type ImportCustomerMutationVariables = Exact<{
3324
3325
  }>;
3325
3326
  export declare type ImportCustomerMutation = {
3326
3327
  __typename?: 'Mutation';
3327
- importCustomer: ({
3328
+ importCustomer: {
3328
3329
  __typename?: 'Customer';
3329
- } & CustomerFragment);
3330
+ } & CustomerFragment;
3330
3331
  };
3331
3332
  export declare type UpdateCustomerMutationVariables = Exact<{
3332
3333
  input: UpdateCustomerInput;
3333
3334
  }>;
3334
3335
  export declare type UpdateCustomerMutation = {
3335
3336
  __typename?: 'Mutation';
3336
- updateCustomer: ({
3337
+ updateCustomer: {
3337
3338
  __typename?: 'Customer';
3338
- } & CustomerFragment);
3339
+ } & CustomerFragment;
3339
3340
  };
3340
3341
  export declare type ProvisionSubscriptionMutationVariables = Exact<{
3341
3342
  input: ProvisionSubscriptionInput;
@@ -3356,18 +3357,18 @@ export declare type UpdateSubscriptionMutationVariables = Exact<{
3356
3357
  }>;
3357
3358
  export declare type UpdateSubscriptionMutation = {
3358
3359
  __typename?: 'Mutation';
3359
- updateSubscription: ({
3360
+ updateSubscription: {
3360
3361
  __typename?: 'CustomerSubscription';
3361
- } & SlimSubscriptionFragment);
3362
+ } & SlimSubscriptionFragment;
3362
3363
  };
3363
3364
  export declare type CancelSubscriptionMutationVariables = Exact<{
3364
3365
  input: SubscriptionCancellationInput;
3365
3366
  }>;
3366
3367
  export declare type CancelSubscriptionMutation = {
3367
3368
  __typename?: 'Mutation';
3368
- cancelSubscription: ({
3369
+ cancelSubscription: {
3369
3370
  __typename?: 'CustomerSubscription';
3370
- } & SlimSubscriptionFragment);
3371
+ } & SlimSubscriptionFragment;
3371
3372
  };
3372
3373
  export declare type InitiateCheckoutMutationVariables = Exact<{
3373
3374
  input: InitiateCheckoutInput;
@@ -3385,18 +3386,18 @@ export declare type EstimateSubscriptionMutationVariables = Exact<{
3385
3386
  }>;
3386
3387
  export declare type EstimateSubscriptionMutation = {
3387
3388
  __typename?: 'Mutation';
3388
- estimateSubscription: ({
3389
+ estimateSubscription: {
3389
3390
  __typename?: 'SubscriptionPreview';
3390
- } & SubscriptionPreviewFragment);
3391
+ } & SubscriptionPreviewFragment;
3391
3392
  };
3392
3393
  export declare type EstimateSubscriptionUpdateMutationVariables = Exact<{
3393
3394
  input: EstimateSubscriptionUpdateInput;
3394
3395
  }>;
3395
3396
  export declare type EstimateSubscriptionUpdateMutation = {
3396
3397
  __typename?: 'Mutation';
3397
- estimateSubscriptionUpdate: ({
3398
+ estimateSubscriptionUpdate: {
3398
3399
  __typename?: 'SubscriptionPreview';
3399
- } & SubscriptionPreviewFragment);
3400
+ } & SubscriptionPreviewFragment;
3400
3401
  };
3401
3402
  export declare type ReportUsageMutationVariables = Exact<{
3402
3403
  input: UsageMeasurementCreateInput;
@@ -3426,9 +3427,9 @@ export declare type GetCouponsQuery = {
3426
3427
  __typename?: 'CouponConnection';
3427
3428
  edges: Array<{
3428
3429
  __typename?: 'CouponEdge';
3429
- node: ({
3430
+ node: {
3430
3431
  __typename?: 'Coupon';
3431
- } & CouponFragment);
3432
+ } & CouponFragment;
3432
3433
  }>;
3433
3434
  };
3434
3435
  };
@@ -3439,9 +3440,9 @@ export declare type GetPaywallQuery = {
3439
3440
  __typename?: 'Query';
3440
3441
  paywall: {
3441
3442
  __typename?: 'Paywall';
3442
- plans: Array<({
3443
+ plans: Array<{
3443
3444
  __typename?: 'Plan';
3444
- } & PlanFragment)>;
3445
+ } & PlanFragment>;
3445
3446
  configuration?: ({
3446
3447
  __typename?: 'PaywallConfiguration';
3447
3448
  } & PaywallConfigurationFragment) | null;
@@ -3455,18 +3456,18 @@ export declare type GetEntitlementsQueryVariables = Exact<{
3455
3456
  }>;
3456
3457
  export declare type GetEntitlementsQuery = {
3457
3458
  __typename?: 'Query';
3458
- entitlements: Array<({
3459
+ entitlements: Array<{
3459
3460
  __typename?: 'Entitlement';
3460
- } & EntitlementFragment)>;
3461
+ } & EntitlementFragment>;
3461
3462
  };
3462
3463
  export declare type GetEntitlementQueryVariables = Exact<{
3463
3464
  query: FetchEntitlementQuery;
3464
3465
  }>;
3465
3466
  export declare type GetEntitlementQuery = {
3466
3467
  __typename?: 'Query';
3467
- entitlement: ({
3468
+ entitlement: {
3468
3469
  __typename?: 'Entitlement';
3469
- } & EntitlementFragment);
3470
+ } & EntitlementFragment;
3470
3471
  };
3471
3472
  export declare const PriceFragmentDoc: import("graphql").DocumentNode;
3472
3473
  export declare const TotalPriceFragmentDoc: import("graphql").DocumentNode;
@@ -3509,21 +3510,21 @@ export declare const GetEntitlementsDocument: import("graphql").DocumentNode;
3509
3510
  export declare const GetEntitlementDocument: import("graphql").DocumentNode;
3510
3511
  export declare type SdkFunctionWrapper = <T>(action: (requestHeaders?: Record<string, string>) => Promise<T>, operationName: string, operationType?: string) => Promise<T>;
3511
3512
  export declare function getSdk(client: GraphQLClient, withWrapper?: SdkFunctionWrapper): {
3512
- provisionCustomer(variables: ProvisionCustomerMutationVariables, requestHeaders?: Dom.RequestInit["headers"]): Promise<ProvisionCustomerMutation>;
3513
- importCustomer(variables: ImportCustomerMutationVariables, requestHeaders?: Dom.RequestInit["headers"]): Promise<ImportCustomerMutation>;
3514
- updateCustomer(variables: UpdateCustomerMutationVariables, requestHeaders?: Dom.RequestInit["headers"]): Promise<UpdateCustomerMutation>;
3515
- provisionSubscription(variables: ProvisionSubscriptionMutationVariables, requestHeaders?: Dom.RequestInit["headers"]): Promise<ProvisionSubscriptionMutation>;
3516
- updateSubscription(variables: UpdateSubscriptionMutationVariables, requestHeaders?: Dom.RequestInit["headers"]): Promise<UpdateSubscriptionMutation>;
3517
- cancelSubscription(variables: CancelSubscriptionMutationVariables, requestHeaders?: Dom.RequestInit["headers"]): Promise<CancelSubscriptionMutation>;
3518
- initiateCheckout(variables: InitiateCheckoutMutationVariables, requestHeaders?: Dom.RequestInit["headers"]): Promise<InitiateCheckoutMutation>;
3519
- estimateSubscription(variables: EstimateSubscriptionMutationVariables, requestHeaders?: Dom.RequestInit["headers"]): Promise<EstimateSubscriptionMutation>;
3520
- estimateSubscriptionUpdate(variables: EstimateSubscriptionUpdateMutationVariables, requestHeaders?: Dom.RequestInit["headers"]): Promise<EstimateSubscriptionUpdateMutation>;
3521
- reportUsage(variables: ReportUsageMutationVariables, requestHeaders?: Dom.RequestInit["headers"]): Promise<ReportUsageMutation>;
3522
- getCustomerById(variables: GetCustomerByIdQueryVariables, requestHeaders?: Dom.RequestInit["headers"]): Promise<GetCustomerByIdQuery>;
3523
- getCoupons(variables?: GetCouponsQueryVariables, requestHeaders?: Dom.RequestInit["headers"]): Promise<GetCouponsQuery>;
3524
- getPaywall(variables: GetPaywallQueryVariables, requestHeaders?: Dom.RequestInit["headers"]): Promise<GetPaywallQuery>;
3525
- getEntitlements(variables: GetEntitlementsQueryVariables, requestHeaders?: Dom.RequestInit["headers"]): Promise<GetEntitlementsQuery>;
3526
- getEntitlement(variables: GetEntitlementQueryVariables, requestHeaders?: Dom.RequestInit["headers"]): Promise<GetEntitlementQuery>;
3513
+ provisionCustomer(variables: ProvisionCustomerMutationVariables, requestHeaders?: Dom.RequestInit['headers']): Promise<ProvisionCustomerMutation>;
3514
+ importCustomer(variables: ImportCustomerMutationVariables, requestHeaders?: Dom.RequestInit['headers']): Promise<ImportCustomerMutation>;
3515
+ updateCustomer(variables: UpdateCustomerMutationVariables, requestHeaders?: Dom.RequestInit['headers']): Promise<UpdateCustomerMutation>;
3516
+ provisionSubscription(variables: ProvisionSubscriptionMutationVariables, requestHeaders?: Dom.RequestInit['headers']): Promise<ProvisionSubscriptionMutation>;
3517
+ updateSubscription(variables: UpdateSubscriptionMutationVariables, requestHeaders?: Dom.RequestInit['headers']): Promise<UpdateSubscriptionMutation>;
3518
+ cancelSubscription(variables: CancelSubscriptionMutationVariables, requestHeaders?: Dom.RequestInit['headers']): Promise<CancelSubscriptionMutation>;
3519
+ initiateCheckout(variables: InitiateCheckoutMutationVariables, requestHeaders?: Dom.RequestInit['headers']): Promise<InitiateCheckoutMutation>;
3520
+ estimateSubscription(variables: EstimateSubscriptionMutationVariables, requestHeaders?: Dom.RequestInit['headers']): Promise<EstimateSubscriptionMutation>;
3521
+ estimateSubscriptionUpdate(variables: EstimateSubscriptionUpdateMutationVariables, requestHeaders?: Dom.RequestInit['headers']): Promise<EstimateSubscriptionUpdateMutation>;
3522
+ reportUsage(variables: ReportUsageMutationVariables, requestHeaders?: Dom.RequestInit['headers']): Promise<ReportUsageMutation>;
3523
+ getCustomerById(variables: GetCustomerByIdQueryVariables, requestHeaders?: Dom.RequestInit['headers']): Promise<GetCustomerByIdQuery>;
3524
+ getCoupons(variables?: GetCouponsQueryVariables, requestHeaders?: Dom.RequestInit['headers']): Promise<GetCouponsQuery>;
3525
+ getPaywall(variables: GetPaywallQueryVariables, requestHeaders?: Dom.RequestInit['headers']): Promise<GetPaywallQuery>;
3526
+ getEntitlements(variables: GetEntitlementsQueryVariables, requestHeaders?: Dom.RequestInit['headers']): Promise<GetEntitlementsQuery>;
3527
+ getEntitlement(variables: GetEntitlementQueryVariables, requestHeaders?: Dom.RequestInit['headers']): Promise<GetEntitlementQuery>;
3527
3528
  };
3528
3529
  export declare type Sdk = ReturnType<typeof getSdk>;
3529
3530
  export {};