arky-sdk 0.3.120 → 0.3.121

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/types.cjs CHANGED
@@ -7,37 +7,28 @@ var PaymentMethodType = /* @__PURE__ */ ((PaymentMethodType2) => {
7
7
  PaymentMethodType2["Free"] = "FREE";
8
8
  return PaymentMethodType2;
9
9
  })(PaymentMethodType || {});
10
- var CollectionEntryType = /* @__PURE__ */ ((CollectionEntryType2) => {
11
- CollectionEntryType2["CONTENT"] = "CONTENT";
12
- CollectionEntryType2["SERVICE_CATEGORY"] = "SERVICE_CATEGORY";
13
- CollectionEntryType2["PROVIDER_CATEGORY"] = "PROVIDER_CATEGORY";
14
- CollectionEntryType2["PRODUCT_CATEGORY"] = "PRODUCT_CATEGORY";
15
- CollectionEntryType2["EMAIL_FORGOT_PASSWORD"] = "EMAIL_FORGOT_PASSWORD";
16
- CollectionEntryType2["EMAIL_USER_CONFIRM"] = "EMAIL_USER_CONFIRM";
17
- CollectionEntryType2["EMAIL_USER_INVITATION"] = "EMAIL_USER_INVITATION";
18
- CollectionEntryType2["EMAIL_ORDER_STATUS_UPDATE"] = "EMAIL_ORDER_STATUS_UPDATE";
19
- CollectionEntryType2["EMAIL_RESERVATION_BUSINESS_STATUS_UPDATE"] = "EMAIL_RESERVATION_BUSINESS_STATUS_UPDATE";
20
- CollectionEntryType2["EMAIL_RESERVATION_CUSTOMER_STATUS_UPDATE"] = "EMAIL_RESERVATION_CUSTOMER_STATUS_UPDATE";
21
- CollectionEntryType2["NEWSLETTER_POST"] = "NEWSLETTER_POST";
22
- CollectionEntryType2["NEWSLETTER_ENTRY"] = "NEWSLETTER_ENTRY";
23
- return CollectionEntryType2;
24
- })(CollectionEntryType || {});
25
- var CollectionType = /* @__PURE__ */ ((CollectionType2) => {
26
- CollectionType2["SINGLE"] = "SINGLE";
27
- CollectionType2["CONTENT"] = "CONTENT";
28
- CollectionType2["EMAIL_TEMPLATES"] = "EMAIL_TEMPLATES";
29
- CollectionType2["SERVICE_CATEGORIES"] = "SERVICE_CATEGORIES";
30
- CollectionType2["PROVIDER_CATEGORIES"] = "PROVIDER_CATEGORIES";
31
- CollectionType2["PRODUCT_CATEGORIES"] = "PRODUCT_CATEGORIES";
32
- CollectionType2["NEWSLETTER"] = "NEWSLETTER";
33
- CollectionType2["NEWSLETTER_SEGMENTS"] = "NEWSLETTER_SEGMENTS";
34
- CollectionType2["SERVICE"] = "SERVICE";
35
- CollectionType2["PRODUCT"] = "PRODUCT";
36
- return CollectionType2;
37
- })(CollectionType || {});
10
+ var NodeType = /* @__PURE__ */ ((NodeType2) => {
11
+ NodeType2["CONTENT"] = "CONTENT";
12
+ NodeType2["CATEGORY"] = "CATEGORY";
13
+ NodeType2["SERVICE_CATEGORY"] = "SERVICE_CATEGORY";
14
+ NodeType2["PROVIDER_CATEGORY"] = "PROVIDER_CATEGORY";
15
+ NodeType2["PRODUCT_CATEGORY"] = "PRODUCT_CATEGORY";
16
+ NodeType2["EMAIL_TEMPLATE"] = "EMAIL_TEMPLATE";
17
+ NodeType2["EMAIL_FORGOT_PASSWORD"] = "EMAIL_FORGOT_PASSWORD";
18
+ NodeType2["EMAIL_USER_CONFIRM"] = "EMAIL_USER_CONFIRM";
19
+ NodeType2["EMAIL_USER_INVITATION"] = "EMAIL_USER_INVITATION";
20
+ NodeType2["EMAIL_ORDER_STATUS_UPDATE"] = "EMAIL_ORDER_STATUS_UPDATE";
21
+ NodeType2["EMAIL_RESERVATION_BUSINESS_STATUS_UPDATE"] = "EMAIL_RESERVATION_BUSINESS_STATUS_UPDATE";
22
+ NodeType2["EMAIL_RESERVATION_CUSTOMER_STATUS_UPDATE"] = "EMAIL_RESERVATION_CUSTOMER_STATUS_UPDATE";
23
+ NodeType2["NEWSLETTER"] = "NEWSLETTER";
24
+ NodeType2["NEWSLETTER_POST"] = "NEWSLETTER_POST";
25
+ NodeType2["NEWSLETTER_SEGMENT"] = "NEWSLETTER_SEGMENT";
26
+ NodeType2["NEWSLETTER_ENTRY"] = "NEWSLETTER_ENTRY";
27
+ NodeType2["FORM"] = "FORM";
28
+ return NodeType2;
29
+ })(NodeType || {});
38
30
 
39
- exports.CollectionEntryType = CollectionEntryType;
40
- exports.CollectionType = CollectionType;
31
+ exports.NodeType = NodeType;
41
32
  exports.PaymentMethodType = PaymentMethodType;
42
33
  //# sourceMappingURL=types.cjs.map
