@ikas/api-client 1.0.64 → 1.0.66

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.
@@ -30,6 +30,7 @@ export declare type AbandonedCartFlow = {
30
30
  customerFilters?: Maybe<AbandonedCartFlowCustomerFilter>;
31
31
  flowId: Scalars['String'];
32
32
  mailSendDate?: Maybe<Scalars['Timestamp']>;
33
+ mailTemplateId?: Maybe<Scalars['String']>;
33
34
  mailTranslationId?: Maybe<Scalars['String']>;
34
35
  messageType?: Maybe<AbandonedCartSettingsNotificationTypeEnum>;
35
36
  recoverEmailStatus: CheckoutRecoveryEmailStatusEnum;
@@ -55,7 +56,9 @@ export declare type AddOrderInvoiceInput = {
55
56
  appId: Scalars['String'];
56
57
  /** It is the content of invoice. Is the entered value must be in base64 format. */
57
58
  base64?: InputMaybe<Scalars['String']>;
58
- /** 'It is data for create invoice. */
59
+ /** It is data for create invoice. */
60
+ createdAt?: InputMaybe<Scalars['Timestamp']>;
61
+ /** It is data for create invoice. */
59
62
  invoiceData?: InputMaybe<Scalars['JSON']>;
60
63
  /** It is the number of the order invoice. */
61
64
  invoiceNumber: Scalars['String'];
@@ -508,6 +511,7 @@ export declare enum CampaignCreatedForEnum {
508
511
  ABANDONED_CHECKOUT = "ABANDONED_CHECKOUT",
509
512
  CART = "CART",
510
513
  CUSTOMER_REVIEW = "CUSTOMER_REVIEW",
514
+ LOYALTY_SPEND = "LOYALTY_SPEND",
511
515
  MARKETING_CAMPAIGN = "MARKETING_CAMPAIGN"
512
516
  }
513
517
  export declare type CampaignDateRangeField = {
@@ -739,6 +743,7 @@ export declare type CancelFulfillmentInput = {
739
743
  lines?: InputMaybe<Array<CancelFulfillmentOrderLineInput>>;
740
744
  orderId: Scalars['String'];
741
745
  orderPackageId: Scalars['String'];
746
+ sourcePackageId?: InputMaybe<Scalars['String']>;
742
747
  };
743
748
  export declare type CancelFulfillmentOrderLineInput = {
744
749
  orderLineItemId: Scalars['String'];
@@ -1022,6 +1027,11 @@ export declare type CategoryTranslationInput = {
1022
1027
  /** It is the information in which language the translation is saved. */
1023
1028
  name?: InputMaybe<Scalars['String']>;
1024
1029
  };
1030
+ export declare type ChangeStockLocationInput = {
1031
+ orderId: Scalars['String'];
1032
+ orderLineItemIds: Array<Scalars['String']>;
1033
+ targetStockLocationId: Scalars['String'];
1034
+ };
1025
1035
  export declare type Checkout = {
1026
1036
  __typename?: 'Checkout';
1027
1037
  abandonedCheckoutFlows?: Maybe<Array<AbandonedCartFlow>>;
@@ -1564,6 +1574,60 @@ export declare enum CustomerGenderTypeEnum {
1564
1574
  MALE = "MALE",
1565
1575
  OTHER = "OTHER"
1566
1576
  }
1577
+ export declare type CustomerGroup = {
1578
+ __typename?: 'CustomerGroup';
1579
+ conditions?: Maybe<Array<CustomerGroupCondition>>;
1580
+ createdAt?: Maybe<Scalars['Timestamp']>;
1581
+ deleted: Scalars['Boolean'];
1582
+ id: Scalars['ID'];
1583
+ isAutomated?: Maybe<Scalars['Boolean']>;
1584
+ name: Scalars['String'];
1585
+ priceListId?: Maybe<Scalars['String']>;
1586
+ priceListRules?: Maybe<Array<CustomerPriceListRule>>;
1587
+ shouldMatchAllConditions?: Maybe<Scalars['Boolean']>;
1588
+ updatedAt?: Maybe<Scalars['Timestamp']>;
1589
+ };
1590
+ export declare type CustomerGroupCondition = {
1591
+ __typename?: 'CustomerGroupCondition';
1592
+ conditionType: CustomerGroupConditionTypeEnum;
1593
+ method?: Maybe<CustomerGroupConditionMethodEnum>;
1594
+ valueList: Array<Scalars['String']>;
1595
+ };
1596
+ export declare type CustomerGroupConditionInput = {
1597
+ conditionType: CustomerGroupConditionTypeEnum;
1598
+ method?: InputMaybe<CustomerGroupConditionMethodEnum>;
1599
+ valueList: Array<Scalars['String']>;
1600
+ };
1601
+ export declare enum CustomerGroupConditionMethodEnum {
1602
+ IN = "IN",
1603
+ NOT_IN = "NOT_IN"
1604
+ }
1605
+ export declare enum CustomerGroupConditionTypeEnum {
1606
+ ACCOUNT_STATUS = "ACCOUNT_STATUS",
1607
+ CREATED_AT = "CREATED_AT",
1608
+ CUSTOMER_ATTRIBUTE = "CUSTOMER_ATTRIBUTE",
1609
+ CUSTOMER_GROUP = "CUSTOMER_GROUP",
1610
+ EMAIL = "EMAIL",
1611
+ LAST_ORDERED_DATE = "LAST_ORDERED_DATE",
1612
+ ORDER_COUNT_RANGE = "ORDER_COUNT_RANGE",
1613
+ PREFERRED_LANGUAGE = "PREFERRED_LANGUAGE",
1614
+ REGISTRATION_SOURCE = "REGISTRATION_SOURCE",
1615
+ SUBSCRIPTION_STATUS = "SUBSCRIPTION_STATUS",
1616
+ TAG = "TAG",
1617
+ TOTAL_ORDER_PRICE_RANGE = "TOTAL_ORDER_PRICE_RANGE"
1618
+ }
1619
+ export declare type CustomerGroupInput = {
1620
+ conditions?: InputMaybe<Array<CustomerGroupConditionInput>>;
1621
+ createdAt?: InputMaybe<Scalars['Timestamp']>;
1622
+ deleted?: InputMaybe<Scalars['Boolean']>;
1623
+ id?: InputMaybe<Scalars['ID']>;
1624
+ isAutomated?: InputMaybe<Scalars['Boolean']>;
1625
+ name: Scalars['String'];
1626
+ priceListId?: InputMaybe<Scalars['String']>;
1627
+ priceListRules?: InputMaybe<Array<CustomerPriceListRuleInput>>;
1628
+ shouldMatchAllConditions?: InputMaybe<Scalars['Boolean']>;
1629
+ updatedAt?: InputMaybe<Scalars['Timestamp']>;
1630
+ };
1567
1631
  export declare type CustomerInput = {
1568
1632
  accountStatus?: InputMaybe<CustomerAccountStatusEnum>;
1569
1633
  addresses?: InputMaybe<Array<CustomerAddressInput>>;
@@ -1663,6 +1727,19 @@ export declare enum CustomerRegistrationSourceEnum {
1663
1727
  google = "google",
1664
1728
  twitch = "twitch"
1665
1729
  }
1730
+ /** CustomerSubscriptionPlanOrderPaymentStatusEnum */
1731
+ export declare enum CustomerSubscriptionPlanOrderPaymentStatusEnum {
1732
+ FAILED = "FAILED",
1733
+ PAID = "PAID",
1734
+ UNPAID = "UNPAID"
1735
+ }
1736
+ /** CustomerSubscriptionPlanOrderStatusEnum */
1737
+ export declare enum CustomerSubscriptionPlanOrderStatusEnum {
1738
+ CANCELLED = "CANCELLED",
1739
+ COMPLETED = "COMPLETED",
1740
+ PLANNED = "PLANNED",
1741
+ POSTPONED = "POSTPONED"
1742
+ }
1666
1743
  export declare type DateFilterInput = {
1667
1744
  /** `equal`. The filter used for equality. */
1668
1745
  eq?: InputMaybe<Scalars['Timestamp']>;
@@ -1739,6 +1816,13 @@ export declare type GenerateCouponInput = {
1739
1816
  usageLimit?: InputMaybe<Scalars['Int']>;
1740
1817
  usageLimitPerCustomer?: InputMaybe<Scalars['Int']>;
1741
1818
  };
1819
+ export declare type GenerateOrderPaymentLinkInput = {
1820
+ orderId: Scalars['String'];
1821
+ salesChannelId?: InputMaybe<Scalars['String']>;
1822
+ storefrontId?: InputMaybe<Scalars['String']>;
1823
+ storefrontRoutingId?: InputMaybe<Scalars['String']>;
1824
+ storefrontThemeId?: InputMaybe<Scalars['String']>;
1825
+ };
1742
1826
  export declare type GetImportJobDataResponse = {
1743
1827
  __typename?: 'GetImportJobDataResponse';
1744
1828
  data?: Maybe<Scalars['String']>;
@@ -1909,11 +1993,11 @@ export declare enum ImportTypeEnum {
1909
1993
  }
1910
1994
  export declare type Invoice = {
1911
1995
  __typename?: 'Invoice';
1912
- /** It is the id of the order invoice. */
1996
+ /** It is the app id where the merchant is registered and creates the order invoice. */
1913
1997
  appId: Scalars['String'];
1914
- /** It is the id of the order invoice. */
1998
+ /** It is the app name that created the order invoice. */
1915
1999
  appName: Scalars['String'];
1916
- /** It is the id of the order invoice. */
2000
+ /** It is the date the order invoice was created. */
1917
2001
  createdAt?: Maybe<Scalars['Timestamp']>;
1918
2002
  /** It is indicates that the invoice has the pdf. */
1919
2003
  hasPdf?: Maybe<Scalars['Boolean']>;
@@ -1921,9 +2005,9 @@ export declare type Invoice = {
1921
2005
  id: Scalars['String'];
1922
2006
  /** It is data of the invoice. */
1923
2007
  invoiceData?: Maybe<Scalars['JSON']>;
1924
- /** It is the id of the order invoice. */
2008
+ /** It is the number of the order invoice. */
1925
2009
  invoiceNumber: Scalars['String'];
1926
- /** It is the id of the order invoice. */
2010
+ /** It is the ikas app id that created the order invoice. */
1927
2011
  storeAppId: Scalars['String'];
1928
2012
  /** It is the type enum of the invoice. */
1929
2013
  type: InvoiceTypeEnum;
@@ -1938,6 +2022,7 @@ export declare type Language = {
1938
2022
  createdAt?: Maybe<Scalars['Timestamp']>;
1939
2023
  deleted: Scalars['Boolean'];
1940
2024
  id: Scalars['ID'];
2025
+ isFree?: Maybe<Scalars['Boolean']>;
1941
2026
  locale: Scalars['String'];
1942
2027
  name: Scalars['String'];
1943
2028
  updatedAt?: Maybe<Scalars['Timestamp']>;
@@ -2214,6 +2299,8 @@ export declare type MerchantResponse = {
2214
2299
  __typename?: 'MerchantResponse';
2215
2300
  /** Merchant's address information. */
2216
2301
  address?: Maybe<MerchantAddress>;
2302
+ /** Merchant's address information. */
2303
+ billingAddress?: Maybe<MerchantAddress>;
2217
2304
  /** The merchant staff's email address. */
2218
2305
  email: Scalars['String'];
2219
2306
  /** The merchant's first name. */
@@ -2282,6 +2369,7 @@ export declare type Mutation = {
2282
2369
  cancelFulfillment: Order;
2283
2370
  /** Use this mutation to cancel given order lines. */
2284
2371
  cancelOrderLine: Order;
2372
+ changeStockLocation: Order;
2285
2373
  /** Using this api, you can add payment features to a merchant app. */
2286
2374
  createMerchantAppPayment: MerchantAppPayment;
2287
2375
  /** Using this api, you can add payment features to a merchant app with app subscription id. */
@@ -2292,6 +2380,7 @@ export declare type Mutation = {
2292
2380
  /** Using this api, you can delete the categories of products. */
2293
2381
  deleteCategoryList: Scalars['Boolean'];
2294
2382
  deleteCouponList: Scalars['String'];
2383
+ deleteCustomerGroupList: Scalars['Boolean'];
2295
2384
  deleteCustomerList: Scalars['Boolean'];
2296
2385
  deleteGlobalTaxSettingsList: Scalars['Boolean'];
2297
2386
  deleteOrderTagList: Scalars['Boolean'];
@@ -2321,6 +2410,7 @@ export declare type Mutation = {
2321
2410
  deleteWebhook: Scalars['Boolean'];
2322
2411
  /** Use this mutation to fulfill order line items. */
2323
2412
  fulfillOrder: Order;
2413
+ generateOrderPaymentLink?: Maybe<Scalars['String']>;
2324
2414
  /** Using this api, you can collect demo day. */
2325
2415
  getAppDemoDay?: Maybe<Scalars['Float']>;
2326
2416
  getOrderInvoicePdfUrl?: Maybe<Scalars['String']>;
@@ -2330,8 +2420,8 @@ export declare type Mutation = {
2330
2420
  saveCampaign: Campaign;
2331
2421
  /** Using this api, you can update the categories of products. */
2332
2422
  saveCategory: Category;
2333
- /** Use this mutation to save customer by supplying the `CustomerInput` input. */
2334
2423
  saveCustomer: Customer;
2424
+ saveCustomerGroup: CustomerGroup;
2335
2425
  saveGlobalTaxSettings: GlobalTaxSettings;
2336
2426
  saveOrderTag: OrderTag;
2337
2427
  /** Use this mutation to create or update a product with provided input values. */
@@ -2399,6 +2489,9 @@ export declare type MutationcancelFulfillmentArgs = {
2399
2489
  export declare type MutationcancelOrderLineArgs = {
2400
2490
  input: CancelOrderLineInput;
2401
2491
  };
2492
+ export declare type MutationchangeStockLocationArgs = {
2493
+ input: ChangeStockLocationInput;
2494
+ };
2402
2495
  export declare type MutationcreateMerchantAppPaymentArgs = {
2403
2496
  input: MerchantAppPaymentInput;
2404
2497
  };
@@ -2417,6 +2510,9 @@ export declare type MutationdeleteCategoryListArgs = {
2417
2510
  export declare type MutationdeleteCouponListArgs = {
2418
2511
  idList: Array<Scalars['String']>;
2419
2512
  };
2513
+ export declare type MutationdeleteCustomerGroupListArgs = {
2514
+ idList: Array<Scalars['String']>;
2515
+ };
2420
2516
  export declare type MutationdeleteCustomerListArgs = {
2421
2517
  idList: Array<Scalars['String']>;
2422
2518
  };
@@ -2468,6 +2564,9 @@ export declare type MutationdeleteWebhookArgs = {
2468
2564
  export declare type MutationfulfillOrderArgs = {
2469
2565
  input: FulFillOrderInput;
2470
2566
  };
2567
+ export declare type MutationgenerateOrderPaymentLinkArgs = {
2568
+ input: GenerateOrderPaymentLinkInput;
2569
+ };
2471
2570
  export declare type MutationgetAppDemoDayArgs = {
2472
2571
  input: CreateMerchantAppPaymentWithSubscriptionInput;
2473
2572
  };
@@ -2489,6 +2588,9 @@ export declare type MutationsaveCategoryArgs = {
2489
2588
  export declare type MutationsaveCustomerArgs = {
2490
2589
  input: CustomerInput;
2491
2590
  };
2591
+ export declare type MutationsaveCustomerGroupArgs = {
2592
+ input: CustomerGroupInput;
2593
+ };
2492
2594
  export declare type MutationsaveGlobalTaxSettingsArgs = {
2493
2595
  input: GlobalTaxSettingsInput;
2494
2596
  };
@@ -2612,6 +2714,7 @@ export declare type Order = {
2612
2714
  /** It shows the number of orders given by the relevant customer. */
2613
2715
  customerOrderCount?: Maybe<Scalars['Float']>;
2614
2716
  customerSegments?: Maybe<Array<OrderCustomerSegment>>;
2717
+ customerSubscriptionPlans?: Maybe<Array<OrderCustomerSubscriptionPlan>>;
2615
2718
  deleted: Scalars['Boolean'];
2616
2719
  dueDate?: Maybe<Scalars['Timestamp']>;
2617
2720
  edited?: Maybe<Scalars['Boolean']>;
@@ -2629,6 +2732,7 @@ export declare type Order = {
2629
2732
  isGiftPackage?: Maybe<Scalars['Boolean']>;
2630
2733
  itemCount?: Maybe<Scalars['Float']>;
2631
2734
  lastActivityDate?: Maybe<Scalars['Timestamp']>;
2735
+ loyaltyLines?: Maybe<Array<OrderLoyaltyLine>>;
2632
2736
  marketingCampaignId?: Maybe<Scalars['String']>;
2633
2737
  merchantId: Scalars['String'];
2634
2738
  /** It is the reflection of the prices of the refunds and the items added later on the final order price. */
@@ -2665,6 +2769,7 @@ export declare type Order = {
2665
2769
  /** Information about the `salesChannel` where the order was created. */
2666
2770
  salesChannel: OrderSalesChannel;
2667
2771
  salesChannelId?: Maybe<Scalars['String']>;
2772
+ sessionId?: Maybe<Scalars['String']>;
2668
2773
  sessionInfo?: Maybe<OrderSessionInfo>;
2669
2774
  /** It is the shipping address of the order. */
2670
2775
  shippingAddress?: Maybe<OrderAddress>;
@@ -2992,13 +3097,25 @@ export declare type OrderCustomerSegment = {
2992
3097
  /** It is the customer's segment name */
2993
3098
  name: Scalars['String'];
2994
3099
  };
3100
+ export declare type OrderCustomerSubscriptionPlan = {
3101
+ __typename?: 'OrderCustomerSubscriptionPlan';
3102
+ /** It is the id of the customer subscription plan. */
3103
+ id: Scalars['String'];
3104
+ };
2995
3105
  export declare type OrderGiftCardLine = {
2996
3106
  __typename?: 'OrderGiftCardLine';
2997
3107
  amount: Scalars['Float'];
3108
+ appliedTransactions: Array<OrderGiftCardLineAppliedTransaction>;
2998
3109
  code: Scalars['String'];
2999
3110
  giftCardId: Scalars['String'];
3000
3111
  id: Scalars['String'];
3001
3112
  };
3113
+ export declare type OrderGiftCardLineAppliedTransaction = {
3114
+ __typename?: 'OrderGiftCardLineAppliedTransaction';
3115
+ amount: Scalars['Float'];
3116
+ id: Scalars['String'];
3117
+ type: TransactionTypeEnum;
3118
+ };
3002
3119
  export declare type OrderGiftPackageLine = {
3003
3120
  __typename?: 'OrderGiftPackageLine';
3004
3121
  /** Indicates whether the gift cost is refunded if the order is refunded. **isRefunded** returns `true` if the amount is refunded. */
@@ -3118,6 +3235,8 @@ export declare type OrderLineItem = {
3118
3235
  statusUpdatedAt?: Maybe<Scalars['Timestamp']>;
3119
3236
  /** It is the stock location id of the variant value in the order line item. */
3120
3237
  stockLocationId?: Maybe<Scalars['String']>;
3238
+ /** Information about the subscription plan of variant. */
3239
+ subscriptionPlan?: Maybe<OrderLineItemSubscriptionPlan>;
3121
3240
  /** It is the tax value of the order line item. */
3122
3241
  taxValue?: Maybe<Scalars['Float']>;
3123
3242
  /** It is the unit price of the order line item. */
@@ -3154,12 +3273,43 @@ export declare enum OrderLineItemStatusEnum {
3154
3273
  CANCEL_REQUESTED = "CANCEL_REQUESTED",
3155
3274
  DELIVERED = "DELIVERED",
3156
3275
  FULFILLED = "FULFILLED",
3276
+ PLANNED = "PLANNED",
3157
3277
  REFUNDED = "REFUNDED",
3158
3278
  REFUND_REJECTED = "REFUND_REJECTED",
3159
3279
  REFUND_REQUESTED = "REFUND_REQUESTED",
3160
3280
  REFUND_REQUEST_ACCEPTED = "REFUND_REQUEST_ACCEPTED",
3161
3281
  UNFULFILLED = "UNFULFILLED"
3162
3282
  }
3283
+ export declare type OrderLineItemSubscriptionPlan = {
3284
+ __typename?: 'OrderLineItemSubscriptionPlan';
3285
+ /** It is the id of subscription plan */
3286
+ id: Scalars['String'];
3287
+ /** It is the name of subscription plan. */
3288
+ name: Scalars['String'];
3289
+ /** It is the period of the subscription plan */
3290
+ period: OrderLineItemSubscriptionPlanPeriod;
3291
+ };
3292
+ export declare type OrderLineItemSubscriptionPlanPeriod = {
3293
+ __typename?: 'OrderLineItemSubscriptionPlanPeriod';
3294
+ /** It is the cut of day of subscription plan period */
3295
+ cutOffDay?: Maybe<Scalars['Float']>;
3296
+ /** It is the discount of subscription plan period */
3297
+ discount?: Maybe<SubscriptionPlanDiscount>;
3298
+ /** It is the duration unit of subscription plan period. */
3299
+ durationUnit: SubscriptionPlanDurationUnitTypeEnum;
3300
+ /** It is the duration value of subscription plan period. */
3301
+ durationValue: Scalars['Float'];
3302
+ /** It is the id of subscription plan period */
3303
+ id: Scalars['String'];
3304
+ /** It is the max orders of subscription plan period */
3305
+ maxOrders?: Maybe<Scalars['Float']>;
3306
+ /** It is the payment type of subscription plan */
3307
+ paymentType: SubscriptionPlanPaymentTypeEnum;
3308
+ /** It is the scheduled order day of subscription plan period. */
3309
+ scheduledOrderDay?: Maybe<Scalars['Float']>;
3310
+ /** It is the id of subscription plan period */
3311
+ title: Scalars['String'];
3312
+ };
3163
3313
  export declare type OrderLineOption = {
3164
3314
  __typename?: 'OrderLineOption';
3165
3315
  /** It is the name of order line option in the order line item. */
@@ -3185,6 +3335,7 @@ export declare type OrderLineOptionInput = {
3185
3335
  };
3186
3336
  export declare type OrderLineOptionValue = {
3187
3337
  __typename?: 'OrderLineOptionValue';
3338
+ applyAfterCampaign?: Maybe<Scalars['Boolean']>;
3188
3339
  name?: Maybe<Scalars['String']>;
3189
3340
  price?: Maybe<Scalars['Float']>;
3190
3341
  priceType?: Maybe<ProductOptionPriceTypeEnum>;
@@ -3356,6 +3507,14 @@ export declare type OrderLineVariantVariantValues = {
3356
3507
  /** It is the order of variant value. The variant value order starts from 0. */
3357
3508
  variantValueName?: Maybe<Scalars['String']>;
3358
3509
  };
3510
+ export declare type OrderLoyaltyLine = {
3511
+ __typename?: 'OrderLoyaltyLine';
3512
+ amount: Scalars['Float'];
3513
+ id: Scalars['String'];
3514
+ loyaltyProgramCustomerId: Scalars['String'];
3515
+ loyaltyProgramId: Scalars['String'];
3516
+ loyaltySpendingMethodId: Scalars['String'];
3517
+ };
3359
3518
  export declare type OrderPackage = {
3360
3519
  __typename?: 'OrderPackage';
3361
3520
  createdAt?: Maybe<Scalars['Timestamp']>;
@@ -3373,10 +3532,20 @@ export declare type OrderPackage = {
3373
3532
  orderPackageNumber: Scalars['String'];
3374
3533
  sourceId?: Maybe<Scalars['String']>;
3375
3534
  stockLocationId: Scalars['String'];
3535
+ subscriptionPlanOrder?: Maybe<OrderPackageCustomerSubscriptionPlanOrder>;
3376
3536
  /** It is the stock location id information where the package will be shipped. */
3377
3537
  trackingInfo?: Maybe<TrackingInfo>;
3378
3538
  updatedAt?: Maybe<Scalars['Timestamp']>;
3379
3539
  };
3540
+ export declare type OrderPackageCustomerSubscriptionPlanOrder = {
3541
+ __typename?: 'OrderPackageCustomerSubscriptionPlanOrder';
3542
+ customerSubscriptionPlanId: Scalars['String'];
3543
+ customerSubscriptionPlanOrderId: Scalars['String'];
3544
+ paymentDate: Scalars['Timestamp'];
3545
+ paymentStatus: CustomerSubscriptionPlanOrderPaymentStatusEnum;
3546
+ plannedDate: Scalars['Timestamp'];
3547
+ status: CustomerSubscriptionPlanOrderStatusEnum;
3548
+ };
3380
3549
  export declare enum OrderPackageFulfillStatusEnum {
3381
3550
  CANCELLED = "CANCELLED",
3382
3551
  CANCEL_REJECTED = "CANCEL_REJECTED",
@@ -3384,6 +3553,7 @@ export declare enum OrderPackageFulfillStatusEnum {
3384
3553
  DELIVERED = "DELIVERED",
3385
3554
  ERROR = "ERROR",
3386
3555
  FULFILLED = "FULFILLED",
3556
+ PLANNED = "PLANNED",
3387
3557
  READY_FOR_PICK_UP = "READY_FOR_PICK_UP",
3388
3558
  READY_FOR_SHIPMENT = "READY_FOR_SHIPMENT",
3389
3559
  REFUNDED = "REFUNDED",
@@ -3403,6 +3573,7 @@ export declare enum OrderPackageStatusEnum {
3403
3573
  PARTIALLY_FULFILLED = "PARTIALLY_FULFILLED",
3404
3574
  PARTIALLY_READY_FOR_SHIPMENT = "PARTIALLY_READY_FOR_SHIPMENT",
3405
3575
  PARTIALLY_REFUNDED = "PARTIALLY_REFUNDED",
3576
+ PLANNED = "PLANNED",
3406
3577
  READY_FOR_PICK_UP = "READY_FOR_PICK_UP",
3407
3578
  READY_FOR_SHIPMENT = "READY_FOR_SHIPMENT",
3408
3579
  REFUNDED = "REFUNDED",
@@ -3543,18 +3714,20 @@ export declare type OrderSessionInfo = {
3543
3714
  end?: Maybe<Scalars['Timestamp']>;
3544
3715
  host?: Maybe<Scalars['String']>;
3545
3716
  ip?: Maybe<Scalars['String']>;
3717
+ journeyId?: Maybe<Scalars['String']>;
3546
3718
  referer?: Maybe<Scalars['String']>;
3547
3719
  salesChannelId?: Maybe<Scalars['String']>;
3548
3720
  sessionId?: Maybe<Scalars['String']>;
3549
3721
  start?: Maybe<Scalars['Timestamp']>;
3550
3722
  storefrontId?: Maybe<Scalars['String']>;
3551
- trafficSource?: Maybe<OrderSessionInfoTrafficSource>;
3723
+ /** @deprecated Separated as new OrderSession model */
3724
+ trafficSource?: Maybe<OrderSessionTrafficSource>;
3552
3725
  userAgent?: Maybe<OrderSessionUserAgent>;
3553
3726
  utm?: Maybe<OrderSessionUTM>;
3554
3727
  visitorId?: Maybe<Scalars['String']>;
3555
3728
  };
3556
- export declare type OrderSessionInfoTrafficSource = {
3557
- __typename?: 'OrderSessionInfoTrafficSource';
3729
+ export declare type OrderSessionTrafficSource = {
3730
+ __typename?: 'OrderSessionTrafficSource';
3558
3731
  source?: Maybe<Scalars['String']>;
3559
3732
  type: SFAnalyticsTrafficSourceEnum;
3560
3733
  };
@@ -3942,6 +4115,8 @@ export declare type Product = {
3942
4115
  salesChannels?: Maybe<Array<ProductSalesChannel>>;
3943
4116
  /** Short description of the product. */
3944
4117
  shortDescription?: Maybe<Scalars['String']>;
4118
+ /** Subscription plan id of product */
4119
+ subscriptionPlanId?: Maybe<Scalars['String']>;
3945
4120
  /** List of product tag identifiers. */
3946
4121
  tagIds?: Maybe<Array<Scalars['String']>>;
3947
4122
  /** List of product tags. */
@@ -4210,6 +4385,7 @@ export declare type ProductInput = {
4210
4385
  /** List of sales channels of the product. */
4211
4386
  salesChannels?: InputMaybe<Array<ProductSalesChannelInput>>;
4212
4387
  shortDescription?: InputMaybe<Scalars['String']>;
4388
+ subscriptionPlanId?: InputMaybe<Scalars['String']>;
4213
4389
  tagIds?: InputMaybe<Array<Scalars['String']>>;
4214
4390
  translations?: InputMaybe<Array<ProductTranslationInput>>;
4215
4391
  type: ProductTypeEnum;
@@ -4220,6 +4396,7 @@ export declare type ProductInput = {
4220
4396
  };
4221
4397
  export declare type ProductOption = {
4222
4398
  __typename?: 'ProductOption';
4399
+ applyAfterCampaign?: Maybe<Scalars['Boolean']>;
4223
4400
  createdAt?: Maybe<Scalars['Timestamp']>;
4224
4401
  dateSettings?: Maybe<ProductOptionDateSettings>;
4225
4402
  deleted: Scalars['Boolean'];
@@ -4566,7 +4743,8 @@ export declare enum ProductTypeEnum {
4566
4743
  BUNDLE = "BUNDLE",
4567
4744
  DIGITAL = "DIGITAL",
4568
4745
  MEMBERSHIP = "MEMBERSHIP",
4569
- PHYSICAL = "PHYSICAL"
4746
+ PHYSICAL = "PHYSICAL",
4747
+ SUBSCRIPTION = "SUBSCRIPTION"
4570
4748
  }
4571
4749
  export declare type ProductUnit = {
4572
4750
  __typename?: 'ProductUnit';
@@ -4690,6 +4868,7 @@ export declare type PublicTransaction = {
4690
4868
  error?: Maybe<TransactionError>;
4691
4869
  gatewayReferenceId?: Maybe<Scalars['String']>;
4692
4870
  id: Scalars['ID'];
4871
+ lineItems?: Maybe<Array<TransactionOrderLineItem>>;
4693
4872
  orderId?: Maybe<Scalars['String']>;
4694
4873
  paymentGatewayCode?: Maybe<Scalars['String']>;
4695
4874
  paymentGatewayId: Scalars['String'];
@@ -4742,6 +4921,7 @@ export declare type Query = {
4742
4921
  */
4743
4922
  listCustomer: CustomerPaginationResponse;
4744
4923
  listCustomerAttribute: Array<CustomerAttribute>;
4924
+ listCustomerGroup: Array<CustomerGroup>;
4745
4925
  listDistrict: Array<District>;
4746
4926
  listGlobalTaxSettings: Array<GlobalTaxSettings>;
4747
4927
  listLanguage: Array<Language>;
@@ -4844,7 +5024,6 @@ export declare type QuerylistCargoCompanyArgs = {
4844
5024
  export declare type QuerylistCategoryArgs = {
4845
5025
  categoryPath?: InputMaybe<CategoryPathFilterInput>;
4846
5026
  id?: InputMaybe<StringFilterInput>;
4847
- name?: InputMaybe<StringFilterInput>;
4848
5027
  search?: InputMaybe<Scalars['String']>;
4849
5028
  updatedAt?: InputMaybe<DateFilterInput>;
4850
5029
  };
@@ -4882,6 +5061,12 @@ export declare type QuerylistCustomerArgs = {
4882
5061
  export declare type QuerylistCustomerAttributeArgs = {
4883
5062
  includeDeleted?: InputMaybe<Scalars['Boolean']>;
4884
5063
  };
5064
+ export declare type QuerylistCustomerGroupArgs = {
5065
+ id?: InputMaybe<StringFilterInput>;
5066
+ includeDeleted?: InputMaybe<Scalars['Boolean']>;
5067
+ name?: InputMaybe<StringFilterInput>;
5068
+ updatedAt?: InputMaybe<DateFilterInput>;
5069
+ };
4885
5070
  export declare type QuerylistDistrictArgs = {
4886
5071
  cityId: StringFilterInput;
4887
5072
  countryId?: InputMaybe<StringFilterInput>;
@@ -4909,7 +5094,6 @@ export declare type QuerylistMerchantSettingsArgs = {
4909
5094
  export declare type QuerylistOrderArgs = {
4910
5095
  branchId?: InputMaybe<StringFilterInput>;
4911
5096
  branchSessionId?: InputMaybe<StringFilterInput>;
4912
- closedAt?: InputMaybe<DateFilterInput>;
4913
5097
  customerEmail?: InputMaybe<StringFilterInput>;
4914
5098
  customerId?: InputMaybe<StringFilterInput>;
4915
5099
  id?: InputMaybe<StringFilterInput>;
@@ -4961,7 +5145,7 @@ export declare type QuerylistProductArgs = {
4961
5145
  includeDeleted?: InputMaybe<Scalars['Boolean']>;
4962
5146
  name?: InputMaybe<StringFilterInput>;
4963
5147
  pagination?: InputMaybe<PaginationInput>;
4964
- salesChannelIds?: InputMaybe<StringFilterInput>;
5148
+ salesChannelIds?: InputMaybe<SalesChannelFilterInput>;
4965
5149
  sku?: InputMaybe<StringFilterInput>;
4966
5150
  sort?: InputMaybe<Scalars['String']>;
4967
5151
  tagIds?: InputMaybe<StringFilterInput>;
@@ -4976,13 +5160,11 @@ export declare type QuerylistProductAttributeArgs = {
4976
5160
  };
4977
5161
  export declare type QuerylistProductBrandArgs = {
4978
5162
  id?: InputMaybe<StringFilterInput>;
4979
- name?: InputMaybe<StringFilterInput>;
4980
5163
  search?: InputMaybe<Scalars['String']>;
4981
5164
  updatedAt?: InputMaybe<DateFilterInput>;
4982
5165
  };
4983
5166
  export declare type QuerylistProductOptionSetArgs = {
4984
5167
  id?: InputMaybe<StringFilterInput>;
4985
- name?: InputMaybe<StringFilterInput>;
4986
5168
  search?: InputMaybe<Scalars['String']>;
4987
5169
  updatedAt?: InputMaybe<DateFilterInput>;
4988
5170
  };
@@ -5074,20 +5256,20 @@ export declare type QuerysearchProductsArgs = {
5074
5256
  input: SearchInput;
5075
5257
  };
5076
5258
  export declare enum SFAnalyticsTrafficSourceEnum {
5077
- ADS_OTHER = "ADS_OTHER",
5078
5259
  AFFILIATE = "AFFILIATE",
5079
5260
  BING_ADS = "BING_ADS",
5080
5261
  DIRECT = "DIRECT",
5081
5262
  DISPLAY = "DISPLAY",
5082
5263
  EMAIL = "EMAIL",
5083
5264
  FACEBOOK_ADS = "FACEBOOK_ADS",
5084
- GOOGLE_ADS = "GOOGLE_ADS",
5085
5265
  INSTAGRAM_ADS = "INSTAGRAM_ADS",
5086
5266
  ORGANIC_SEARCH = "ORGANIC_SEARCH",
5267
+ ORGANIC_SOCIAL = "ORGANIC_SOCIAL",
5087
5268
  OTHER = "OTHER",
5088
- PAID_TRAFFIC = "PAID_TRAFFIC",
5089
- REFERRAL = "REFERRAL",
5090
- SOCIAL = "SOCIAL"
5269
+ PAID_OTHER = "PAID_OTHER",
5270
+ PAID_SEARCH = "PAID_SEARCH",
5271
+ PAID_SOCIAL = "PAID_SOCIAL",
5272
+ REFERRAL = "REFERRAL"
5091
5273
  }
5092
5274
  export declare type SalesChannel = {
5093
5275
  __typename?: 'SalesChannel';
@@ -5105,6 +5287,11 @@ export declare type SalesChannel = {
5105
5287
  type: SalesChannelTypeEnum;
5106
5288
  updatedAt?: Maybe<Scalars['Timestamp']>;
5107
5289
  };
5290
+ export declare type SalesChannelFilterInput = {
5291
+ eq?: InputMaybe<Scalars['String']>;
5292
+ in?: InputMaybe<Array<Scalars['String']>>;
5293
+ nin?: InputMaybe<Array<Scalars['String']>>;
5294
+ };
5108
5295
  export declare type SalesChannelInput = {
5109
5296
  /** The sales channel name field. */
5110
5297
  name?: InputMaybe<Scalars['String']>;
@@ -5456,6 +5643,24 @@ export declare type SearchProductStockLocation = {
5456
5643
  stockCount: Scalars['Float'];
5457
5644
  stockLocationId: Scalars['String'];
5458
5645
  };
5646
+ export declare type SearchProductSubscriptionPlan = {
5647
+ __typename?: 'SearchProductSubscriptionPlan';
5648
+ name: Scalars['String'];
5649
+ periods: Array<SearchProductSubscriptionPlanPeriod>;
5650
+ subscriptionPlanId: Scalars['String'];
5651
+ };
5652
+ export declare type SearchProductSubscriptionPlanDiscount = {
5653
+ __typename?: 'SearchProductSubscriptionPlanDiscount';
5654
+ amount: Scalars['Float'];
5655
+ type: OrderAmountTypeEnum;
5656
+ };
5657
+ export declare type SearchProductSubscriptionPlanPeriod = {
5658
+ __typename?: 'SearchProductSubscriptionPlanPeriod';
5659
+ discount?: Maybe<SearchProductSubscriptionPlanDiscount>;
5660
+ id: Scalars['String'];
5661
+ maxOrders?: Maybe<Scalars['Float']>;
5662
+ paymentType: SubscriptionPlanPaymentTypeEnum;
5663
+ };
5459
5664
  export declare type SearchProductTag = {
5460
5665
  __typename?: 'SearchProductTag';
5461
5666
  id: Scalars['String'];
@@ -5482,6 +5687,7 @@ export declare type SearchVariant = {
5482
5687
  sellIfOutOfStock?: Maybe<Scalars['Boolean']>;
5483
5688
  sku?: Maybe<Scalars['String']>;
5484
5689
  stocks?: Maybe<Array<SearchProductStockLocation>>;
5690
+ subscriptionPlan?: Maybe<SearchProductSubscriptionPlan>;
5485
5691
  unit?: Maybe<VariantUnitModel>;
5486
5692
  variantValues?: Maybe<Array<SearchVariationValueRelation>>;
5487
5693
  weight?: Maybe<Scalars['Float']>;
@@ -5517,6 +5723,7 @@ export declare type ShippingSettings = {
5517
5723
  salesChannelId: Scalars['String'];
5518
5724
  shippingZones: Array<ShippingZone>;
5519
5725
  stockLocations?: Maybe<Array<ShippingSettingsStockLocation>>;
5726
+ translations?: Maybe<Array<ShippingSettingsTranslation>>;
5520
5727
  type: ShippingSettingsType;
5521
5728
  updatedAt?: Maybe<Scalars['Timestamp']>;
5522
5729
  zoneName: Scalars['String'];
@@ -5527,11 +5734,21 @@ export declare type ShippingSettingsStockLocation = {
5527
5734
  order: Scalars['Float'];
5528
5735
  stockLocationId: Scalars['String'];
5529
5736
  };
5737
+ export declare type ShippingSettingsTranslation = {
5738
+ __typename?: 'ShippingSettingsTranslation';
5739
+ locale: Scalars['String'];
5740
+ zoneRate?: Maybe<Array<ShippingSettingsZoneRateTranslation>>;
5741
+ };
5530
5742
  /** ShippingSettingsType */
5531
5743
  export declare enum ShippingSettingsType {
5532
5744
  LOCAL_DELIVERY = "LOCAL_DELIVERY",
5533
5745
  SHIPMENT = "SHIPMENT"
5534
5746
  }
5747
+ export declare type ShippingSettingsZoneRateTranslation = {
5748
+ __typename?: 'ShippingSettingsZoneRateTranslation';
5749
+ id: Scalars['String'];
5750
+ rateName: Scalars['String'];
5751
+ };
5535
5752
  export declare type ShippingZone = {
5536
5753
  __typename?: 'ShippingZone';
5537
5754
  countryId: Scalars['String'];
@@ -5869,14 +6086,6 @@ export declare type StringFilterInput = {
5869
6086
  eq?: InputMaybe<Scalars['String']>;
5870
6087
  /** Returns a boolean indicating whether a specified value is in an array. */
5871
6088
  in?: InputMaybe<Array<Scalars['String']>>;
5872
- /**
5873
- * It allows using regex code in queries.
5874
- * The following example matches all documents where the name field is like "%AAA":
5875
- * :::note
5876
- * Example usage: merchantId: { like: AAA }.
5877
- * :::
5878
- */
5879
- like?: InputMaybe<Scalars['String']>;
5880
6089
  /** `not equal`. The filter used for not equality. */
5881
6090
  ne?: InputMaybe<Scalars['String']>;
5882
6091
  /** Returns a boolean indicating whether a specified value is not in an array. */
@@ -5902,6 +6111,23 @@ export declare enum SubscriptionPeriodEnum {
5902
6111
  ONE_TIME = "ONE_TIME",
5903
6112
  YEARLY = "YEARLY"
5904
6113
  }
6114
+ export declare type SubscriptionPlanDiscount = {
6115
+ __typename?: 'SubscriptionPlanDiscount';
6116
+ amount: Scalars['Float'];
6117
+ type: OrderAmountTypeEnum;
6118
+ };
6119
+ /** SubscriptionPlanDurationUnitTypeEnum */
6120
+ export declare enum SubscriptionPlanDurationUnitTypeEnum {
6121
+ DAY = "DAY",
6122
+ MONTH = "MONTH",
6123
+ WEEK = "WEEK",
6124
+ YEAR = "YEAR"
6125
+ }
6126
+ /** SubscriptionPlanPaymentTypeEnum */
6127
+ export declare enum SubscriptionPlanPaymentTypeEnum {
6128
+ POST_PAID = "POST_PAID",
6129
+ PRE_PAID = "PRE_PAID"
6130
+ }
5905
6131
  export declare enum SubscriptionPriceCurrencyEnum {
5906
6132
  EUR = "EUR",
5907
6133
  TRY = "TRY",
@@ -6065,6 +6291,25 @@ export declare type TransactionInstallmentPrice = {
6065
6291
  rate?: Maybe<Scalars['Float']>;
6066
6292
  totalPrice?: Maybe<Scalars['Float']>;
6067
6293
  };
6294
+ export declare type TransactionOrderLineItem = {
6295
+ __typename?: 'TransactionOrderLineItem';
6296
+ finalPrice?: Maybe<Scalars['Float']>;
6297
+ id: Scalars['String'];
6298
+ price?: Maybe<Scalars['Float']>;
6299
+ quantity: Scalars['Float'];
6300
+ taxValue?: Maybe<Scalars['Float']>;
6301
+ variant?: Maybe<TransactionOrderLineVariant>;
6302
+ };
6303
+ export declare type TransactionOrderLineVariant = {
6304
+ __typename?: 'TransactionOrderLineVariant';
6305
+ id?: Maybe<Scalars['String']>;
6306
+ mainImageId?: Maybe<Scalars['String']>;
6307
+ name?: Maybe<Scalars['String']>;
6308
+ productId?: Maybe<Scalars['String']>;
6309
+ sku?: Maybe<Scalars['String']>;
6310
+ slug?: Maybe<Scalars['String']>;
6311
+ type?: Maybe<Scalars['String']>;
6312
+ };
6068
6313
  export declare type TransactionPaymentMethodDetail = {
6069
6314
  __typename?: 'TransactionPaymentMethodDetail';
6070
6315
  bankName?: Maybe<Scalars['String']>;
@@ -6184,6 +6429,8 @@ export declare type Variant = {
6184
6429
  /** SKU of the variant. */
6185
6430
  sku?: Maybe<Scalars['String']>;
6186
6431
  stocks?: Maybe<Array<ProductStockLocation>>;
6432
+ /** Subscription plan id of product */
6433
+ subscriptionPlanId?: Maybe<Scalars['String']>;
6187
6434
  /** Translations for the product. */
6188
6435
  unit?: Maybe<VariantUnitModel>;
6189
6436
  updatedAt?: Maybe<Scalars['Timestamp']>;
@@ -6206,6 +6453,7 @@ export declare type VariantInput = {
6206
6453
  prices: Array<ProductPriceInput>;
6207
6454
  sellIfOutOfStock?: InputMaybe<Scalars['Boolean']>;
6208
6455
  sku?: InputMaybe<Scalars['String']>;
6456
+ subscriptionPlanId?: InputMaybe<Scalars['String']>;
6209
6457
  unit?: InputMaybe<VariantUnitModelInput>;
6210
6458
  updatedAt?: InputMaybe<Scalars['Timestamp']>;
6211
6459
  variantValueIds?: InputMaybe<Array<VariantValueRelationInput>>;