zpan-cloud-sdk 1.0.1 → 1.0.2

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/index.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  import { hc } from 'hono/client';
2
2
  import { z } from 'zod';
3
- import { accountBillingResponseSchema, accountMembershipResponseSchema, accountOverviewResponseSchema, accountWalletResponseSchema, adminUserListResponseSchema, adminUserListQuerySchema, adminUserPatchSchema, giftCardCampaignSchema, storeGiftCardSchema, commerceOrderSchema, billingPortalSessionSchema, billingPortalSessionResponseSchema, boundLicenseSchema, commerceProductSchema, commerceStoreSchema, createOrderSchema, paymentSchema, createProductSchema, entitlementRefreshResponseSchema, giftCardCampaignCreateSchema, giftCardCampaignListQuerySchema, giftCardCampaignListResponseSchema, giftCardCreateSchema, giftCardListQuerySchema, giftCardListResponseSchema, giftCardPatchSchema, licenseAssertionSchema, licenseListResponseSchema, orderListResponseSchema, orderPatchSchema, pageSchema, pairingActionSchema, pairingActionResponseSchema, createPairingSchema, pairingCreateResponseSchema, pairingPollResponseSchema, pairingPreviewSchema, paymentCreateResponseSchema, productListQuerySchema, productListResponseSchema, storeListResponseSchema, storePatchSchema, updateProductSchema, usageEventCreateSchema, usageEventCreateResponseSchema, usageSummarySchema, walletBalanceSchema, walletBalanceListResponseSchema, walletLedgerEntrySchema, walletLedgerResponseSchema, walletRedemptionSchema, walletRedemptionResponseSchema } from './schemas.js';
4
- export { accountBillingQuerySchema, accountUsagePeriodSchema, accountUsageQuerySchema, adminUserSchema, billingRecordItemSchema, billingRecordSchema, billingSummarySchema, commerceOrderItemSchema, commercePaymentSchema, deliverableSchema, membershipStripeChannelSchema, orderListQuerySchema, paginationQuerySchema, productMetadataSchema, productPriceSchema, usageResourceSummarySchema } from './schemas.js';
3
+ import { accountBillingResponseSchema, accountMembershipResponseSchema, accountOverviewResponseSchema, accountWalletResponseSchema, adminUserListResponseSchema, adminUserListQuerySchema, adminUserPatchSchema, giftCardCampaignSchema, storeGiftCardSchema, commerceOrderSchema, billingPortalSessionSchema, billingPortalSessionResponseSchema, boundLicenseSchema, commercePaymentSchema, commerceProductSchema, commerceStoreSchema, createOrderSchema, paymentSchema, createProductSchema, entitlementRefreshResponseSchema, giftCardCampaignCreateSchema, giftCardCampaignListQuerySchema, giftCardCampaignListResponseSchema, giftCardCreateSchema, giftCardListQuerySchema, giftCardListResponseSchema, giftCardPatchSchema, licenseAssertionSchema, licenseListResponseSchema, orderListResponseSchema, orderPatchSchema, pageSchema, pairingActionSchema, pairingActionResponseSchema, createPairingSchema, pairingCreateResponseSchema, pairingPollResponseSchema, pairingPreviewSchema, paymentCreateResponseSchema, productListQuerySchema, productListResponseSchema, productPriceSchema, storeListResponseSchema, storePatchSchema, updateProductSchema, usageEventCreateSchema, usageEventCreateResponseSchema, usageSummarySchema, walletBalanceSchema, walletBalanceListResponseSchema, walletLedgerEntrySchema, walletLedgerResponseSchema, walletRedemptionSchema, walletRedemptionResponseSchema } from './schemas.js';
4
+ export { accountBillingQuerySchema, accountUsagePeriodSchema, accountUsageQuerySchema, adminUserSchema, billingRecordItemSchema, billingRecordSchema, billingSummarySchema, commerceOrderItemSchema, deliverableSchema, membershipStripeChannelSchema, orderListQuerySchema, paginationQuerySchema, productMetadataSchema, usageResourceSummarySchema } from './schemas.js';
5
5
  import * as hono_utils_types from 'hono/utils/types';