43
34
  //# sourceMappingURL=types.cjs.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/types/index.ts"],"names":["PaymentMethodType","CollectionEntryType","CollectionType"],"mappings":";;;AA4CO,IAAK,iBAAA,qBAAAA,kBAAAA,KAAL;AACN,EAAAA,mBAAA,MAAA,CAAA,GAAO,MAAA;AACP,EAAAA,mBAAA,YAAA,CAAA,GAAa,aAAA;AACb,EAAAA,mBAAA,MAAA,CAAA,GAAO,MAAA;AAHI,EAAA,OAAAA,kBAAAA;AAAA,CAAA,EAAA,iBAAA,IAAA,EAAA;AAqTL,IAAK,mBAAA,qBAAAC,oBAAAA,KAAL;AACN,EAAAA,qBAAA,SAAA,CAAA,GAAU,SAAA;AACV,EAAAA,qBAAA,kBAAA,CAAA,GAAmB,kBAAA;AACnB,EAAAA,qBAAA,mBAAA,CAAA,GAAoB,mBAAA;AACpB,EAAAA,qBAAA,kBAAA,CAAA,GAAmB,kBAAA;AACnB,EAAAA,qBAAA,uBAAA,CAAA,GAAwB,uBAAA;AACxB,EAAAA,qBAAA,oBAAA,CAAA,GAAqB,oBAAA;AACrB,EAAAA,qBAAA,uBAAA,CAAA,GAAwB,uBAAA;AACxB,EAAAA,qBAAA,2BAAA,CAAA,GAA4B,2BAAA;AAC5B,EAAAA,qBAAA,0CAAA,CAAA,GAA2C,0CAAA;AAC3C,EAAAA,qBAAA,0CAAA,CAAA,GAA2C,0CAAA;AAC3C,EAAAA,qBAAA,iBAAA,CAAA,GAAkB,iBAAA;AAClB,EAAAA,qBAAA,kBAAA,CAAA,GAAmB,kBAAA;AAZR,EAAA,OAAAA,oBAAAA;AAAA,CAAA,EAAA,mBAAA,IAAA,EAAA;AAeL,IAAK,cAAA,qBAAAC,eAAAA,KAAL;AACN,EAAAA,gBAAA,QAAA,CAAA,GAAS,QAAA;AACT,EAAAA,gBAAA,SAAA,CAAA,GAAU,SAAA;AACV,EAAAA,gBAAA,iBAAA,CAAA,GAAkB,iBAAA;AAClB,EAAAA,gBAAA,oBAAA,CAAA,GAAqB,oBAAA;AACrB,EAAAA,gBAAA,qBAAA,CAAA,GAAsB,qBAAA;AACtB,EAAAA,gBAAA,oBAAA,CAAA,GAAqB,oBAAA;AACrB,EAAAA,gBAAA,YAAA,CAAA,GAAa,YAAA;AACb,EAAAA,gBAAA,qBAAA,CAAA,GAAsB,qBAAA;AACtB,EAAAA,gBAAA,SAAA,CAAA,GAAU,SAAA;AACV,EAAAA,gBAAA,SAAA,CAAA,GAAU,SAAA;AAVC,EAAA,OAAAA,eAAAA;AAAA,CAAA,EAAA,cAAA,IAAA,EAAA","file":"types.cjs","sourcesContent":["export * from './api';\n\nexport interface PaymentRefund {\n\tid: string;\n\tentity: string;\n\ttotal: number;\n\tproviderRefundId?: string;\n\tstatus: string;\n\tcreatedAt: number;\n}\n\nexport interface Payment {\n\tcurrency: string;\n\tmarket: string;\n\tsubtotal: number;\n\tshipping: number;\n\tdiscount: number;\n\ttotal: number;\n\tpaid: number;\n\ttax?: {\n\t\tamount: number;\n\t\tmodeSnapshot?: string;\n\t\trateBps: number;\n\t\tlines: Array<{ rateBps: number; amount: number; label?: string; scope?: string }>;\n\t};\n\tpromoCode?: {\n\t\tid: string;\n\t\tcode: string;\n\t\ttype: string;\n\t\tvalue: number;\n\t};\n\ttype: PaymentMethodType;\n\tprovider?: {\n\t\tcustomerId: string;\n\t\tpaymentIntentId?: string;\n\t\tsubscriptionId?: string;\n\t\tpriceId?: string;\n\t};\n\trefunds: PaymentRefund[];\n\tzoneId?: string;\n\tpaymentMethodId?: string;\n\tshippingMethodId?: string;\n}\n\nexport enum PaymentMethodType {\n\tCash = \"CASH\",\n\tCreditCard = \"CREDIT_CARD\",\n\tFree = \"FREE\",\n}\n\nexport interface PromoCodeValidation {\n\tpromoCodeId: string;\n\tcode: string;\n\tdiscounts: any[];\n\tconditions: any[];\n}\n\nexport interface Quote {\n\tmarket: string;\n\tzone: Zone;\n\tsubtotal: number;\n\tshipping: number;\n\tdiscount: number;\n\ttax: number;\n\ttotal: number;\n\tshippingMethod: ShippingMethod | null;\n\tpaymentMethod: PaymentMethod | null;\n\tpromoCode: PromoCodeValidation | null;\n\tpayment: Payment;\n\tchargeAmount: number;\n\tid?: string;\n\texpiresAt?: number;\n}\n\n\nexport interface Price {\n\tmarket: string;\n\tamount: number;\n\tcompareAt?: number;\n}\n\nexport interface Location {\n\tcountry?: string | null;\n\taddress?: string | null;\n\tcity?: string | null;\n\tstate?: string | null;\n\tpostalCode?: string | null;\n\tcoordinates?: { lat: number; lon: number } | null;\n}\n\nexport interface EshopCartItem {\n\tid: string;\n\tproductId: string;\n\tvariantId: string;\n\tproductName: string;\n\tproductSlug: string;\n\tvariantAttributes: Record<string, any>;\n\tprice: Price;\n\tquantity: number;\n\taddedAt: number;\n}\n\nexport interface ReservationCartItem {\n\tid: string;\n\tserviceId: string;\n\tserviceName: string;\n\tdate: string;\n\tfrom: number;\n\tto: number;\n\ttimeText: string;\n\tproviderId?: string;\n\tblocks: any[];\n}\n\nexport interface PaymentProviderConfig {\n\ttype: \"STRIPE\";\n\tpublicKey: string;\n\tsecretKey: string;\n\twebhookSecret: string;\n}\n\nexport interface ShippingWeightTier {\n\tupToGrams: number;\n\tamount: number;\n}\n\nexport interface PaymentMethod {\n\tid: string;\n\ttype: PaymentMethodType;\n}\n\nexport interface ShippingMethod {\n\tid: string;\n\ttaxable: boolean;\n\tetaText: string;\n\tpickupLocation?: Location;\n\tamount: number;\n\tfreeAbove?: number;\n\tweightTiers?: ShippingWeightTier[];\n}\n\nexport type ZoneScope = \"ORDER\" | \"RESERVATION\";\n\nexport interface Zone {\n\tid: string;\n\tmarketId: string;\n\tscope: ZoneScope;\n\tcountries: string[];\n\tstates: string[];\n\tpostalCodes: string[];\n\ttaxBps: number;\n\tpaymentMethods: PaymentMethod[];\n\tshippingMethods: ShippingMethod[];\n}\n\nexport interface Market {\n\tid: string;\n\tcurrency: string;\n\ttaxMode: \"EXCLUSIVE\" | \"INCLUSIVE\";\n}\n\n\nexport interface Language {\n\tid: string;\n}\n\nexport interface BusinessEmails {\n\tbilling: string;\n\tsupport: string;\n}\n\nexport interface OrderConfigs {\n\tisEmailRequired: boolean;\n\tisPhoneRequired: boolean;\n}\n\nexport interface BusinessReservationConfigs {\n\tisEmailRequired: boolean;\n\tisPhoneRequired: boolean;\n}\n\nexport interface BusinessConfig {\n\tlanguages: Language[];\n\tmarkets: Market[];\n\tzones: Zone[];\n\tbuildHooks: string[];\n\twebhooks: any[];\n\torderBlocks: any[];\n\treservationBlocks: any[];\n\torderConfigs: OrderConfigs;\n\treservationConfigs: BusinessReservationConfigs;\n\tpaymentProvider?: PaymentProviderConfig;\n\taiProvider?: any;\n\temails: BusinessEmails;\n}\n\nexport interface Business {\n\tid: string;\n\tname: string;\n\tconfigs?: BusinessConfig;\n}\n\nexport interface EshopStoreState {\n\tbusinessId: string;\n\tselectedShippingMethodId: string | null;\n\tuserToken: string | null;\n\tprocessingCheckout: boolean;\n\tloading: boolean;\n\terror: string | null;\n\tphoneNumber: string;\n\tphoneError: string | null;\n\tverificationCode: string;\n\tverifyError: string | null;\n}\n\nexport interface Block {\n\tid: string;\n\tkey: string;\n\ttype: string;\n\tproperties?: any;\n\tvalue?: any;\n}\n\nexport interface Seo {\n\tslug: Record<string, string>;\n\tmetaTitle: Record<string, string>;\n\tmetaDescription: Record<string, string>;\n\tcanonicalUrl: Record<string, string>;\n\togImage: string;\n}\n\nexport interface MediaResolution {\n\tid: string;\n\tsize: string;\n\turl: string;\n}\n\nexport interface Media {\n\tid: string;\n\tresolutions: { [key: string]: MediaResolution };\n\tmimeType: string;\n\ttitle?: string | null;\n\tdescription?: string | null;\n\talt?: string | null;\n\towner: string;\n\tmetadata?: string | null;\n\tuploadedAt: string;\n\tseo: Seo;\n}\n\nexport interface ApiResponse<T> {\n\tsuccess: boolean;\n\tdata?: T;\n\terror?: string;\n\tcursor?: string;\n\ttotal?: number;\n}\n\nexport interface PaginatedResponse<T> {\n\tdata: T[];\n\tmeta?: {\n\t\ttotal: number;\n\t\tpage: number;\n\t\tper_page: number;\n\t};\n}\n\nexport interface ReservationStoreState {\n\tcurrentStep: number;\n\ttotalSteps: number;\n\tsteps: Record<number, { name: string; labelKey: string }>;\n\tweekdays: string[];\n\tmonthYear: string;\n\tdays: any[];\n\tcurrent: Date;\n\tselectedDate: string | null;\n\tslots: any[];\n\tselectedSlot: any | null;\n\tselectedProvider: any | null;\n\tproviders: any[];\n\tloading: boolean;\n\tstartDate: string | null;\n\tendDate: string | null;\n\tphoneNumber: string;\n\tphoneError: string | null;\n\tphoneSuccess: string | null;\n\tverificationCode: string;\n\tverifyError: string | null;\n\tisPhoneVerified: boolean;\n\tisSendingCode: boolean;\n\tisVerifying: boolean;\n\tcodeSentAt: number | null;\n\tcanResendAt: number | null;\n\tguestToken: string | null;\n\tservice: any | null;\n\tbusiness: Business | null;\n\tcurrency: string;\n\treservationBlocks: Block[];\n\tapiUrl: string;\n\tbusinessId: string;\n\ttimezone: string;\n\ttzGroups: any;\n\titems: ReservationCartItem[];\n\tallowedPaymentMethods: string[];\n\tpaymentConfig: {\n\t\tprovider: PaymentProviderConfig | null;\n\t\tenabled: boolean;\n\t};\n}\n\nexport interface StatusEvent {\n\tid: string;\n\tchangedBy: 'BUSINESS' | 'USER' | 'SYSTEM';\n\tuserId?: string;\n\tstatus: string;\n\tnote?: string;\n\ttimestamp: number;\n}\n\nexport interface ReservationItem {\n\tid: string;\n\tserviceId: string;\n\tproviderId: string;\n\tbusinessId: string;\n\treservationId: string;\n\tuserId: string;\n\tfrom: number;\n\tto: number;\n\tblocks: Block[];\n\tprice: Price;\n}\n\nexport interface Reservation {\n\tid: string;\n\tnumber: string;\n\tuserId: string;\n\tblocks: Block[];\n\tbusinessId: string;\n\tstatuses: StatusEvent[];\n\tserviceIds: string[];\n\tproviderIds: string[];\n\tpayment: Payment;\n\tbusiness?: Business;\n\tuser?: any;\n\titems: ReservationItem[];\n\temail?: string;\n\tphone?: string;\n\tcreatedAt: number;\n\tlastModified: number;\n}\n\n// ===== CMS Types =====\n\nexport enum CollectionEntryType {\n\tCONTENT = 'CONTENT',\n\tSERVICE_CATEGORY = 'SERVICE_CATEGORY',\n\tPROVIDER_CATEGORY = 'PROVIDER_CATEGORY',\n\tPRODUCT_CATEGORY = 'PRODUCT_CATEGORY',\n\tEMAIL_FORGOT_PASSWORD = 'EMAIL_FORGOT_PASSWORD',\n\tEMAIL_USER_CONFIRM = 'EMAIL_USER_CONFIRM',\n\tEMAIL_USER_INVITATION = 'EMAIL_USER_INVITATION',\n\tEMAIL_ORDER_STATUS_UPDATE = 'EMAIL_ORDER_STATUS_UPDATE',\n\tEMAIL_RESERVATION_BUSINESS_STATUS_UPDATE = 'EMAIL_RESERVATION_BUSINESS_STATUS_UPDATE',\n\tEMAIL_RESERVATION_CUSTOMER_STATUS_UPDATE = 'EMAIL_RESERVATION_CUSTOMER_STATUS_UPDATE',\n\tNEWSLETTER_POST = 'NEWSLETTER_POST',\n\tNEWSLETTER_ENTRY = 'NEWSLETTER_ENTRY',\n}\n\nexport enum CollectionType {\n\tSINGLE = 'SINGLE',\n\tCONTENT = 'CONTENT',\n\tEMAIL_TEMPLATES = 'EMAIL_TEMPLATES',\n\tSERVICE_CATEGORIES = 'SERVICE_CATEGORIES',\n\tPROVIDER_CATEGORIES = 'PROVIDER_CATEGORIES',\n\tPRODUCT_CATEGORIES = 'PRODUCT_CATEGORIES',\n\tNEWSLETTER = 'NEWSLETTER',\n\tNEWSLETTER_SEGMENTS = 'NEWSLETTER_SEGMENTS',\n\tSERVICE = 'SERVICE',\n\tPRODUCT = 'PRODUCT',\n}\n\nexport interface CollectionConfig {\n\tisPubliclyReadable: boolean;\n\tisPubliclyWritable: boolean;\n\tisSubmissionEnabled: boolean;\n\tisCaptchaRequired: boolean;\n\tnotificationEmails: string[];\n\tunsubscribeUrl: string | null;\n}\n\nexport interface Collection {\n\tid: string;\n\tname: string;\n\tbusinessId: string;\n\ttype: CollectionType;\n\tblocks: Block[];\n\tconfig: CollectionConfig;\n\tentity: string;\n\tstatuses: StatusEvent[];\n\tseo: Seo;\n}\n\nexport interface CollectionEntry {\n\tid: string;\n\tname: Record<string, string>;\n\tcollectionId: string;\n\tbusinessId: string;\n\ttype: CollectionEntryType;\n\tblocks: Block[];\n\tstatuses: StatusEvent[];\n\tprops?: any;\n\tseo: Seo;\n\tcreatedAt: number;\n\tupdatedAt: number;\n}\n\n// ===== Reservation Domain Types =====\n\nexport interface ServiceDuration {\n\tduration: number;\n\tisPause?: boolean;\n}\n\nexport interface ServiceProvider {\n\tid: string;\n\tproviderId: string;\n\tworkingTime: {\n\t\tworkingDays: Array<{ day: string; workingHours: Array<{ from: number; to: number }> }>;\n\t\toutcastDates: Array<{ month: number; day: number; workingHours: Array<{ from: number; to: number }> }>;\n\t\tspecificDates: Array<{ date: number; workingHours: Array<{ from: number; to: number }> }>;\n\t};\n\tprovider?: Provider;\n}\n\nexport interface Service {\n\tid: string;\n\tname: Record<string, string>;\n\tseo: Seo;\n\tbusinessId: string;\n\tprices: Price[];\n\tdurations: ServiceDuration[];\n\tcategoryFilterBlocks: Block[];\n\tcategoryIds: string[];\n\tblocks: Block[];\n\tisApprovalRequired: boolean;\n\treservationBlocks: Block[];\n\tproviders: ServiceProvider[];\n\tcreatedAt: number;\n\tupdatedAt: number;\n\tstatuses: StatusEvent[];\n}\n\nexport interface ProviderTimelinePoint {\n\ttimestamp: number;\n\tconcurrent: number;\n}\n\nexport interface Provider {\n\tid: string;\n\tname: Record<string, string>;\n\tseo: Seo;\n\tbusinessId: string;\n\tblocks: Block[];\n\tstatuses: StatusEvent[];\n\tconcurrentLimit: number;\n\tcategoryIds: string[];\n\tcategoryFilterBlocks: Block[];\n\ttimeline: ProviderTimelinePoint[];\n\tcreatedAt: number;\n\tupdatedAt: number;\n}\n"]}
