@sixtyninecommerce/client 0.33.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.
@@ -550,6 +550,7 @@ export type CustomerFilterParameter = {
550
550
  hasPassword?: InputMaybe<BooleanOperators>;
551
551
  id?: InputMaybe<IdOperators>;
552
552
  isB2B?: InputMaybe<BooleanOperators>;
553
+ isViewOnly?: InputMaybe<BooleanOperators>;
553
554
  lastName?: InputMaybe<StringOperators>;
554
555
  marketingConsent?: InputMaybe<BooleanOperators>;
555
556
  marketingConsentAt?: InputMaybe<DateOperators>;
@@ -1700,7 +1701,7 @@ export type PickupLocationSearchInput = {
1700
1701
  * defensively: new codes are added over time, and any code this build does not
1701
1702
  * know decodes to `UNKNOWN`.
1702
1703
  */
1703
- export type PlacementRejectionCode = 'AGE_REQUIREMENT_NOT_MET' | 'AGE_VERIFICATION_REQUIRED' | 'CUSTOMER_REQUIRED' | 'DELIVERY_TERMS_UNAVAILABLE' | 'FULFILLMENT_MINIMUM_NOT_MET' | 'GIFT_CARD_LINE_FREE' | 'GIFT_CARD_NEEDS_BUYER_EMAIL' | 'GIFT_CARD_NOT_FOR_SALE' | 'GIFT_CARD_ORDER_DISCOUNT' | 'HOOK_REJECTED' | 'HOOK_UNAVAILABLE' | 'INSUFFICIENT_STOCK' | 'LINE_MINIMUM_QUANTITY_NOT_MET' | 'LINE_SALES_UNIT_NOT_MET' | 'ORDER_EMPTY' | 'ORDER_MINIMUM_AMOUNT_NOT_MET' | 'ORDER_MINIMUM_QUANTITY_NOT_MET' | 'PAYMENT_INTENT_MISMATCH' | 'PAYMENT_TERMS_UNAVAILABLE' | 'PLACEMENT_BLOCKED' | 'PRODUCT_EXCLUDED_FROM_STORE' | 'SHIPPING_ADDRESS_INCOMPLETE' | 'SHIPPING_COUNTRY_NOT_SERVED' | 'SHIPPING_METHOD_REQUIRED' | 'SHIPPING_RATE_UNAVAILABLE' | 'TAX_CHANGED' | 'UNKNOWN' | 'VARIANT_NOT_FOR_SALE_IN_CURRENCY';
1704
+ export type PlacementRejectionCode = 'AGE_REQUIREMENT_NOT_MET' | 'AGE_VERIFICATION_REQUIRED' | 'CUSTOMER_REQUIRED' | 'DELIVERY_TERMS_UNAVAILABLE' | 'FULFILLMENT_MINIMUM_NOT_MET' | 'GIFT_CARD_LINE_FREE' | 'GIFT_CARD_NEEDS_BUYER_EMAIL' | 'GIFT_CARD_NOT_FOR_SALE' | 'GIFT_CARD_ORDER_DISCOUNT' | 'HOOK_REJECTED' | 'HOOK_UNAVAILABLE' | 'INSUFFICIENT_STOCK' | 'LINE_MINIMUM_QUANTITY_NOT_MET' | 'LINE_SALES_UNIT_NOT_MET' | 'ORDER_EMPTY' | 'ORDER_MINIMUM_AMOUNT_NOT_MET' | 'ORDER_MINIMUM_QUANTITY_NOT_MET' | 'PAYMENT_INTENT_MISMATCH' | 'PAYMENT_TERMS_UNAVAILABLE' | 'PLACEMENT_BLOCKED' | 'PRODUCT_EXCLUDED_FROM_STORE' | 'SHIPPING_ADDRESS_INCOMPLETE' | 'SHIPPING_COUNTRY_NOT_SERVED' | 'SHIPPING_METHOD_REQUIRED' | 'SHIPPING_RATE_UNAVAILABLE' | 'TAX_CHANGED' | 'UNKNOWN' | 'VARIANT_NOT_FOR_SALE_IN_CURRENCY' | 'VIEW_ONLY_ACCOUNT';
1704
1705
  /**
1705
1706
  * A merchant's publication state for a product that is launched but not (yet)
1706
1707
  * simply in stock. Not a stock figure: stock arriving does not end it — only
@@ -3916,6 +3917,7 @@ export type MeQuery = {
3916
3917
  emailAddress: string;
3917
3918
  phoneNumber: string | null;
3918
3919
  isB2B: boolean;
3920
+ isViewOnly: boolean;
3919
3921
  hasPassword: boolean;
3920
3922
  groups: Array<{
3921
3923
  id: string;
@@ -4292,6 +4294,63 @@ export type OrderByCodeQuery = {
4292
4294
  } & OrderFragment & OrderFulfillmentsFragment & OrderFulfillmentParcelsFragment & OrderPaymentTermsFragment & OrderDeliveryTermsFragment) | null;
4293
4295
  };
4294
4296
  export type OrderMoneyViewFragment = {
4297
+ basis: OrderMoneyBasis;
4298
+ currencyCode: CurrencyCode;
4299
+ subtotal: number;
4300
+ shippingTotal: number;
4301
+ totalExcludingTax: number;
4302
+ taxIncluded: boolean;
4303
+ taxTotal: number;
4304
+ rounding: number | null;
4305
+ total: number;
4306
+ totalBeforeRounding: number;
4307
+ reconciles: boolean;
4308
+ lines: Array<{
4309
+ orderLineId: string;
4310
+ quantity: number;
4311
+ taxRate: number;
4312
+ unitAmount: number | null;
4313
+ amount: number;
4314
+ }>;
4315
+ goodsAdjustments: Array<{
4316
+ key: string;
4317
+ description: string;
4318
+ amount: number;
4319
+ taxRate: number | null;
4320
+ }>;
4321
+ surcharges: Array<{
4322
+ key: string;
4323
+ description: string;
4324
+ amount: number;
4325
+ taxRate: number | null;
4326
+ }>;
4327
+ shipping: Array<{
4328
+ key: string;
4329
+ description: string;
4330
+ amount: number;
4331
+ taxRate: number | null;
4332
+ }>;
4333
+ shippingAdjustments: Array<{
4334
+ key: string;
4335
+ description: string;
4336
+ amount: number;
4337
+ taxRate: number | null;
4338
+ }>;
4339
+ taxes: Array<{
4340
+ taxRate: number;
4341
+ base: number;
4342
+ amount: number;
4343
+ }>;
4344
+ balance: {
4345
+ paid: number;
4346
+ giftCard: number;
4347
+ storeCredit: number;
4348
+ credited: number;
4349
+ stillToPay: number;
4350
+ stillToPayNote: OrderMoneyStillToPayNote | null;
4351
+ };
4352
+ };
4353
+ export type OrderMoneyViewLegacyFragment = {
4295
4354
  basis: OrderMoneyBasis;
4296
4355
  currencyCode: CurrencyCode;
4297
4356
  subtotal: number;
@@ -4357,6 +4416,16 @@ export type ActiveOrderMoneyViewQuery = {
4357
4416
  moneyView: OrderMoneyViewFragment;
4358
4417
  } | null;
4359
4418
  };
4419
+ export type ActiveOrderMoneyViewLegacyQueryVariables = Exact<{
4420
+ basis: OrderMoneyBasis;
4421
+ }>;
4422
+ export type ActiveOrderMoneyViewLegacyQuery = {
4423
+ activeOrder: {
4424
+ id: string;
4425
+ code: string;
4426
+ moneyView: OrderMoneyViewLegacyFragment;
4427
+ } | null;
4428
+ };
4360
4429
  export type OrderMoneyViewByCodeQueryVariables = Exact<{
4361
4430
  code: Scalars['String']['input'];
4362
4431
  basis: OrderMoneyBasis;
@@ -4368,6 +4437,17 @@ export type OrderMoneyViewByCodeQuery = {
4368
4437
  moneyView: OrderMoneyViewFragment;
4369
4438
  } | null;
4370
4439
  };
4440
+ export type OrderMoneyViewByCodeLegacyQueryVariables = Exact<{
4441
+ code: Scalars['String']['input'];
4442
+ basis: OrderMoneyBasis;
4443
+ }>;
4444
+ export type OrderMoneyViewByCodeLegacyQuery = {
4445
+ orderByCode: {
4446
+ id: string;
4447
+ code: string;
4448
+ moneyView: OrderMoneyViewLegacyFragment;
4449
+ } | null;
4450
+ };
4371
4451
  export type ActiveOrderAccessKeyQueryVariables = Exact<{
4372
4452
  [key: string]: never;
4373
4453
  }>;
@@ -4403,6 +4483,24 @@ export type CustomerOrdersWithMoneyViewQuery = {
4403
4483
  };
4404
4484
  } | null;
4405
4485
  };
4486
+ export type CustomerOrdersWithMoneyViewLegacyQueryVariables = Exact<{
4487
+ options?: InputMaybe<OrderListOptions>;
4488
+ basis: OrderMoneyBasis;
4489
+ }>;
4490
+ export type CustomerOrdersWithMoneyViewLegacyQuery = {
4491
+ activeCustomer: {
4492
+ orders: {
4493
+ totalItems: number;
4494
+ items: Array<({
4495
+ lines: Array<{
4496
+ id: string;
4497
+ backorderedQuantity: number;
4498
+ }>;
4499
+ moneyView: OrderMoneyViewLegacyFragment;
4500
+ } & OrderSummaryFragment & OrderFulfillmentParcelsFragment)>;
4501
+ };
4502
+ } | null;
4503
+ };
4406
4504
  export type FavoriteVariantIdsQueryVariables = Exact<{
4407
4505
  [key: string]: never;
4408
4506
  }>;