6
6
  import * as hono_hono_base from 'hono/hono-base';
7
7
  import * as hono_utils_http_status from 'hono/utils/http-status';
@@ -20,7 +20,9 @@ type PairingActionRequest = z.infer<typeof pairingActionSchema>;
20
20
  type PairingActionResponse = z.infer<typeof pairingActionResponseSchema>;
21
21
  type EntitlementRefreshResponse = z.infer<typeof entitlementRefreshResponseSchema>;
22
22
  type CommerceStore = z.infer<typeof commerceStoreSchema>;
23
+ type ProductPrice = z.infer<typeof productPriceSchema>;
23
24
  type CommerceProduct = z.infer<typeof commerceProductSchema>;
25
+ type CommercePayment = z.infer<typeof commercePaymentSchema>;
24
26
  type CommerceOrder = z.infer<typeof commerceOrderSchema>;
25
27
  type ProductType$1 = CommerceProduct['type'];
26
28
  type ProductListQuery = Partial<Record<keyof z.infer<typeof productListQuerySchema>, string>>;
@@ -144,7 +146,7 @@ declare const pairingsRouter: hono_hono_base.HonoBase<hono_types.BlankEnv, {
144
146
  };
145
147
  };
146
148
  output: {
147
- status: "pending" | "expired" | "denied";
149
+ status: "pending" | "denied" | "expired";
148
150
  } | {
149
151
  status: "approved";
150
152
  refreshToken: string;
@@ -267,9 +269,9 @@ declare const accountMembershipRouter: hono_hono_base.HonoBase<hono_types.BlankE
267
269
  $get: {
268
270
  input: {};
269
271
  output: {
270
- state: "active" | "expired" | "inactive" | "renewal_due";
272
+ state: "expired" | "active" | "inactive" | "renewal_due";
271
273
  tier: "none" | "silver" | "gold" | "premier";
272
- membershipStatus: "active" | "expired" | "inactive";
274
+ membershipStatus: "expired" | "active" | "inactive";
273
275
  expiresAt: string | null;
274
276
  cumulativeMonths: number;
275
277
  proIncluded: boolean;
@@ -350,7 +352,7 @@ declare const accountBillingRouter: hono_hono_base.HonoBase<hono_types.BlankEnv,
350
352
  recurring: boolean;
351
353
  }[];
352
354
  orderStatus: "pending" | "paid" | "failed" | "refunded" | "canceled" | "fulfilled";
353
- paymentStatus: "pending" | "paid" | "failed" | "refunded" | "canceled" | "unpaid";
355
+ paymentStatus: "pending" | "unpaid" | "paid" | "failed" | "refunded" | "canceled";
354
356
  fulfillmentStatus: "pending" | "failed" | "canceled" | "fulfilled";
355
357
  amountLabel: string | null;
356
358
  occurredAt: string;
@@ -798,7 +800,7 @@ declare const storeGiftCardsRouter: hono_hono_base.HonoBase<hono_types.BlankEnv,
798
800
  codeLast4: string;
799
801
  amount: number;
800
802
  currency: string;
801
- status: "active" | "disabled" | "redeemed" | "expired" | "revoked";
803
+ status: "expired" | "active" | "disabled" | "revoked" | "redeemed";
802
804
  expiresAt: string | null;
803
805
  createdAt: string;
804
806
  updatedAt: string;
@@ -950,7 +952,7 @@ declare const storeOrdersRouter: hono_hono_base.HonoBase<hono_types.BlankEnv, {
950
952
  [x: string]: hono_utils_types.JSONValue;
951
953
  } | null;
952
954
  status: "pending" | "paid" | "failed" | "refunded" | "canceled" | "fulfilled";
953
- paymentStatus: "pending" | "paid" | "failed" | "refunded" | "canceled" | "unpaid";
955
+ paymentStatus: "pending" | "unpaid" | "paid" | "failed" | "refunded" | "canceled";
954
956
  fulfillmentStatus: "pending" | "failed" | "canceled" | "fulfilled";
955
957
  subtotalAmount: number;
956
958
  discountAmount: number;
@@ -1351,7 +1353,7 @@ declare const adminUsersRouter: hono_hono_base.HonoBase<hono_types.BlankEnv, {
1351
1353
  updatedAt: string;
1352
1354
  role: "user" | "admin";
1353
1355
  membershipTier: "none" | "silver" | "gold" | "premier";
1354
- membershipStatus: "active" | "expired" | "inactive";
1356
+ membershipStatus: "expired" | "active" | "inactive";
1355
1357
  }[];
1356
1358
  total: number;
1357
1359
  limit: number;
@@ -1368,7 +1370,7 @@ declare const adminUsersRouter: hono_hono_base.HonoBase<hono_types.BlankEnv, {
1368
1370
  json: {
1369
1371
  role?: "user" | "admin" | undefined;
1370
1372
  membershipTier?: "none" | "silver" | "gold" | "premier" | undefined;
1371
- membershipStatus?: "active" | "expired" | "inactive" | undefined;
1373
+ membershipStatus?: "expired" | "active" | "inactive" | undefined;
1372
1374
  };
1373
1375
  } & {
1374
1376
  param: {
@@ -1385,7 +1387,7 @@ declare const adminUsersRouter: hono_hono_base.HonoBase<hono_types.BlankEnv, {
1385
1387
  updatedAt: string;
1386
1388
  role: "user" | "admin";
1387
1389
  membershipTier: "none" | "silver" | "gold" | "premier";
1388
- membershipStatus: "active" | "expired" | "inactive";
1390
+ membershipStatus: "expired" | "active" | "inactive";
1389
1391
  };
1390
1392
  outputFormat: "json";
1391
1393
  status: hono_utils_http_status.ContentfulStatusCode;
@@ -1437,7 +1439,7 @@ declare const apiApp: hono_hono_base.HonoBase<hono_types.BlankEnv, hono_types.Bl
1437
1439
  };
1438
1440
  };
1439
1441
  output: {
1440
- status: "pending" | "expired" | "denied";
1442
+ status: "pending" | "denied" | "expired";
1441
1443
  } | {
1442
1444
  status: "approved";
1443
1445
  refreshToken: string;
@@ -1504,9 +1506,9 @@ declare const apiApp: hono_hono_base.HonoBase<hono_types.BlankEnv, hono_types.Bl
1504
1506
  $get: {
1505
1507
  input: {};
1506
1508
  output: {
1507
- state: "active" | "expired" | "inactive" | "renewal_due";
1509
+ state: "expired" | "active" | "inactive" | "renewal_due";
1508
1510
  tier: "none" | "silver" | "gold" | "premier";
1509
- membershipStatus: "active" | "expired" | "inactive";
1511
+ membershipStatus: "expired" | "active" | "inactive";
1510
1512
  expiresAt: string | null;
1511
1513
  cumulativeMonths: number;
1512
1514
  proIncluded: boolean;
@@ -1586,7 +1588,7 @@ declare const apiApp: hono_hono_base.HonoBase<hono_types.BlankEnv, hono_types.Bl
1586
1588
  recurring: boolean;
1587
1589
  }[];
1588
1590
  orderStatus: "pending" | "paid" | "failed" | "refunded" | "canceled" | "fulfilled";
1589
- paymentStatus: "pending" | "paid" | "failed" | "refunded" | "canceled" | "unpaid";
1591
+ paymentStatus: "pending" | "unpaid" | "paid" | "failed" | "refunded" | "canceled";
1590
1592
  fulfillmentStatus: "pending" | "failed" | "canceled" | "fulfilled";
1591
1593
  amountLabel: string | null;
1592
1594
  occurredAt: string;
@@ -2082,7 +2084,7 @@ declare const apiApp: hono_hono_base.HonoBase<hono_types.BlankEnv, hono_types.Bl
2082
2084
  codeLast4: string;
2083
2085
  amount: number;
2084
2086
  currency: string;
2085
- status: "active" | "disabled" | "redeemed" | "expired" | "revoked";
2087
+ status: "expired" | "active" | "disabled" | "revoked" | "redeemed";
2086
2088
  expiresAt: string | null;
2087
2089
  createdAt: string;
2088
2090
  updatedAt: string;
@@ -2232,7 +2234,7 @@ declare const apiApp: hono_hono_base.HonoBase<hono_types.BlankEnv, hono_types.Bl
2232
2234
  [x: string]: hono_utils_types.JSONValue;
2233
2235
  } | null;
2234
2236
  status: "pending" | "paid" | "failed" | "refunded" | "canceled" | "fulfilled";
2235
- paymentStatus: "pending" | "paid" | "failed" | "refunded" | "canceled" | "unpaid";
2237
+ paymentStatus: "pending" | "unpaid" | "paid" | "failed" | "refunded" | "canceled";
2236
2238
  fulfillmentStatus: "pending" | "failed" | "canceled" | "fulfilled";
2237
2239
  subtotalAmount: number;
2238
2240
  discountAmount: number;
@@ -2730,7 +2732,7 @@ declare const apiApp: hono_hono_base.HonoBase<hono_types.BlankEnv, hono_types.Bl
2730
2732
  updatedAt: string;
2731
2733
  role: "user" | "admin";
2732
2734
  membershipTier: "none" | "silver" | "gold" | "premier";
2733
- membershipStatus: "active" | "expired" | "inactive";
2735
+ membershipStatus: "expired" | "active" | "inactive";
2734
2736
  }[];
2735
2737
  total: number;
2736
2738
  limit: number;
@@ -2747,7 +2749,7 @@ declare const apiApp: hono_hono_base.HonoBase<hono_types.BlankEnv, hono_types.Bl
2747
2749
  json: {
2748
2750
  role?: "user" | "admin" | undefined;
2749
2751
  membershipTier?: "none" | "silver" | "gold" | "premier" | undefined;
2750
- membershipStatus?: "active" | "expired" | "inactive" | undefined;
2752
+ membershipStatus?: "expired" | "active" | "inactive" | undefined;
2751
2753
  };
2752
2754
  } & {
2753
2755
  param: {
@@ -2764,7 +2766,7 @@ declare const apiApp: hono_hono_base.HonoBase<hono_types.BlankEnv, hono_types.Bl
2764
2766
  updatedAt: string;
2765
2767
  role: "user" | "admin";
2766
2768
  membershipTier: "none" | "silver" | "gold" | "premier";
2767
- membershipStatus: "active" | "expired" | "inactive";
2769
+ membershipStatus: "expired" | "active" | "inactive";
2768
2770
  };
2769
2771
  outputFormat: "json";
2770
2772
  status: hono_utils_http_status.ContentfulStatusCode;
@@ -2868,4 +2870,4 @@ declare const zpanCloudEventSchema: z.ZodObject<{
2868
2870
  type StoreFulfillmentEvent = z.infer<typeof storeFulfillmentEventSchema>;
2869
2871
  type ZpanCloudEvent = StoreFulfillmentEvent;
2870
2872
 
2871
- export { type AccountBillingResponse, type AccountBillingRoute, type AccountMembershipResponse, type AccountMembershipRoute, type AccountOverview, type AccountOverviewResponse, type AccountOverviewRoute, type AccountUsageRoute, type AccountWallet, type AccountWalletResponse, type AccountWalletRoute, type AdminLicenseListQuery, type AdminLicensesRoute, type AdminStoresRoute, type AdminUser, type AdminUserListInput, type AdminUserListQuery, type AdminUserPatchRequest, type AdminUsersRoute, type AppType, type BillingOverview, type BillingPortalSessionRequest, type BillingPortalSessionResponse, type BillingRecord, type BoundLicense, type CloudClient, type CloudClientOptions, type CommerceOrder, type CommerceProduct, type CommerceStore, type CreateOrderInput, type CreateOrderRequest, type CreatePaymentRequest, type CreateProductInput, type EntitlementRefreshResponse, type EntitlementsRoute, type GiftCardCampaign, type GiftCardCampaignCreateRequest, type GiftCardCampaignListInput, type GiftCardCampaignListQuery, type GiftCardCampaignListResponse, type GiftCardCreateRequest, type GiftCardListInput, type GiftCardListQuery, type GiftCardListResponse, type GiftCardPatchRequest, type LicenseAssertionResponse, type LicenseListResponse, type LicensesRoute, type MembershipOverview, type MembershipTier, type OrderListQuery, type OrderListResponse, type OrderPatchRequest, type Page, type PaginationQuery, type PairingActionRequest, type PairingActionResponse, type PairingCreateRequest, type PairingCreateResponse, type PairingPollResponse, type PairingPreview, type PairingsRoute, type PaymentCreateRequest, type PaymentCreateResponse, type ProductListQuery, type ProductListResponse, type ProductType$1 as ProductType, type StoreFulfillmentEvent, type StoreGiftCard, type StoreGiftCardsRoute, type StoreListResponse, type StoreOrdersRoute, type StorePatchRequest, type StoreProductsRoute, type UpdateProductInput, type UsageEventCreateRequest, type UsageEventCreateResponse, type UsageEventsRoute, type UsageSummary, type UsageSummaryResponse, type WalletBalance, type WalletBalanceListResponse, type WalletLedgerEntry, type WalletLedgerResponse, type WalletRedemptionRequest, type WalletRedemptionResponse, type ZpanCloudEvent, accountBillingResponseSchema, accountMembershipResponseSchema, accountOverviewResponseSchema, accountWalletResponseSchema, adminUserListQuerySchema, adminUserListResponseSchema, adminUserPatchSchema, billingPortalSessionResponseSchema, billingPortalSessionSchema, boundLicenseSchema, commerceOrderSchema, commerceProductSchema, commerceStoreSchema, createCloudClient, createOrderSchema, createPairingSchema, createProductSchema, entitlementRefreshResponseSchema, giftCardCampaignCreateSchema, giftCardCampaignListQuerySchema, giftCardCampaignListResponseSchema, giftCardCampaignSchema, giftCardCreateSchema, giftCardListQuerySchema, giftCardListResponseSchema, giftCardPatchSchema, licenseAssertionSchema, licenseListResponseSchema, orderListResponseSchema, orderPatchSchema, pageSchema, pairingActionResponseSchema, pairingActionSchema, pairingCreateResponseSchema, pairingPollResponseSchema, pairingPreviewSchema, paymentCreateResponseSchema, paymentSchema, productListQuerySchema, productListResponseSchema, storeFulfillmentEventSchema, storeGiftCardSchema, storeListResponseSchema, storePatchSchema, updateProductSchema, usageEventCreateResponseSchema, usageEventCreateSchema, usageSummarySchema, walletBalanceListResponseSchema, walletBalanceSchema, walletLedgerEntrySchema, walletLedgerResponseSchema, walletRedemptionResponseSchema, walletRedemptionSchema, zpanCloudEventSchema };
2873
+ export { type AccountBillingResponse, type AccountBillingRoute, type AccountMembershipResponse, type AccountMembershipRoute, type AccountOverview, type AccountOverviewResponse, type AccountOverviewRoute, type AccountUsageRoute, type AccountWallet, type AccountWalletResponse, type AccountWalletRoute, type AdminLicenseListQuery, type AdminLicensesRoute, type AdminStoresRoute, type AdminUser, type AdminUserListInput, type AdminUserListQuery, type AdminUserPatchRequest, type AdminUsersRoute, type AppType, type BillingOverview, type BillingPortalSessionRequest, type BillingPortalSessionResponse, type BillingRecord, type BoundLicense, type CloudClient, type CloudClientOptions, type CommerceOrder, type CommercePayment, type CommerceProduct, type CommerceStore, type CreateOrderInput, type CreateOrderRequest, type CreatePaymentRequest, type CreateProductInput, type EntitlementRefreshResponse, type EntitlementsRoute, type GiftCardCampaign, type GiftCardCampaignCreateRequest, type GiftCardCampaignListInput, type GiftCardCampaignListQuery, type GiftCardCampaignListResponse, type GiftCardCreateRequest, type GiftCardListInput, type GiftCardListQuery, type GiftCardListResponse, type GiftCardPatchRequest, type LicenseAssertionResponse, type LicenseListResponse, type LicensesRoute, type MembershipOverview, type MembershipTier, type OrderListQuery, type OrderListResponse, type OrderPatchRequest, type Page, type PaginationQuery, type PairingActionRequest, type PairingActionResponse, type PairingCreateRequest, type PairingCreateResponse, type PairingPollResponse, type PairingPreview, type PairingsRoute, type PaymentCreateRequest, type PaymentCreateResponse, type ProductListQuery, type ProductListResponse, type ProductPrice, type ProductType$1 as ProductType, type StoreFulfillmentEvent, type StoreGiftCard, type StoreGiftCardsRoute, type StoreListResponse, type StoreOrdersRoute, type StorePatchRequest, type StoreProductsRoute, type UpdateProductInput, type UsageEventCreateRequest, type UsageEventCreateResponse, type UsageEventsRoute, type UsageSummary, type UsageSummaryResponse, type WalletBalance, type WalletBalanceListResponse, type WalletLedgerEntry, type WalletLedgerResponse, type WalletRedemptionRequest, type WalletRedemptionResponse, type ZpanCloudEvent, accountBillingResponseSchema, accountMembershipResponseSchema, accountOverviewResponseSchema, accountWalletResponseSchema, adminUserListQuerySchema, adminUserListResponseSchema, adminUserPatchSchema, billingPortalSessionResponseSchema, billingPortalSessionSchema, boundLicenseSchema, commerceOrderSchema, commercePaymentSchema, commerceProductSchema, commerceStoreSchema, createCloudClient, createOrderSchema, createPairingSchema, createProductSchema, entitlementRefreshResponseSchema, giftCardCampaignCreateSchema, giftCardCampaignListQuerySchema, giftCardCampaignListResponseSchema, giftCardCampaignSchema, giftCardCreateSchema, giftCardListQuerySchema, giftCardListResponseSchema, giftCardPatchSchema, licenseAssertionSchema, licenseListResponseSchema, orderListResponseSchema, orderPatchSchema, pageSchema, pairingActionResponseSchema, pairingActionSchema, pairingCreateResponseSchema, pairingPollResponseSchema, pairingPreviewSchema, paymentCreateResponseSchema, paymentSchema, productListQuerySchema, productListResponseSchema, productPriceSchema, storeFulfillmentEventSchema, storeGiftCardSchema, storeListResponseSchema, storePatchSchema, updateProductSchema, usageEventCreateResponseSchema, usageEventCreateSchema, usageSummarySchema, walletBalanceListResponseSchema, walletBalanceSchema, walletLedgerEntrySchema, walletLedgerResponseSchema, walletRedemptionResponseSchema, walletRedemptionSchema, zpanCloudEventSchema };
package/dist/schemas.d.ts CHANGED
@@ -28,8 +28,8 @@ declare const pairingPreviewSchema: z.ZodObject<{
28
28
  declare const pairingPollResponseSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
29
29
  status: z.ZodEnum<{
30
30
  pending: "pending";
31
- expired: "expired";
32
31
  denied: "denied";
32
+ expired: "expired";
33
33
  }>;
34
34
  }, z.core.$strip>, z.ZodObject<{
35
35
  status: z.ZodLiteral<"approved">;
@@ -297,11 +297,11 @@ declare const orderListQuerySchema: z.ZodObject<{
297
297
  offset: z.ZodDefault<z.ZodOptional<z.ZodCoercedNumber<unknown>>>;
298
298
  paymentStatus: z.ZodOptional<z.ZodEnum<{
299
299
  pending: "pending";
300
+ unpaid: "unpaid";
300
301
  paid: "paid";
301
302
  failed: "failed";
302
303
  refunded: "refunded";
303
304
  canceled: "canceled";
304
- unpaid: "unpaid";
305
305
  }>>;
306
306
  fulfillmentStatus: z.ZodOptional<z.ZodEnum<{
307
307
  pending: "pending";
@@ -360,11 +360,11 @@ declare const commerceOrderSchema: z.ZodObject<{
360
360
  }>;
361
361
  paymentStatus: z.ZodEnum<{
362
362
  pending: "pending";
363
+ unpaid: "unpaid";
363
364
  paid: "paid";
364
365
  failed: "failed";
365
366
  refunded: "refunded";
366
367
  canceled: "canceled";
367
- unpaid: "unpaid";
368
368
  }>;
369
369
  fulfillmentStatus: z.ZodEnum<{
370
370
  pending: "pending";
@@ -431,11 +431,11 @@ declare const orderListResponseSchema: z.ZodObject<{
431
431
  }>;
432
432
  paymentStatus: z.ZodEnum<{
433
433
  pending: "pending";
434
+ unpaid: "unpaid";
434
435
  paid: "paid";
435
436
  failed: "failed";
436
437
  refunded: "refunded";
437
438
  canceled: "canceled";
438
- unpaid: "unpaid";
439
439
  }>;
440
440
  fulfillmentStatus: z.ZodEnum<{
441
441
  pending: "pending";
@@ -540,11 +540,11 @@ declare const giftCardListQuerySchema: z.ZodObject<{
540
540
  limit: z.ZodDefault<z.ZodOptional<z.ZodCoercedNumber<unknown>>>;
541
541
  offset: z.ZodDefault<z.ZodOptional<z.ZodCoercedNumber<unknown>>>;
542
542
  status: z.ZodOptional<z.ZodEnum<{
543
+ expired: "expired";
543
544
  active: "active";
544
545
  disabled: "disabled";
545
- redeemed: "redeemed";
546
- expired: "expired";
547
546
  revoked: "revoked";
547
+ redeemed: "redeemed";
548
548
  }>>;
549
549
  campaignId: z.ZodOptional<z.ZodString>;
550
550
  }, z.core.$strip>;
@@ -566,11 +566,11 @@ declare const storeGiftCardSchema: z.ZodObject<{
566
566
  amount: z.ZodNumber;
567
567
  currency: z.ZodString;
568
568
  status: z.ZodEnum<{
569
+ expired: "expired";
569
570
  active: "active";
570
571
  disabled: "disabled";
571
- redeemed: "redeemed";
572
- expired: "expired";
573
572
  revoked: "revoked";
573
+ redeemed: "redeemed";
574
574
  }>;
575
575
  expiresAt: z.ZodNullable<z.ZodString>;
576
576
  createdAt: z.ZodString;
@@ -604,11 +604,11 @@ declare const giftCardListResponseSchema: z.ZodObject<{
604
604
  amount: z.ZodNumber;
605
605
  currency: z.ZodString;
606
606
  status: z.ZodEnum<{
607
+ expired: "expired";
607
608
  active: "active";
608
609
  disabled: "disabled";
609
- redeemed: "redeemed";
610
- expired: "expired";
611
610
  revoked: "revoked";
611
+ redeemed: "redeemed";
612
612
  }>;
613
613
  expiresAt: z.ZodNullable<z.ZodString>;
614
614
  createdAt: z.ZodString;
@@ -849,8 +849,8 @@ declare const membershipStripeChannelSchema: z.ZodObject<{
849
849
  }, z.core.$strip>;
850
850
  declare const accountMembershipResponseSchema: z.ZodObject<{
851
851
  state: z.ZodEnum<{
852
- active: "active";
853
852
  expired: "expired";
853
+ active: "active";
854
854
  inactive: "inactive";
855
855
  renewal_due: "renewal_due";
856
856
  }>;
@@ -861,8 +861,8 @@ declare const accountMembershipResponseSchema: z.ZodObject<{
861
861
  premier: "premier";
862
862
  }>;
863
863
  membershipStatus: z.ZodEnum<{
864
- active: "active";
865
864
  expired: "expired";
865
+ active: "active";
866
866
  inactive: "inactive";
867
867
  }>;
868
868
  expiresAt: z.ZodNullable<z.ZodString>;
@@ -916,11 +916,11 @@ declare const billingRecordSchema: z.ZodObject<{
916
916
  }>;
917
917
  paymentStatus: z.ZodEnum<{
918
918
  pending: "pending";
919
+ unpaid: "unpaid";
919
920
  paid: "paid";
920
921
  failed: "failed";
921
922
  refunded: "refunded";
922
923
  canceled: "canceled";
923
- unpaid: "unpaid";
924
924
  }>;
925
925
  fulfillmentStatus: z.ZodEnum<{
926
926
  pending: "pending";
@@ -1019,11 +1019,11 @@ declare const accountBillingResponseSchema: z.ZodObject<{
1019
1019
  }>;
1020
1020
  paymentStatus: z.ZodEnum<{
1021
1021
  pending: "pending";
1022
+ unpaid: "unpaid";
1022
1023
  paid: "paid";
1023
1024
  failed: "failed";
1024
1025
  refunded: "refunded";
1025
1026
  canceled: "canceled";
1026
- unpaid: "unpaid";
1027
1027
  }>;
1028
1028
  fulfillmentStatus: z.ZodEnum<{
1029
1029
  pending: "pending";
@@ -1059,8 +1059,8 @@ declare const adminUserPatchSchema: z.ZodObject<{
1059
1059
  premier: "premier";
1060
1060
  }>>;
1061
1061
  membershipStatus: z.ZodOptional<z.ZodEnum<{
1062
- active: "active";
1063
1062
  expired: "expired";
1063
+ active: "active";
1064
1064
  inactive: "inactive";
1065
1065
  }>>;
1066
1066
  }, z.core.$strip>;
@@ -1094,8 +1094,8 @@ declare const adminUserSchema: z.ZodObject<{
1094
1094
  premier: "premier";
1095
1095
  }>;
1096
1096
  membershipStatus: z.ZodEnum<{
1097
- active: "active";
1098
1097
  expired: "expired";
1098
+ active: "active";
1099
1099
  inactive: "inactive";
1100
1100
  }>;
1101
1101
  }, z.core.$strip>;
@@ -1119,8 +1119,8 @@ declare const adminUserListResponseSchema: z.ZodObject<{
1119
1119
  premier: "premier";
1120
1120
  }>;
1121
1121
  membershipStatus: z.ZodEnum<{
1122
- active: "active";
1123
1122
  expired: "expired";
1123
+ active: "active";
1124
1124
  inactive: "inactive";
1125
1125
  }>;
1126
1126
  }, z.core.$strip>>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zpan-cloud-sdk",
3
- "version": "1.0.1",
3
+ "version": "1.0.2",
4
4
  "description": "Public TypeScript SDK and API contract for ZPan Cloud.",
5
5
  "repository": {
6
6
  "type": "git",