1
+ {"version":3,"sources":["../src/types/index.ts"],"names":["PaymentMethodType","NodeType"],"mappings":";;;AA4CO,IAAK,iBAAA,qBAAAA,kBAAAA,KAAL;AACN,EAAAA,mBAAA,MAAA,CAAA,GAAO,MAAA;AACP,EAAAA,mBAAA,YAAA,CAAA,GAAa,aAAA;AACb,EAAAA,mBAAA,MAAA,CAAA,GAAO,MAAA;AAHI,EAAA,OAAAA,kBAAAA;AAAA,CAAA,EAAA,iBAAA,IAAA,EAAA;AAmTL,IAAK,QAAA,qBAAAC,SAAAA,KAAL;AACN,EAAAA,UAAA,SAAA,CAAA,GAAU,SAAA;AACV,EAAAA,UAAA,UAAA,CAAA,GAAW,UAAA;AACX,EAAAA,UAAA,kBAAA,CAAA,GAAmB,kBAAA;AACnB,EAAAA,UAAA,mBAAA,CAAA,GAAoB,mBAAA;AACpB,EAAAA,UAAA,kBAAA,CAAA,GAAmB,kBAAA;AACnB,EAAAA,UAAA,gBAAA,CAAA,GAAiB,gBAAA;AACjB,EAAAA,UAAA,uBAAA,CAAA,GAAwB,uBAAA;AACxB,EAAAA,UAAA,oBAAA,CAAA,GAAqB,oBAAA;AACrB,EAAAA,UAAA,uBAAA,CAAA,GAAwB,uBAAA;AACxB,EAAAA,UAAA,2BAAA,CAAA,GAA4B,2BAAA;AAC5B,EAAAA,UAAA,0CAAA,CAAA,GAA2C,0CAAA;AAC3C,EAAAA,UAAA,0CAAA,CAAA,GAA2C,0CAAA;AAC3C,EAAAA,UAAA,YAAA,CAAA,GAAa,YAAA;AACb,EAAAA,UAAA,iBAAA,CAAA,GAAkB,iBAAA;AAClB,EAAAA,UAAA,oBAAA,CAAA,GAAqB,oBAAA;AACrB,EAAAA,UAAA,kBAAA,CAAA,GAAmB,kBAAA;AACnB,EAAAA,UAAA,MAAA,CAAA,GAAO,MAAA;AAjBI,EAAA,OAAAA,SAAAA;AAAA,CAAA,EAAA,QAAA,IAAA,EAAA","file":"types.cjs","sourcesContent":["export * from './api';\n\nexport interface PaymentRefund {\n\tid: string;\n\tentity: string;\n\ttotal: number;\n\tproviderRefundId?: string;\n\tstatus: string;\n\tcreatedAt: number;\n}\n\nexport interface Payment {\n\tcurrency: string;\n\tmarket: string;\n\tsubtotal: number;\n\tshipping: number;\n\tdiscount: number;\n\ttotal: number;\n\tpaid: number;\n\ttax?: {\n\t\tamount: number;\n\t\tmodeSnapshot?: string;\n\t\trateBps: number;\n\t\tlines: Array<{ rateBps: number; amount: number; label?: string; scope?: string }>;\n\t};\n\tpromoCode?: {\n\t\tid: string;\n\t\tcode: string;\n\t\ttype: string;\n\t\tvalue: number;\n\t};\n\ttype: PaymentMethodType;\n\tprovider?: {\n\t\tcustomerId: string;\n\t\tpaymentIntentId?: string;\n\t\tsubscriptionId?: string;\n\t\tpriceId?: string;\n\t};\n\trefunds: PaymentRefund[];\n\tzoneId?: string;\n\tpaymentMethodId?: string;\n\tshippingMethodId?: string;\n}\n\nexport enum PaymentMethodType {\n\tCash = \"CASH\",\n\tCreditCard = \"CREDIT_CARD\",\n\tFree = \"FREE\",\n}\n\nexport interface PromoCodeValidation {\n\tpromoCodeId: string;\n\tcode: string;\n\tdiscounts: any[];\n\tconditions: any[];\n}\n\nexport interface Quote {\n\tmarket: string;\n\tzone: Zone;\n\tsubtotal: number;\n\tshipping: number;\n\tdiscount: number;\n\ttax: number;\n\ttotal: number;\n\tshippingMethod: ShippingMethod | null;\n\tpaymentMethod: PaymentMethod | null;\n\tpromoCode: PromoCodeValidation | null;\n\tpayment: Payment;\n\tchargeAmount: number;\n\tid?: string;\n\texpiresAt?: number;\n}\n\nexport interface Price {\n\tmarket: string;\n\tamount: number;\n\tcompareAt?: number;\n}\n\nexport interface Location {\n\tcountry?: string | null;\n\taddress?: string | null;\n\tcity?: string | null;\n\tstate?: string | null;\n\tpostalCode?: string | null;\n\tcoordinates?: { lat: number; lon: number } | null;\n}\n\nexport interface EshopCartItem {\n\tid: string;\n\tproductId: string;\n\tvariantId: string;\n\tproductName: string;\n\tproductSlug: string;\n\tvariantAttributes: Record<string, any>;\n\tprice: Price;\n\tquantity: number;\n\taddedAt: number;\n}\n\nexport interface ReservationCartItem {\n\tid: string;\n\tserviceId: string;\n\tserviceName: string;\n\tdate: string;\n\tfrom: number;\n\tto: number;\n\ttimeText: string;\n\tproviderId?: string;\n\tblocks: any[];\n}\n\nexport interface PaymentProviderConfig {\n\ttype: \"STRIPE\";\n\tpublicKey: string;\n\tsecretKey: string;\n\twebhookSecret: string;\n}\n\nexport interface ShippingWeightTier {\n\tupToGrams: number;\n\tamount: number;\n}\n\nexport interface PaymentMethod {\n\tid: string;\n\ttype: PaymentMethodType;\n}\n\nexport interface ShippingMethod {\n\tid: string;\n\ttaxable: boolean;\n\tetaText: string;\n\tpickupLocation?: Location;\n\tamount: number;\n\tfreeAbove?: number;\n\tweightTiers?: ShippingWeightTier[];\n}\n\nexport type ZoneScope = \"ORDER\" | \"RESERVATION\";\n\nexport interface Zone {\n\tid: string;\n\tmarketId: string;\n\tscope: ZoneScope;\n\tcountries: string[];\n\tstates: string[];\n\tpostalCodes: string[];\n\ttaxBps: number;\n\tpaymentMethods: PaymentMethod[];\n\tshippingMethods: ShippingMethod[];\n}\n\nexport interface Market {\n\tid: string;\n\tcurrency: string;\n\ttaxMode: \"EXCLUSIVE\" | \"INCLUSIVE\";\n}\n\nexport interface Language {\n\tid: string;\n}\n\nexport interface BusinessEmails {\n\tbilling: string;\n\tsupport: string;\n}\n\nexport interface OrderConfigs {\n\tisEmailRequired: boolean;\n\tisPhoneRequired: boolean;\n}\n\nexport interface BusinessReservationConfigs {\n\tisEmailRequired: boolean;\n\tisPhoneRequired: boolean;\n}\n\nexport interface BusinessConfig {\n\tlanguages: Language[];\n\tmarkets: Market[];\n\tzones: Zone[];\n\tbuildHooks: string[];\n\twebhooks: any[];\n\torderBlocks: any[];\n\treservationBlocks: any[];\n\torderConfigs: OrderConfigs;\n\treservationConfigs: BusinessReservationConfigs;\n\tpaymentProvider?: PaymentProviderConfig;\n\taiProvider?: any;\n\temails: BusinessEmails;\n}\n\nexport interface Business {\n\tid: string;\n\tname: string;\n\tconfigs?: BusinessConfig;\n}\n\nexport interface EshopStoreState {\n\tbusinessId: string;\n\tselectedShippingMethodId: string | null;\n\tuserToken: string | null;\n\tprocessingCheckout: boolean;\n\tloading: boolean;\n\terror: string | null;\n\tphoneNumber: string;\n\tphoneError: string | null;\n\tverificationCode: string;\n\tverifyError: string | null;\n}\n\nexport interface Block {\n\tid: string;\n\tkey: string;\n\ttype: string;\n\tproperties?: any;\n\tvalue?: any;\n}\n\nexport interface Seo {\n\tslug: Record<string, string>;\n\tmetaTitle: Record<string, string>;\n\tmetaDescription: Record<string, string>;\n\tcanonicalUrl: Record<string, string>;\n\togImage: string;\n}\n\nexport interface MediaResolution {\n\tid: string;\n\tsize: string;\n\turl: string;\n}\n\nexport interface Media {\n\tid: string;\n\tresolutions: { [key: string]: MediaResolution };\n\tmimeType: string;\n\ttitle?: string | null;\n\tdescription?: string | null;\n\talt?: string | null;\n\towner: string;\n\tmetadata?: string | null;\n\tuploadedAt: string;\n\tseo: Seo;\n}\n\nexport interface ApiResponse<T> {\n\tsuccess: boolean;\n\tdata?: T;\n\terror?: string;\n\tcursor?: string;\n\ttotal?: number;\n}\n\nexport interface PaginatedResponse<T> {\n\tdata: T[];\n\tmeta?: {\n\t\ttotal: number;\n\t\tpage: number;\n\t\tper_page: number;\n\t};\n}\n\nexport interface ReservationStoreState {\n\tcurrentStep: number;\n\ttotalSteps: number;\n\tsteps: Record<number, { name: string; labelKey: string }>;\n\tweekdays: string[];\n\tmonthYear: string;\n\tdays: any[];\n\tcurrent: Date;\n\tselectedDate: string | null;\n\tslots: any[];\n\tselectedSlot: any | null;\n\tselectedProvider: any | null;\n\tproviders: any[];\n\tloading: boolean;\n\tstartDate: string | null;\n\tendDate: string | null;\n\tphoneNumber: string;\n\tphoneError: string | null;\n\tphoneSuccess: string | null;\n\tverificationCode: string;\n\tverifyError: string | null;\n\tisPhoneVerified: boolean;\n\tisSendingCode: boolean;\n\tisVerifying: boolean;\n\tcodeSentAt: number | null;\n\tcanResendAt: number | null;\n\tguestToken: string | null;\n\tservice: any | null;\n\tbusiness: Business | null;\n\tcurrency: string;\n\treservationBlocks: Block[];\n\tapiUrl: string;\n\tbusinessId: string;\n\ttimezone: string;\n\ttzGroups: any;\n\titems: ReservationCartItem[];\n\tallowedPaymentMethods: string[];\n\tpaymentConfig: {\n\t\tprovider: PaymentProviderConfig | null;\n\t\tenabled: boolean;\n\t};\n}\n\nexport interface StatusEvent {\n\tid: string;\n\tchangedBy: 'BUSINESS' | 'USER' | 'SYSTEM';\n\tuserId?: string;\n\tstatus: string;\n\tnote?: string;\n\ttimestamp: number;\n}\n\nexport interface ReservationItem {\n\tid: string;\n\tserviceId: string;\n\tproviderId: string;\n\tbusinessId: string;\n\treservationId: string;\n\tuserId: string;\n\tfrom: number;\n\tto: number;\n\tblocks: Block[];\n\tprice: Price;\n}\n\nexport interface Reservation {\n\tid: string;\n\tnumber: string;\n\tuserId: string;\n\tblocks: Block[];\n\tbusinessId: string;\n\tstatuses: StatusEvent[];\n\tserviceIds: string[];\n\tproviderIds: string[];\n\tpayment: Payment;\n\tbusiness?: Business;\n\tuser?: any;\n\titems: ReservationItem[];\n\temail?: string;\n\tphone?: string;\n\tcreatedAt: number;\n\tlastModified: number;\n}\n\n// ===== CMS Types =====\n\nexport enum NodeType {\n\tCONTENT = 'CONTENT',\n\tCATEGORY = 'CATEGORY',\n\tSERVICE_CATEGORY = 'SERVICE_CATEGORY',\n\tPROVIDER_CATEGORY = 'PROVIDER_CATEGORY',\n\tPRODUCT_CATEGORY = 'PRODUCT_CATEGORY',\n\tEMAIL_TEMPLATE = 'EMAIL_TEMPLATE',\n\tEMAIL_FORGOT_PASSWORD = 'EMAIL_FORGOT_PASSWORD',\n\tEMAIL_USER_CONFIRM = 'EMAIL_USER_CONFIRM',\n\tEMAIL_USER_INVITATION = 'EMAIL_USER_INVITATION',\n\tEMAIL_ORDER_STATUS_UPDATE = 'EMAIL_ORDER_STATUS_UPDATE',\n\tEMAIL_RESERVATION_BUSINESS_STATUS_UPDATE = 'EMAIL_RESERVATION_BUSINESS_STATUS_UPDATE',\n\tEMAIL_RESERVATION_CUSTOMER_STATUS_UPDATE = 'EMAIL_RESERVATION_CUSTOMER_STATUS_UPDATE',\n\tNEWSLETTER = 'NEWSLETTER',\n\tNEWSLETTER_POST = 'NEWSLETTER_POST',\n\tNEWSLETTER_SEGMENT = 'NEWSLETTER_SEGMENT',\n\tNEWSLETTER_ENTRY = 'NEWSLETTER_ENTRY',\n\tFORM = 'FORM',\n}\n\nexport interface NodeConfig {\n\tisPubliclyReadable: boolean;\n\tisPubliclyWritable: boolean;\n\tisSubmissionEnabled: boolean;\n\tisCaptchaRequired: boolean;\n\tnotificationEmails: string[];\n\tunsubscribeUrl: string | null;\n}\n\nexport interface SubscriptionPlan {\n\tid: string;\n\tname: string;\n\tdescription?: string;\n\tproviderPriceId?: string;\n\tprices: Price[];\n}\n\nexport interface NodeSend {\n\tid: string;\n\trecipientSource: string;\n\tscheduledAt: number;\n\tstatus: string;\n\tsentCount: number;\n\tfailedCount: number;\n\tcreatedAt: number;\n}\n\nexport interface Node {\n\tid: string;\n\tname: string;\n\tbusinessId: string;\n\tparentId?: string;\n\tentity: string;\n\ttype: NodeType;\n\tblocks: Block[];\n\tconfig?: NodeConfig;\n\tprops?: any;\n\tplans: SubscriptionPlan[];\n\tstatuses: StatusEvent[];\n\tseo: Seo;\n\tsends: NodeSend[];\n\tcreatedAt: number;\n\tupdatedAt: number;\n}\n\n// ===== Reservation Domain Types =====\n\nexport interface ServiceDuration {\n\tduration: number;\n\tisPause?: boolean;\n}\n\nexport interface ServiceProvider {\n\tid: string;\n\tproviderId: string;\n\tworkingTime: {\n\t\tworkingDays: Array<{ day: string; workingHours: Array<{ from: number; to: number }> }>;\n\t\toutcastDates: Array<{ month: number; day: number; workingHours: Array<{ from: number; to: number }> }>;\n\t\tspecificDates: Array<{ date: number; workingHours: Array<{ from: number; to: number }> }>;\n\t};\n\tprovider?: Provider;\n}\n\nexport interface Service {\n\tid: string;\n\tname: Record<string, string>;\n\tseo: Seo;\n\tbusinessId: string;\n\tprices: Price[];\n\tdurations: ServiceDuration[];\n\tcategoryFilterBlocks: Block[];\n\tcategoryIds: string[];\n\tisApprovalRequired: boolean;\n\tproviders: ServiceProvider[];\n\tcreatedAt: number;\n\tupdatedAt: number;\n\tstatuses: StatusEvent[];\n}\n\nexport interface ProviderTimelinePoint {\n\ttimestamp: number;\n\tconcurrent: number;\n}\n\nexport interface Provider {\n\tid: string;\n\tname: Record<string, string>;\n\tseo: Seo;\n\tbusinessId: string;\n\tstatuses: StatusEvent[];\n\tconcurrentLimit: number;\n\tcategoryIds: string[];\n\tcategoryFilterBlocks: Block[];\n\ttimeline: ProviderTimelinePoint[];\n\tcreatedAt: number;\n\tupdatedAt: number;\n}\n"]}
package/dist/types.d.cts CHANGED
@@ -325,33 +325,26 @@ interface Reservation {
325
325
  createdAt: number;
326
326
  lastModified: number;
327
327
  }
328
- declare enum CollectionEntryType {
328
+ declare enum NodeType {
329
329
  CONTENT = "CONTENT",
330
+ CATEGORY = "CATEGORY",
330
331
  SERVICE_CATEGORY = "SERVICE_CATEGORY",
331
332
  PROVIDER_CATEGORY = "PROVIDER_CATEGORY",
332
333
  PRODUCT_CATEGORY = "PRODUCT_CATEGORY",
334
+ EMAIL_TEMPLATE = "EMAIL_TEMPLATE",
333
335
  EMAIL_FORGOT_PASSWORD = "EMAIL_FORGOT_PASSWORD",
334
336
  EMAIL_USER_CONFIRM = "EMAIL_USER_CONFIRM",
335
337
  EMAIL_USER_INVITATION = "EMAIL_USER_INVITATION",
336
338
  EMAIL_ORDER_STATUS_UPDATE = "EMAIL_ORDER_STATUS_UPDATE",
337
339
  EMAIL_RESERVATION_BUSINESS_STATUS_UPDATE = "EMAIL_RESERVATION_BUSINESS_STATUS_UPDATE",
338
340
  EMAIL_RESERVATION_CUSTOMER_STATUS_UPDATE = "EMAIL_RESERVATION_CUSTOMER_STATUS_UPDATE",
339
- NEWSLETTER_POST = "NEWSLETTER_POST",
340
- NEWSLETTER_ENTRY = "NEWSLETTER_ENTRY"
341
- }
342
- declare enum CollectionType {
343
- SINGLE = "SINGLE",
344
- CONTENT = "CONTENT",
345
- EMAIL_TEMPLATES = "EMAIL_TEMPLATES",
346
- SERVICE_CATEGORIES = "SERVICE_CATEGORIES",
347
- PROVIDER_CATEGORIES = "PROVIDER_CATEGORIES",
348
- PRODUCT_CATEGORIES = "PRODUCT_CATEGORIES",
349
341
  NEWSLETTER = "NEWSLETTER",
350
- NEWSLETTER_SEGMENTS = "NEWSLETTER_SEGMENTS",
351
- SERVICE = "SERVICE",
352
- PRODUCT = "PRODUCT"
342
+ NEWSLETTER_POST = "NEWSLETTER_POST",
343
+ NEWSLETTER_SEGMENT = "NEWSLETTER_SEGMENT",
344
+ NEWSLETTER_ENTRY = "NEWSLETTER_ENTRY",
345
+ FORM = "FORM"
353
346
  }
354
- interface CollectionConfig {
347
+ interface NodeConfig {
355
348
  isPubliclyReadable: boolean;
356
349
  isPubliclyWritable: boolean;
357
350
  isSubmissionEnabled: boolean;
@@ -359,27 +352,36 @@ interface CollectionConfig {
359
352
  notificationEmails: string[];
360
353
  unsubscribeUrl: string | null;
361
354
  }
362
- interface Collection {
355
+ interface SubscriptionPlan {
363
356
  id: string;
364
357
  name: string;
365
- businessId: string;
366
- type: CollectionType;
367
- blocks: Block[];
368
- config: CollectionConfig;
369
- entity: string;
370
- statuses: StatusEvent[];
371
- seo: Seo;
358
+ description?: string;
359
+ providerPriceId?: string;
360
+ prices: Price[];
372
361
  }
373
- interface CollectionEntry {
362
+ interface NodeSend {
374
363
  id: string;
375
- name: Record<string, string>;
376
- collectionId: string;
364
+ recipientSource: string;
365
+ scheduledAt: number;
366
+ status: string;
367
+ sentCount: number;
368
+ failedCount: number;
369
+ createdAt: number;
370
+ }
371
+ interface Node {
372
+ id: string;
373
+ name: string;
377
374
  businessId: string;
378
- type: CollectionEntryType;
375
+ parentId?: string;
376
+ entity: string;
377
+ type: NodeType;
379
378
  blocks: Block[];
380
- statuses: StatusEvent[];
379
+ config?: NodeConfig;
381
380
  props?: any;
381
+ plans: SubscriptionPlan[];
382
+ statuses: StatusEvent[];
382
383
  seo: Seo;
384
+ sends: NodeSend[];
383
385
  createdAt: number;
384
386
  updatedAt: number;
385
387
  }
@@ -425,9 +427,7 @@ interface Service {
425
427
  durations: ServiceDuration[];
426
428
  categoryFilterBlocks: Block[];
427
429
  categoryIds: string[];
428
- blocks: Block[];
429
430
  isApprovalRequired: boolean;
430
- reservationBlocks: Block[];
431
431
  providers: ServiceProvider[];
432
432
  createdAt: number;
433
433
  updatedAt: number;
@@ -442,7 +442,6 @@ interface Provider {
442
442
  name: Record<string, string>;
443
443
  seo: Seo;
444
444
  businessId: string;
445
- blocks: Block[];
446
445
  statuses: StatusEvent[];
447
446
  concurrentLimit: number;
448
447
  categoryIds: string[];
@@ -506,25 +505,56 @@ interface GetProductsParams {
506
505
  limit?: number;
507
506
  cursor?: string;
508
507
  }
509
- interface GetCollectionEntriesParams {
510
- collectionId: string;
508
+ interface GetNodesParams {
509
+ parentId?: string;
511
510
  limit?: number;
512
511
  cursor?: string;
513
512
  ids?: string[];
513
+ query?: string;
514
+ type?: string;
515
+ entity?: string;
516
+ statuses?: string[];
517
+ sortField?: string;
518
+ sortDirection?: string;
519
+ createdAtFrom?: string;
520
+ createdAtTo?: string;
514
521
  }
515
- interface CreateCollectionEntryParams {
516
- collectionId: string;
517
- blocks: any[];
522
+ interface CreateNodeParams {
523
+ name: string;
524
+ parentId?: string;
525
+ type?: string;
526
+ blocks?: any[];
527
+ config?: any;
528
+ entity?: string;
529
+ plans?: any[];
530
+ props?: any;
531
+ seo?: any;
532
+ status?: string;
533
+ }
534
+ interface UpdateNodeParams {
535
+ id: string;
536
+ name?: string;
537
+ parentId?: string;
538
+ type?: string;
539
+ blocks?: any[];
540
+ config?: any;
541
+ entity?: string;
542
+ plans?: any[];
543
+ props?: any;
544
+ seo?: any;
518
545
  status?: string;
519
546
  }
520
- interface GetCollectionEntryParams {
521
- collectionId: string;
547
+ interface GetNodeParams {
522
548
  id: string;
523
549
  }
524
- interface DeleteCollectionEntryParams {
525
- collectionId: string;
550
+ interface DeleteNodeParams {
526
551
  id: string;
527
552
  }
553
+ interface GetNodeChildrenParams {
554
+ id: string;
555
+ limit?: number;
556
+ cursor?: string;
557
+ }
528
558
  interface UploadBusinessMediaParams {
529
559
  files?: File[];
530
560
  urls?: string[];
@@ -630,7 +660,6 @@ interface ProviderWithTimeline {
630
660
  name: Record<string, string>;
631
661
  businessId: string;
632
662
  seo: any;
633
- blocks: Block[];
634
663
  statuses: any[];
635
664
  concurrentLimit: number;
636
665
  categoryIds: string[];
@@ -771,7 +800,7 @@ interface HandleInvitationParams {
771
800
  interface TestWebhookParams {
772
801
  webhook: any;
773
802
  }
774
- interface CollectionConfigParams {
803
+ interface NodeConfigParams {
775
804
  isPubliclyReadable?: boolean;
776
805
  isPubliclyWritable?: boolean;
777
806
  isSubmissionEnabled?: boolean;
@@ -779,78 +808,17 @@ interface CollectionConfigParams {
779
808
  notificationEmails?: string[];
780
809
  unsubscribeUrl?: string | null;
781
810
  }
782
- interface CreateCollectionParams {
783
- name: string;
784
- type?: string;
785
- blocks?: any[];
786
- config?: CollectionConfigParams;
787
- entity?: string | null;
788
- plans?: any[];
789
- seo?: any;
790
- [key: string]: any;
791
- }
792
- interface UpdateCollectionParams {
793
- id: string;
794
- name?: string;
795
- type?: string;
796
- blocks?: any[];
797
- config?: CollectionConfigParams;
798
- entity?: string | null;
799
- plans?: any[];
800
- seo?: any;
801
- [key: string]: any;
802
- }
803
- interface DeleteCollectionParams {
804
- id: string;
805
- }
806
- interface GetCollectionParams {
807
- id: string;
808
- }
809
- interface GetCollectionsParams {
810
- name?: string | null;
811
- ids?: string[] | null;
812
- entity?: string | null;
813
- type?: string | null;
814
- }
815
- interface GetEntriesParams {
816
- collectionId: string;
817
- limit?: number;
818
- cursor?: string;
819
- ids?: string[] | null;
820
- query?: string | null;
821
- type?: string | null;
822
- statuses?: string[] | null;
823
- sortField?: string | null;
824
- sortDirection?: string | null;
825
- createdAtFrom?: string | null;
826
- createdAtTo?: string | null;
827
- parentId?: string | null;
828
- }
829
- interface CreateEntryParams {
830
- collectionId: string;
831
- blocks: any[];
832
- status?: string;
833
- [key: string]: any;
834
- }
835
- interface UpdateEntryParams {
836
- collectionId: string;
837
- id: string;
838
- blocks?: any[];
839
- status?: string;
840
- [key: string]: any;
841
- }
842
811
  interface GenerateBlocksParams {
843
812
  [key: string]: any;
844
813
  }
845
814
  interface GetVariableMetadataParams {
846
- entryType: string;
815
+ nodeType: string;
847
816
  }
848
- interface SendEntryParams {
849
- collectionId: string;
850
- entryId: string;
817
+ interface SendNodeParams {
818
+ nodeId: string;
851
819
  scheduledAt?: number;
852
820
  }
853
- interface GetCollectionSubscribersParams {
821
+ interface GetNodeSubscribersParams {
854
822
  id: string;
855
823
  }
856
824
  interface UserSubscribeParams {
@@ -865,7 +833,6 @@ interface CreateProductParams {
865
833
  description?: string;
866
834
  categoryIds?: string[];
867
835
  categoryFilterBlocks?: any[];
868
- blocks?: any[];
869
836
  variants?: any[];
870
837
  status?: string;
871
838
  [key: string]: any;
@@ -876,7 +843,6 @@ interface UpdateProductParams {
876
843
  description?: string;
877
844
  categoryIds?: string[];
878
845
  categoryFilterBlocks?: any[];
879
- blocks?: any[];
880
846
  variants?: any[];
881
847
  status?: string;
882
848
  [key: string]: any;
@@ -925,7 +891,6 @@ interface UpdateReservationParams {
925
891
  }
926
892
  interface CreateProviderParams {
927
893
  name: string;
928
- blocks?: any[];
929
894
  categoryIds?: string[];
930
895
  categoryFilterBlocks?: any[];
931
896
  concurrentLimit?: number;
@@ -935,7 +900,6 @@ interface CreateProviderParams {
935
900
  interface UpdateProviderParams {
936
901
  id: string;
937
902
  name?: string;
938
- blocks?: any[];
939
903
  categoryIds?: string[];
940
904
  categoryFilterBlocks?: any[];
941
905
  concurrentLimit?: number;
@@ -952,8 +916,6 @@ interface ServiceProviderInput {
952
916
  }
953
917
  interface CreateServiceParams {
954
918
  name: string;
955
- blocks?: any[];
956
- reservationBlocks?: any[];
957
919
  categoryIds?: string[];
958
920
  categoryFilterBlocks?: any[];
959
921
  prices?: any[];
@@ -966,8 +928,6 @@ interface CreateServiceParams {
966
928
  interface UpdateServiceParams {
967
929
  id: string;
968
930
  name?: string;
969
- blocks?: any[];
970
- reservationBlocks?: any[];
971
931
  categoryIds?: string[];
972
932
  categoryFilterBlocks?: any[];
973
933
  prices?: any[];
@@ -1212,4 +1172,4 @@ interface Slot {
1212
1172
  dateText: string;
1213
1173
  }
1214
1174
 
1215
- export { type AddPhoneNumberParams, type ApiResponse, type Block, type BulkScheduleParams, type Business, type BusinessConfig, type BusinessEmails, type BusinessReservationConfigs, type Collection, type CollectionConfig, type CollectionConfigParams, type CollectionEntry, CollectionEntryType, CollectionType, type Condition, type ConfirmUserParams, type CreateBusinessParams, type CreateCollectionEntryParams, type CreateCollectionParams, type CreateEntryParams, type CreateFeatureFlagParams, type CreateOrderParams, type CreatePortalSessionParams, type CreateProductParams, type CreatePromoCodeParams, type CreateProviderParams, type CreateReservationParams, type CreateRoleParams, type CreateServiceParams, type DayAvailability, type DeleteBusinessMediaParams, type DeleteBusinessParams, type DeleteCollectionEntryParams, type DeleteCollectionParams, type DeleteFeatureFlagParams, type DeleteProductParams, type DeletePromoCodeParams, type DeleteProviderParams, type DeleteRoleParams, type DeleteServiceParams, type DeleteUserParams, type Discount, type EshopCartItem, type EshopItem, type EshopStoreState, type FeatureFlag, type FeatureFlagStatus, type FlagResults, type ForgotPasswordParams, type GenerateBlocksParams, type GetAnalyticsHealthParams, type GetAnalyticsParams, type GetAvailabilityParams, type GetBusinessMediaParams, type GetBusinessMediaParams2, type GetBusinessParams, type GetBusinessParentsParams, type GetBusinessServiceWorkingTimeParams, type GetBusinessesParams, type GetCollectionEntriesParams, type GetCollectionEntryParams, type GetCollectionParams, type GetCollectionSubscribersParams, type GetCollectionsParams, type GetDeliveryStatsParams, type GetEntriesParams, type GetFeatureFlagParams, type GetFeatureFlagResultsParams, type GetFeatureFlagsParams, type GetLoginUrlParams, type GetMeParams, type GetOrderParams, type GetOrdersParams, type GetProductParams, type GetProductsParams, type GetPromoCodeParams, type GetPromoCodesParams, type GetProviderParams, type GetProvidersParams, type GetQuoteParams, type GetReservationParams, type GetReservationQuoteParams, type GetRoleParams, type GetRolesParams, type GetServiceParams, type GetServicesParams, type GetSlotsForDateParams, type GetSubscriptionParams, type GetSubscriptionPlansParams, type GetVariableMetadataParams, type GetVariantParams, type GetVariantResponse, type HandleInvitationParams, type InviteUserParams, type Language, type Location, type LoginUserParams, type LogoutParams, type Market, type Media, type MediaResolution, type OrderCheckoutParams, type OrderConfigs, type OutcastDate, type PaginatedResponse, type Payment, type PaymentMethod, PaymentMethodType, type PaymentProviderConfig, type PaymentRefund, type PhoneNumberConfirmParams, type Price, type ProcessRefundParams, type PromoCodeValidation, type Provider, type ProviderTimelinePoint, type ProviderWithTimeline, type Quote, type RegisterUserParams, type RequestOptions, type Reservation, type ReservationCartItem, type ReservationCheckoutParams, type ReservationItem, type ReservationQuoteItem, type ReservationStoreState, type ResetForgotPasswordParams, type ResetPasswordParams, type SearchReservationsParams, type SearchUsersParams, type SendEntryParams, type Seo, type Service, type ServiceDuration, type ServiceProvider, type ServiceProviderInput, type SetRoleParams, type SetupAnalyticsParams, type ShippingMethod, type ShippingWeightTier, type Slot, type SpecificDate, type StatusEvent, type SubscribeParams, type TestWebhookParams, type TimelinePoint, type TrackEmailOpenParams, type TrackEventParams, type TrackEventResponse, type TriggerBuildsParams, type UpdateBusinessParams, type UpdateCollectionParams, type UpdateEntryParams, type UpdateFeatureFlagParams, type UpdateMediaParams, type UpdateNotificationsParams, type UpdateOrderParams, type UpdateProductParams, type UpdatePromoCodeParams, type UpdateProviderParams, type UpdateReservationParams, type UpdateRoleParams, type UpdateServiceParams, type UpdateUserProfileParams, type UploadBusinessMediaParams, type UserSubscribeParams, type Variant, type VariantInput, type VariantResult, type WorkingDay, type WorkingHour, type WorkingTime, type Zone, type ZoneScope };
1175
+ export { type AddPhoneNumberParams, type ApiResponse, type Block, type BulkScheduleParams, type Business, type BusinessConfig, type BusinessEmails, type BusinessReservationConfigs, type Condition, type ConfirmUserParams, type CreateBusinessParams, type CreateFeatureFlagParams, type CreateNodeParams, type CreateOrderParams, type CreatePortalSessionParams, type CreateProductParams, type CreatePromoCodeParams, type CreateProviderParams, type CreateReservationParams, type CreateRoleParams, type CreateServiceParams, type DayAvailability, type DeleteBusinessMediaParams, type DeleteBusinessParams, type DeleteFeatureFlagParams, type DeleteNodeParams, type DeleteProductParams, type DeletePromoCodeParams, type DeleteProviderParams, type DeleteRoleParams, type DeleteServiceParams, type DeleteUserParams, type Discount, type EshopCartItem, type EshopItem, type EshopStoreState, type FeatureFlag, type FeatureFlagStatus, type FlagResults, type ForgotPasswordParams, type GenerateBlocksParams, type GetAnalyticsHealthParams, type GetAnalyticsParams, type GetAvailabilityParams, type GetBusinessMediaParams, type GetBusinessMediaParams2, type GetBusinessParams, type GetBusinessParentsParams, type GetBusinessServiceWorkingTimeParams, type GetBusinessesParams, type GetDeliveryStatsParams, type GetFeatureFlagParams, type GetFeatureFlagResultsParams, type GetFeatureFlagsParams, type GetLoginUrlParams, type GetMeParams, type GetNodeChildrenParams, type GetNodeParams, type GetNodeSubscribersParams, type GetNodesParams, type GetOrderParams, type GetOrdersParams, type GetProductParams, type GetProductsParams, type GetPromoCodeParams, type GetPromoCodesParams, type GetProviderParams, type GetProvidersParams, type GetQuoteParams, type GetReservationParams, type GetReservationQuoteParams, type GetRoleParams, type GetRolesParams, type GetServiceParams, type GetServicesParams, type GetSlotsForDateParams, type GetSubscriptionParams, type GetSubscriptionPlansParams, type GetVariableMetadataParams, type GetVariantParams, type GetVariantResponse, type HandleInvitationParams, type InviteUserParams, type Language, type Location, type LoginUserParams, type LogoutParams, type Market, type Media, type MediaResolution, type Node, type NodeConfig, type NodeConfigParams, type NodeSend, NodeType, type OrderCheckoutParams, type OrderConfigs, type OutcastDate, type PaginatedResponse, type Payment, type PaymentMethod, PaymentMethodType, type PaymentProviderConfig, type PaymentRefund, type PhoneNumberConfirmParams, type Price, type ProcessRefundParams, type PromoCodeValidation, type Provider, type ProviderTimelinePoint, type ProviderWithTimeline, type Quote, type RegisterUserParams, type RequestOptions, type Reservation, type ReservationCartItem, type ReservationCheckoutParams, type ReservationItem, type ReservationQuoteItem, type ReservationStoreState, type ResetForgotPasswordParams, type ResetPasswordParams, type SearchReservationsParams, type SearchUsersParams, type SendNodeParams, type Seo, type Service, type ServiceDuration, type ServiceProvider, type ServiceProviderInput, type SetRoleParams, type SetupAnalyticsParams, type ShippingMethod, type ShippingWeightTier, type Slot, type SpecificDate, type StatusEvent, type SubscribeParams, type SubscriptionPlan, type TestWebhookParams, type TimelinePoint, type TrackEmailOpenParams, type TrackEventParams, type TrackEventResponse, type TriggerBuildsParams, type UpdateBusinessParams, type UpdateFeatureFlagParams, type UpdateMediaParams, type UpdateNodeParams, type UpdateNotificationsParams, type UpdateOrderParams, type UpdateProductParams, type UpdatePromoCodeParams, type UpdateProviderParams, type UpdateReservationParams, type UpdateRoleParams, type UpdateServiceParams, type UpdateUserProfileParams, type UploadBusinessMediaParams, type UserSubscribeParams, type Variant, type VariantInput, type VariantResult, type WorkingDay, type WorkingHour, type WorkingTime, type Zone, type ZoneScope };