@customafk/lunas-api-sdk 0.0.78 → 0.0.79

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.mts CHANGED
@@ -5879,6 +5879,50 @@ declare const _createClient: () => {
5879
5879
  } & {
5880
5880
  '~path': string;
5881
5881
  };
5882
+ get: ((options?: {
5883
+ fetch?: RequestInit | undefined;
5884
+ throwHttpError?: _elysiajs_eden_dist_types_0YqzVuGd0.b | undefined;
5885
+ headers?: {} | undefined;
5886
+ query?: {} | undefined;
5887
+ } | undefined) => Promise<Treaty.TreatyResponse<{
5888
+ 200: {
5889
+ success: false;
5890
+ statusCode: number;
5891
+ data: null;
5892
+ message: string;
5893
+ error: TResponseError;
5894
+ meta: TResponseMeta;
5895
+ } | {
5896
+ success: true;
5897
+ statusCode: number;
5898
+ data: {
5899
+ name: string;
5900
+ uuid: string;
5901
+ status: "CANCELLED" | "ACTIVE" | "INACTIVE";
5902
+ description: string | null;
5903
+ createdAt: Date;
5904
+ updatedAt: Date;
5905
+ surchargeCode: "SHIPPING_FEE" | "HANDLING_FEE" | "EXPRESS_DELIVERY_FEE" | "INSURANCE_FEE" | "CUSTOMS_DUTY" | "OTHER_FEE";
5906
+ amount: number;
5907
+ applyTo: "BEFORE_TAX" | "AFTER_TAX";
5908
+ paymentUuid: string | null;
5909
+ }[];
5910
+ message: null;
5911
+ error: null;
5912
+ meta: TResponseMeta;
5913
+ };
5914
+ 422: {
5915
+ type: "validation";
5916
+ on: string;
5917
+ summary?: string;
5918
+ message?: string;
5919
+ found?: unknown;
5920
+ property?: string;
5921
+ expected?: string;
5922
+ };
5923
+ }>>) & {
5924
+ '~path': string;
5925
+ };
5882
5926
  } & {
5883
5927
  '~path': string;
5884
5928
  };
@@ -5919,6 +5963,57 @@ declare const _createClient: () => {
5919
5963
  }>>) & {
5920
5964
  '~path': string;
5921
5965
  };
5966
+ timeline: {
5967
+ get: ((options?: {
5968
+ fetch?: RequestInit | undefined;
5969
+ throwHttpError?: _elysiajs_eden_dist_types_0YqzVuGd0.b | undefined;
5970
+ headers?: {} | undefined;
5971
+ query?: {} | undefined;
5972
+ } | undefined) => Promise<Treaty.TreatyResponse<{
5973
+ 200: {
5974
+ success: false;
5975
+ statusCode: number;
5976
+ data: null;
5977
+ message: string;
5978
+ error: TResponseError;
5979
+ meta: TResponseMeta;
5980
+ } | {
5981
+ success: true;
5982
+ statusCode: number;
5983
+ data: {
5984
+ uuid: string;
5985
+ status: "COMPLETED" | "IN_PROGRESS" | "SKIPPED" | "FAILED";
5986
+ createdAt: Date;
5987
+ updatedAt: Date;
5988
+ title: string;
5989
+ content: string | null;
5990
+ completedAt: Date | null;
5991
+ manifestUuid: string | null;
5992
+ milestoneCode: "PURCHASED" | "ARRIVED_VN" | "DELIVERED" | "ORDER_CREATED" | "QUOTATION_SENT" | "DEPOSIT_PAID" | "ORDER_CONFIRMED" | "PAYMENT_COMPLETED" | "PAYMENT_RECEIVED" | "PAYMENT_VOIDED" | "ORDER_CANCELLED" | "PURCHASING" | "IN_WAREHOUSE_ABROAD" | "INTERNATIONAL_SHIPPING" | "ITEM_CANCELLED" | "PACKED" | "HANDED_OVER" | "DELIVERING";
5993
+ startedAt: Date;
5994
+ category: "ORDER" | "PAYMENT" | "LOGISTICS";
5995
+ isPublic: boolean;
5996
+ actorUuid: string | null;
5997
+ }[];
5998
+ message: null;
5999
+ error: null;
6000
+ meta: TResponseMeta;
6001
+ };
6002
+ 422: {
6003
+ type: "validation";
6004
+ on: string;
6005
+ summary?: string;
6006
+ message?: string;
6007
+ found?: unknown;
6008
+ property?: string;
6009
+ expected?: string;
6010
+ };
6011
+ }>>) & {
6012
+ '~path': string;
6013
+ };
6014
+ } & {
6015
+ '~path': string;
6016
+ };
5922
6017
  '~path': string;
5923
6018
  } & {
5924
6019
  get: ((options?: {
@@ -6674,6 +6769,50 @@ declare const _createClient: () => {
6674
6769
  } & {
6675
6770
  '~path': string;
6676
6771
  };
6772
+ get: ((options?: {
6773
+ fetch?: RequestInit | undefined;
6774
+ throwHttpError?: _elysiajs_eden_dist_types_0YqzVuGd0.b | undefined;
6775
+ headers?: {} | undefined;
6776
+ query?: {} | undefined;
6777
+ } | undefined) => Promise<Treaty.TreatyResponse<{
6778
+ 200: {
6779
+ success: false;
6780
+ statusCode: number;
6781
+ data: null;
6782
+ message: string;
6783
+ error: TResponseError;
6784
+ meta: TResponseMeta;
6785
+ } | {
6786
+ success: true;
6787
+ statusCode: number;
6788
+ data: {
6789
+ name: string;
6790
+ uuid: string;
6791
+ status: "CANCELLED" | "ACTIVE" | "INACTIVE";
6792
+ description: string | null;
6793
+ createdAt: Date;
6794
+ updatedAt: Date;
6795
+ surchargeCode: "SHIPPING_FEE" | "HANDLING_FEE" | "EXPRESS_DELIVERY_FEE" | "INSURANCE_FEE" | "CUSTOMS_DUTY" | "OTHER_FEE";
6796
+ amount: number;
6797
+ applyTo: "BEFORE_TAX" | "AFTER_TAX";
6798
+ paymentUuid: string | null;
6799
+ }[];
6800
+ message: null;
6801
+ error: null;
6802
+ meta: TResponseMeta;
6803
+ };
6804
+ 422: {
6805
+ type: "validation";
6806
+ on: string;
6807
+ summary?: string;
6808
+ message?: string;
6809
+ found?: unknown;
6810
+ property?: string;
6811
+ expected?: string;
6812
+ };
6813
+ }>>) & {
6814
+ '~path': string;
6815
+ };
6677
6816
  } & {
6678
6817
  '~path': string;
6679
6818
  };
@@ -6714,6 +6853,57 @@ declare const _createClient: () => {
6714
6853
  }>>) & {
6715
6854
  '~path': string;
6716
6855
  };
6856
+ timeline: {
6857
+ get: ((options?: {
6858
+ fetch?: RequestInit | undefined;
6859
+ throwHttpError?: _elysiajs_eden_dist_types_0YqzVuGd0.b | undefined;
6860
+ headers?: {} | undefined;
6861
+ query?: {} | undefined;
6862
+ } | undefined) => Promise<Treaty.TreatyResponse<{
6863
+ 200: {
6864
+ success: false;
6865
+ statusCode: number;
6866
+ data: null;
6867
+ message: string;
6868
+ error: TResponseError;
6869
+ meta: TResponseMeta;
6870
+ } | {
6871
+ success: true;
6872
+ statusCode: number;
6873
+ data: {
6874
+ uuid: string;
6875
+ status: "COMPLETED" | "IN_PROGRESS" | "SKIPPED" | "FAILED";
6876
+ createdAt: Date;
6877
+ updatedAt: Date;
6878
+ title: string;
6879
+ content: string | null;
6880
+ completedAt: Date | null;
6881
+ manifestUuid: string | null;
6882
+ milestoneCode: "PURCHASED" | "ARRIVED_VN" | "DELIVERED" | "ORDER_CREATED" | "QUOTATION_SENT" | "DEPOSIT_PAID" | "ORDER_CONFIRMED" | "PAYMENT_COMPLETED" | "PAYMENT_RECEIVED" | "PAYMENT_VOIDED" | "ORDER_CANCELLED" | "PURCHASING" | "IN_WAREHOUSE_ABROAD" | "INTERNATIONAL_SHIPPING" | "ITEM_CANCELLED" | "PACKED" | "HANDED_OVER" | "DELIVERING";
6883
+ startedAt: Date;
6884
+ category: "ORDER" | "PAYMENT" | "LOGISTICS";
6885
+ isPublic: boolean;
6886
+ actorUuid: string | null;
6887
+ }[];
6888
+ message: null;
6889
+ error: null;
6890
+ meta: TResponseMeta;
6891
+ };
6892
+ 422: {
6893
+ type: "validation";
6894
+ on: string;
6895
+ summary?: string;
6896
+ message?: string;
6897
+ found?: unknown;
6898
+ property?: string;
6899
+ expected?: string;
6900
+ };
6901
+ }>>) & {
6902
+ '~path': string;
6903
+ };
6904
+ } & {
6905
+ '~path': string;
6906
+ };
6717
6907
  }) & {
6718
6908
  get: ((options?: {
6719
6909
  fetch?: RequestInit | undefined;
@@ -6907,49 +7097,177 @@ declare const _createClient: () => {
6907
7097
  }>>) & {
6908
7098
  '~path': string;
6909
7099
  };
6910
- } & {
6911
- '~path': string;
6912
- };
6913
- "order-manifests": ((params: {
6914
- manifestUuid: string | number;
6915
- }) => {
6916
- status: {
6917
- put: ((body: {
6918
- status: "PROCESSING" | "CANCELLED" | "PURCHASED" | "WAREHOUSE_ABROAD" | "IN_TRANSIT" | "ARRIVED_VN" | "DELIVERED";
6919
- }, options?: {
6920
- fetch?: RequestInit | undefined;
6921
- throwHttpError?: _elysiajs_eden_dist_types_0YqzVuGd0.b | undefined;
6922
- headers?: {} | undefined;
6923
- query?: {} | undefined;
6924
- } | undefined) => Promise<Treaty.TreatyResponse<{
6925
- 200: {
6926
- success: true;
6927
- statusCode: number;
6928
- data: null;
6929
- message: string;
6930
- error: null;
6931
- meta: TResponseMeta;
6932
- } | {
6933
- success: false;
6934
- statusCode: number;
6935
- data: null;
6936
- message: string;
6937
- error: TResponseError;
6938
- meta: TResponseMeta;
6939
- };
6940
- 422: {
6941
- type: "validation";
6942
- on: string;
6943
- summary?: string;
6944
- message?: string;
6945
- found?: unknown;
6946
- property?: string;
6947
- expected?: string;
7100
+ analysis: {
7101
+ overview: {
7102
+ get: ((options?: {
7103
+ fetch?: RequestInit | undefined;
7104
+ throwHttpError?: _elysiajs_eden_dist_types_0YqzVuGd0.b | undefined;
7105
+ headers?: {} | undefined;
7106
+ query?: {} | undefined;
7107
+ } | undefined) => Promise<Treaty.TreatyResponse<{
7108
+ 200: {
7109
+ success: false;
7110
+ statusCode: number;
7111
+ data: null;
7112
+ message: string;
7113
+ error: TResponseError;
7114
+ meta: TResponseMeta;
7115
+ } | {
7116
+ success: true;
7117
+ statusCode: number;
7118
+ data: {
7119
+ byStatus: {
7120
+ DRAFT: number;
7121
+ PENDING: number;
7122
+ CONFIRMED: number;
7123
+ PROCESSING: number;
7124
+ COMPLETED: number;
7125
+ CANCELLED: number;
7126
+ };
7127
+ byPaymentStatus: {
7128
+ PENDING: number;
7129
+ PAID: number;
7130
+ PARTIALLY_PAID: number;
7131
+ REFUNDED: number;
7132
+ };
7133
+ byFulfillmentStatus: {
7134
+ UNFULFILLED: number;
7135
+ PARTIALLY_FULFILLED: number;
7136
+ FULFILLED: number;
7137
+ RETURNED: number;
7138
+ };
7139
+ };
7140
+ message: null;
7141
+ error: null;
7142
+ meta: TResponseMeta;
7143
+ };
7144
+ }>>) & {
7145
+ '~path': string;
6948
7146
  };
6949
- }>>) & {
7147
+ } & {
6950
7148
  '~path': string;
6951
7149
  };
6952
- } & {
7150
+ revenue: {
7151
+ get: ((options?: {
7152
+ fetch?: RequestInit | undefined;
7153
+ throwHttpError?: _elysiajs_eden_dist_types_0YqzVuGd0.b | undefined;
7154
+ headers?: {} | undefined;
7155
+ query?: {} | undefined;
7156
+ } | undefined) => Promise<Treaty.TreatyResponse<{
7157
+ 200: {
7158
+ success: false;
7159
+ statusCode: number;
7160
+ data: null;
7161
+ message: string;
7162
+ error: TResponseError;
7163
+ meta: TResponseMeta;
7164
+ } | {
7165
+ success: true;
7166
+ statusCode: number;
7167
+ data: {
7168
+ totalRevenue: number;
7169
+ totalDue: number;
7170
+ totalRefunded: number;
7171
+ balanceRemaining: number;
7172
+ totalOrders: number;
7173
+ completedOrders: number;
7174
+ avgCompletedOrderValue: number;
7175
+ };
7176
+ message: null;
7177
+ error: null;
7178
+ meta: TResponseMeta;
7179
+ };
7180
+ }>>) & {
7181
+ '~path': string;
7182
+ };
7183
+ } & {
7184
+ '~path': string;
7185
+ };
7186
+ } & {
7187
+ '~path': string;
7188
+ };
7189
+ bulk: {
7190
+ delete: ((body: {}, options: {
7191
+ fetch?: RequestInit | undefined;
7192
+ throwHttpError?: _elysiajs_eden_dist_types_0YqzVuGd0.b | undefined;
7193
+ headers?: {} | undefined;
7194
+ query: {
7195
+ orderUuids: string[];
7196
+ };
7197
+ }) => Promise<Treaty.TreatyResponse<{
7198
+ 200: {
7199
+ success: true;
7200
+ statusCode: number;
7201
+ data: null;
7202
+ message: string;
7203
+ error: null;
7204
+ meta: TResponseMeta;
7205
+ } | {
7206
+ success: false;
7207
+ statusCode: number;
7208
+ data: null;
7209
+ message: string;
7210
+ error: TResponseError;
7211
+ meta: TResponseMeta;
7212
+ };
7213
+ 422: {
7214
+ type: "validation";
7215
+ on: string;
7216
+ summary?: string;
7217
+ message?: string;
7218
+ found?: unknown;
7219
+ property?: string;
7220
+ expected?: string;
7221
+ };
7222
+ }>>) & {
7223
+ '~path': string;
7224
+ };
7225
+ } & {
7226
+ '~path': string;
7227
+ };
7228
+ } & {
7229
+ '~path': string;
7230
+ };
7231
+ "order-manifests": ((params: {
7232
+ manifestUuid: string | number;
7233
+ }) => {
7234
+ status: {
7235
+ put: ((body: {
7236
+ status: "PROCESSING" | "CANCELLED" | "PURCHASED" | "WAREHOUSE_ABROAD" | "IN_TRANSIT" | "ARRIVED_VN" | "DELIVERED";
7237
+ }, options?: {
7238
+ fetch?: RequestInit | undefined;
7239
+ throwHttpError?: _elysiajs_eden_dist_types_0YqzVuGd0.b | undefined;
7240
+ headers?: {} | undefined;
7241
+ query?: {} | undefined;
7242
+ } | undefined) => Promise<Treaty.TreatyResponse<{
7243
+ 200: {
7244
+ success: true;
7245
+ statusCode: number;
7246
+ data: null;
7247
+ message: string;
7248
+ error: null;
7249
+ meta: TResponseMeta;
7250
+ } | {
7251
+ success: false;
7252
+ statusCode: number;
7253
+ data: null;
7254
+ message: string;
7255
+ error: TResponseError;
7256
+ meta: TResponseMeta;
7257
+ };
7258
+ 422: {
7259
+ type: "validation";
7260
+ on: string;
7261
+ summary?: string;
7262
+ message?: string;
7263
+ found?: unknown;
7264
+ property?: string;
7265
+ expected?: string;
7266
+ };
7267
+ }>>) & {
7268
+ '~path': string;
7269
+ };
7270
+ } & {
6953
7271
  '~path': string;
6954
7272
  };
6955
7273
  '~path': string;
@@ -7088,6 +7406,100 @@ declare const _createClient: () => {
7088
7406
  }>>) & {
7089
7407
  '~path': string;
7090
7408
  };
7409
+ analysis: {
7410
+ overview: {
7411
+ get: ((options?: {
7412
+ fetch?: RequestInit | undefined;
7413
+ throwHttpError?: _elysiajs_eden_dist_types_0YqzVuGd0.b | undefined;
7414
+ headers?: {} | undefined;
7415
+ query?: {} | undefined;
7416
+ } | undefined) => Promise<Treaty.TreatyResponse<{
7417
+ 200: {
7418
+ success: false;
7419
+ statusCode: number;
7420
+ data: null;
7421
+ message: string;
7422
+ error: TResponseError;
7423
+ meta: TResponseMeta;
7424
+ } | {
7425
+ success: true;
7426
+ statusCode: number;
7427
+ data: {
7428
+ byStatus: {
7429
+ PROCESSING: number;
7430
+ PURCHASED: number;
7431
+ WAREHOUSE_ABROAD: number;
7432
+ IN_TRANSIT: number;
7433
+ ARRIVED_VN: number;
7434
+ DELIVERED: number;
7435
+ CANCELLED: number;
7436
+ };
7437
+ topVendors: {
7438
+ vendorName: string | null;
7439
+ count: number;
7440
+ }[];
7441
+ topOriginCountries: {
7442
+ originCountry: string | null;
7443
+ count: number;
7444
+ }[];
7445
+ };
7446
+ message: null;
7447
+ error: null;
7448
+ meta: TResponseMeta;
7449
+ };
7450
+ }>>) & {
7451
+ '~path': string;
7452
+ };
7453
+ } & {
7454
+ '~path': string;
7455
+ };
7456
+ } & {
7457
+ '~path': string;
7458
+ };
7459
+ bulk: {
7460
+ status: {
7461
+ patch: ((body: {
7462
+ status: "PROCESSING" | "CANCELLED" | "PURCHASED" | "WAREHOUSE_ABROAD" | "IN_TRANSIT" | "ARRIVED_VN" | "DELIVERED";
7463
+ manifestUuids: string[];
7464
+ }, options?: {
7465
+ fetch?: RequestInit | undefined;
7466
+ throwHttpError?: _elysiajs_eden_dist_types_0YqzVuGd0.b | undefined;
7467
+ headers?: {} | undefined;
7468
+ query?: {} | undefined;
7469
+ } | undefined) => Promise<Treaty.TreatyResponse<{
7470
+ 200: {
7471
+ success: true;
7472
+ statusCode: number;
7473
+ data: null;
7474
+ message: string;
7475
+ error: null;
7476
+ meta: TResponseMeta;
7477
+ } | {
7478
+ success: false;
7479
+ statusCode: number;
7480
+ data: null;
7481
+ message: string;
7482
+ error: TResponseError;
7483
+ meta: TResponseMeta;
7484
+ };
7485
+ 422: {
7486
+ type: "validation";
7487
+ on: string;
7488
+ summary?: string;
7489
+ message?: string;
7490
+ found?: unknown;
7491
+ property?: string;
7492
+ expected?: string;
7493
+ };
7494
+ }>>) & {
7495
+ '~path': string;
7496
+ };
7497
+ } & {
7498
+ '~path': string;
7499
+ };
7500
+ } & {
7501
+ '~path': string;
7502
+ };
7091
7503
  } & {
7092
7504
  '~path': string;
7093
7505
  };
@@ -7771,76 +8183,305 @@ declare const _createClient: () => {
7771
8183
  } & {
7772
8184
  '~path': string;
7773
8185
  };
7774
- '~path': string;
7775
- } & {
7776
- get: ((options?: {
7777
- fetch?: RequestInit | undefined;
7778
- throwHttpError?: _elysiajs_eden_dist_types_0YqzVuGd0.b | undefined;
7779
- headers?: {} | undefined;
7780
- query?: {} | undefined;
7781
- } | undefined) => Promise<Treaty.TreatyResponse<{
7782
- 200: {
7783
- success: false;
7784
- statusCode: number;
7785
- data: null;
7786
- message: string;
7787
- error: TResponseError;
7788
- meta: TResponseMeta;
7789
- } | {
7790
- success: true;
7791
- statusCode: number;
7792
- data: {
7793
- name: string;
7794
- uuid: string;
7795
- tags: string[] | null;
7796
- length: number | null;
7797
- slug: string;
7798
- description: string | null;
7799
- createdAt: Date | null;
7800
- updatedAt: Date | null;
7801
- standardCost: number | null;
7802
- retailCost: number | null;
7803
- weight: number | null;
7804
- weightUnit: string | null;
7805
- width: number | null;
7806
- height: number | null;
7807
- dimensionUnit: string | null;
7808
- createdBy: string;
7809
- productLink: string | null;
7810
- quantity: number | null;
7811
- country: string | null;
7812
- productStatus: "draft" | "review" | "published" | "cancelled";
7813
- productType: "regular" | "gift";
7814
- inventoryStatus: "order" | "in_stock" | "out_of_stock" | "preorder" | null;
7815
- rating: number | null;
7816
- totalRating: number | null;
7817
- ratingCount: unknown;
7818
- preOrderStartDate: Date | null;
7819
- preOrderEndDate: Date | null;
7820
- releaseDate: Date | null;
7821
- seoTitle: string | null;
7822
- seoDescription: string | null;
7823
- seoKeywords: string | null;
7824
- totalSales: number | null;
7825
- lastOrderedAt: Date | null;
7826
- lastViewedAt: Date | null;
7827
- variants: {
7828
- name: string;
7829
- uuid: string;
7830
- length: number | null;
7831
- description: string | null;
7832
- createdAt: Date | null;
7833
- updatedAt: Date | null;
7834
- isActive: boolean | null;
7835
- isDefault: boolean | null;
7836
- sku: string;
7837
- standardCost: number | null;
7838
- retailCost: number | null;
7839
- weight: number | null;
7840
- weightUnit: string | null;
7841
- width: number | null;
7842
- height: number | null;
7843
- dimensionUnit: string | null;
8186
+ media: ((params: {
8187
+ mediaUuid: string | number;
8188
+ }) => {
8189
+ delete: ((body?: {} | undefined, options?: {
8190
+ fetch?: RequestInit | undefined;
8191
+ throwHttpError?: _elysiajs_eden_dist_types_0YqzVuGd0.b | undefined;
8192
+ headers?: {} | undefined;
8193
+ query?: {} | undefined;
8194
+ } | undefined) => Promise<Treaty.TreatyResponse<{
8195
+ 200: {
8196
+ success: true;
8197
+ statusCode: number;
8198
+ data: null;
8199
+ message: string;
8200
+ error: null;
8201
+ meta: TResponseMeta;
8202
+ } | {
8203
+ success: false;
8204
+ statusCode: number;
8205
+ data: null;
8206
+ message: string;
8207
+ error: TResponseError;
8208
+ meta: TResponseMeta;
8209
+ };
8210
+ 422: {
8211
+ type: "validation";
8212
+ on: string;
8213
+ summary?: string;
8214
+ message?: string;
8215
+ found?: unknown;
8216
+ property?: string;
8217
+ expected?: string;
8218
+ };
8219
+ }>>) & {
8220
+ '~path': string;
8221
+ };
8222
+ thumbnail: {
8223
+ patch: ((body?: {} | undefined, options?: {
8224
+ fetch?: RequestInit | undefined;
8225
+ throwHttpError?: _elysiajs_eden_dist_types_0YqzVuGd0.b | undefined;
8226
+ headers?: {} | undefined;
8227
+ query?: {} | undefined;
8228
+ } | undefined) => Promise<Treaty.TreatyResponse<{
8229
+ 200: {
8230
+ success: true;
8231
+ statusCode: number;
8232
+ data: null;
8233
+ message: string;
8234
+ error: null;
8235
+ meta: TResponseMeta;
8236
+ } | {
8237
+ success: false;
8238
+ statusCode: number;
8239
+ data: null;
8240
+ message: string;
8241
+ error: TResponseError;
8242
+ meta: TResponseMeta;
8243
+ };
8244
+ 422: {
8245
+ type: "validation";
8246
+ on: string;
8247
+ summary?: string;
8248
+ message?: string;
8249
+ found?: unknown;
8250
+ property?: string;
8251
+ expected?: string;
8252
+ };
8253
+ }>>) & {
8254
+ '~path': string;
8255
+ };
8256
+ } & {
8257
+ '~path': string;
8258
+ };
8259
+ '~path': string;
8260
+ } & {
8261
+ delete: ((body?: {} | undefined, options?: {
8262
+ fetch?: RequestInit | undefined;
8263
+ throwHttpError?: _elysiajs_eden_dist_types_0YqzVuGd0.b | undefined;
8264
+ headers?: {} | undefined;
8265
+ query?: {} | undefined;
8266
+ } | undefined) => Promise<Treaty.TreatyResponse<{
8267
+ 200: {
8268
+ success: true;
8269
+ statusCode: number;
8270
+ data: null;
8271
+ message: string;
8272
+ error: null;
8273
+ meta: TResponseMeta;
8274
+ } | {
8275
+ success: false;
8276
+ statusCode: number;
8277
+ data: null;
8278
+ message: string;
8279
+ error: TResponseError;
8280
+ meta: TResponseMeta;
8281
+ };
8282
+ 422: {
8283
+ type: "validation";
8284
+ on: string;
8285
+ summary?: string;
8286
+ message?: string;
8287
+ found?: unknown;
8288
+ property?: string;
8289
+ expected?: string;
8290
+ };
8291
+ }>>) & {
8292
+ '~path': string;
8293
+ };
8294
+ thumbnail: {
8295
+ patch: ((body?: {} | undefined, options?: {
8296
+ fetch?: RequestInit | undefined;
8297
+ throwHttpError?: _elysiajs_eden_dist_types_0YqzVuGd0.b | undefined;
8298
+ headers?: {} | undefined;
8299
+ query?: {} | undefined;
8300
+ } | undefined) => Promise<Treaty.TreatyResponse<{
8301
+ 200: {
8302
+ success: true;
8303
+ statusCode: number;
8304
+ data: null;
8305
+ message: string;
8306
+ error: null;
8307
+ meta: TResponseMeta;
8308
+ } | {
8309
+ success: false;
8310
+ statusCode: number;
8311
+ data: null;
8312
+ message: string;
8313
+ error: TResponseError;
8314
+ meta: TResponseMeta;
8315
+ };
8316
+ 422: {
8317
+ type: "validation";
8318
+ on: string;
8319
+ summary?: string;
8320
+ message?: string;
8321
+ found?: unknown;
8322
+ property?: string;
8323
+ expected?: string;
8324
+ };
8325
+ }>>) & {
8326
+ '~path': string;
8327
+ };
8328
+ } & {
8329
+ '~path': string;
8330
+ };
8331
+ }) & {
8332
+ get: ((options?: {
8333
+ fetch?: RequestInit | undefined;
8334
+ throwHttpError?: _elysiajs_eden_dist_types_0YqzVuGd0.b | undefined;
8335
+ headers?: {} | undefined;
8336
+ query?: {} | undefined;
8337
+ } | undefined) => Promise<Treaty.TreatyResponse<{
8338
+ 200: {
8339
+ success: false;
8340
+ statusCode: number;
8341
+ data: null;
8342
+ message: string;
8343
+ error: TResponseError;
8344
+ meta: TResponseMeta;
8345
+ } | {
8346
+ success: true;
8347
+ statusCode: number;
8348
+ data: {
8349
+ createdAt: Date | null;
8350
+ updatedAt: Date | null;
8351
+ mediaUuid: string;
8352
+ isThumbnail: boolean | null;
8353
+ media: {
8354
+ name: string;
8355
+ uuid: string;
8356
+ path: string;
8357
+ createdAt: Date | null;
8358
+ mimeType: string;
8359
+ };
8360
+ }[];
8361
+ message: null;
8362
+ error: null;
8363
+ meta: TResponseMeta;
8364
+ };
8365
+ 422: {
8366
+ type: "validation";
8367
+ on: string;
8368
+ summary?: string;
8369
+ message?: string;
8370
+ found?: unknown;
8371
+ property?: string;
8372
+ expected?: string;
8373
+ };
8374
+ }>>) & {
8375
+ '~path': string;
8376
+ };
8377
+ post: ((body: {
8378
+ mediaUuid: string;
8379
+ }, options?: {
8380
+ fetch?: RequestInit | undefined;
8381
+ throwHttpError?: _elysiajs_eden_dist_types_0YqzVuGd0.b | undefined;
8382
+ headers?: {} | undefined;
8383
+ query?: {} | undefined;
8384
+ } | undefined) => Promise<Treaty.TreatyResponse<{
8385
+ 200: {
8386
+ success: true;
8387
+ statusCode: number;
8388
+ data: null;
8389
+ message: string;
8390
+ error: null;
8391
+ meta: TResponseMeta;
8392
+ } | {
8393
+ success: false;
8394
+ statusCode: number;
8395
+ data: null;
8396
+ message: string;
8397
+ error: TResponseError;
8398
+ meta: TResponseMeta;
8399
+ };
8400
+ 422: {
8401
+ type: "validation";
8402
+ on: string;
8403
+ summary?: string;
8404
+ message?: string;
8405
+ found?: unknown;
8406
+ property?: string;
8407
+ expected?: string;
8408
+ };
8409
+ }>>) & {
8410
+ '~path': string;
8411
+ };
8412
+ } & {
8413
+ '~path': string;
8414
+ };
8415
+ '~path': string;
8416
+ } & {
8417
+ get: ((options?: {
8418
+ fetch?: RequestInit | undefined;
8419
+ throwHttpError?: _elysiajs_eden_dist_types_0YqzVuGd0.b | undefined;
8420
+ headers?: {} | undefined;
8421
+ query?: {} | undefined;
8422
+ } | undefined) => Promise<Treaty.TreatyResponse<{
8423
+ 200: {
8424
+ success: false;
8425
+ statusCode: number;
8426
+ data: null;
8427
+ message: string;
8428
+ error: TResponseError;
8429
+ meta: TResponseMeta;
8430
+ } | {
8431
+ success: true;
8432
+ statusCode: number;
8433
+ data: {
8434
+ name: string;
8435
+ uuid: string;
8436
+ tags: string[] | null;
8437
+ length: number | null;
8438
+ slug: string;
8439
+ description: string | null;
8440
+ createdAt: Date | null;
8441
+ updatedAt: Date | null;
8442
+ standardCost: number | null;
8443
+ retailCost: number | null;
8444
+ weight: number | null;
8445
+ weightUnit: string | null;
8446
+ width: number | null;
8447
+ height: number | null;
8448
+ dimensionUnit: string | null;
8449
+ createdBy: string;
8450
+ productLink: string | null;
8451
+ quantity: number | null;
8452
+ country: string | null;
8453
+ productStatus: "draft" | "review" | "published" | "cancelled";
8454
+ productType: "regular" | "gift";
8455
+ inventoryStatus: "order" | "in_stock" | "out_of_stock" | "preorder" | null;
8456
+ rating: number | null;
8457
+ totalRating: number | null;
8458
+ ratingCount: unknown;
8459
+ preOrderStartDate: Date | null;
8460
+ preOrderEndDate: Date | null;
8461
+ releaseDate: Date | null;
8462
+ seoTitle: string | null;
8463
+ seoDescription: string | null;
8464
+ seoKeywords: string | null;
8465
+ totalSales: number | null;
8466
+ lastOrderedAt: Date | null;
8467
+ lastViewedAt: Date | null;
8468
+ variants: {
8469
+ name: string;
8470
+ uuid: string;
8471
+ length: number | null;
8472
+ description: string | null;
8473
+ createdAt: Date | null;
8474
+ updatedAt: Date | null;
8475
+ isActive: boolean | null;
8476
+ isDefault: boolean | null;
8477
+ sku: string;
8478
+ standardCost: number | null;
8479
+ retailCost: number | null;
8480
+ weight: number | null;
8481
+ weightUnit: string | null;
8482
+ width: number | null;
8483
+ height: number | null;
8484
+ dimensionUnit: string | null;
7844
8485
  isNew: boolean | null;
7845
8486
  isSpecial: boolean | null;
7846
8487
  options: {
@@ -8146,14 +8787,199 @@ declare const _createClient: () => {
8146
8787
  property?: string;
8147
8788
  expected?: string;
8148
8789
  };
8149
- }>>) & {
8790
+ }>>) & {
8791
+ '~path': string;
8792
+ };
8793
+ } & {
8794
+ '~path': string;
8795
+ };
8796
+ publish: {
8797
+ patch: ((body?: {} | undefined, options?: {
8798
+ fetch?: RequestInit | undefined;
8799
+ throwHttpError?: _elysiajs_eden_dist_types_0YqzVuGd0.b | undefined;
8800
+ headers?: {} | undefined;
8801
+ query?: {} | undefined;
8802
+ } | undefined) => Promise<Treaty.TreatyResponse<{
8803
+ 200: {
8804
+ success: true;
8805
+ statusCode: number;
8806
+ data: null;
8807
+ message: string;
8808
+ error: null;
8809
+ meta: TResponseMeta;
8810
+ } | {
8811
+ success: false;
8812
+ statusCode: number;
8813
+ data: null;
8814
+ message: string;
8815
+ error: TResponseError;
8816
+ meta: TResponseMeta;
8817
+ };
8818
+ 422: {
8819
+ type: "validation";
8820
+ on: string;
8821
+ summary?: string;
8822
+ message?: string;
8823
+ found?: unknown;
8824
+ property?: string;
8825
+ expected?: string;
8826
+ };
8827
+ }>>) & {
8828
+ '~path': string;
8829
+ };
8830
+ } & {
8831
+ '~path': string;
8832
+ };
8833
+ cancelled: {
8834
+ patch: ((body?: {} | undefined, options?: {
8835
+ fetch?: RequestInit | undefined;
8836
+ throwHttpError?: _elysiajs_eden_dist_types_0YqzVuGd0.b | undefined;
8837
+ headers?: {} | undefined;
8838
+ query?: {} | undefined;
8839
+ } | undefined) => Promise<Treaty.TreatyResponse<{
8840
+ 200: {
8841
+ success: true;
8842
+ statusCode: number;
8843
+ data: null;
8844
+ message: string;
8845
+ error: null;
8846
+ meta: TResponseMeta;
8847
+ } | {
8848
+ success: false;
8849
+ statusCode: number;
8850
+ data: null;
8851
+ message: string;
8852
+ error: TResponseError;
8853
+ meta: TResponseMeta;
8854
+ };
8855
+ 422: {
8856
+ type: "validation";
8857
+ on: string;
8858
+ summary?: string;
8859
+ message?: string;
8860
+ found?: unknown;
8861
+ property?: string;
8862
+ expected?: string;
8863
+ };
8864
+ }>>) & {
8865
+ '~path': string;
8866
+ };
8867
+ } & {
8868
+ '~path': string;
8869
+ };
8870
+ forever: {
8871
+ delete: ((body?: {} | undefined, options?: {
8872
+ fetch?: RequestInit | undefined;
8873
+ throwHttpError?: _elysiajs_eden_dist_types_0YqzVuGd0.b | undefined;
8874
+ headers?: {} | undefined;
8875
+ query?: {} | undefined;
8876
+ } | undefined) => Promise<Treaty.TreatyResponse<{
8877
+ 200: {
8878
+ success: true;
8879
+ statusCode: number;
8880
+ data: null;
8881
+ message: string;
8882
+ error: null;
8883
+ meta: TResponseMeta;
8884
+ } | {
8885
+ success: false;
8886
+ statusCode: number;
8887
+ data: null;
8888
+ message: string;
8889
+ error: TResponseError;
8890
+ meta: TResponseMeta;
8891
+ };
8892
+ 422: {
8893
+ type: "validation";
8894
+ on: string;
8895
+ summary?: string;
8896
+ message?: string;
8897
+ found?: unknown;
8898
+ property?: string;
8899
+ expected?: string;
8900
+ };
8901
+ }>>) & {
8902
+ '~path': string;
8903
+ };
8904
+ } & {
8905
+ '~path': string;
8906
+ };
8907
+ media: ((params: {
8908
+ mediaUuid: string | number;
8909
+ }) => {
8910
+ delete: ((body?: {} | undefined, options?: {
8911
+ fetch?: RequestInit | undefined;
8912
+ throwHttpError?: _elysiajs_eden_dist_types_0YqzVuGd0.b | undefined;
8913
+ headers?: {} | undefined;
8914
+ query?: {} | undefined;
8915
+ } | undefined) => Promise<Treaty.TreatyResponse<{
8916
+ 200: {
8917
+ success: true;
8918
+ statusCode: number;
8919
+ data: null;
8920
+ message: string;
8921
+ error: null;
8922
+ meta: TResponseMeta;
8923
+ } | {
8924
+ success: false;
8925
+ statusCode: number;
8926
+ data: null;
8927
+ message: string;
8928
+ error: TResponseError;
8929
+ meta: TResponseMeta;
8930
+ };
8931
+ 422: {
8932
+ type: "validation";
8933
+ on: string;
8934
+ summary?: string;
8935
+ message?: string;
8936
+ found?: unknown;
8937
+ property?: string;
8938
+ expected?: string;
8939
+ };
8940
+ }>>) & {
8941
+ '~path': string;
8942
+ };
8943
+ thumbnail: {
8944
+ patch: ((body?: {} | undefined, options?: {
8945
+ fetch?: RequestInit | undefined;
8946
+ throwHttpError?: _elysiajs_eden_dist_types_0YqzVuGd0.b | undefined;
8947
+ headers?: {} | undefined;
8948
+ query?: {} | undefined;
8949
+ } | undefined) => Promise<Treaty.TreatyResponse<{
8950
+ 200: {
8951
+ success: true;
8952
+ statusCode: number;
8953
+ data: null;
8954
+ message: string;
8955
+ error: null;
8956
+ meta: TResponseMeta;
8957
+ } | {
8958
+ success: false;
8959
+ statusCode: number;
8960
+ data: null;
8961
+ message: string;
8962
+ error: TResponseError;
8963
+ meta: TResponseMeta;
8964
+ };
8965
+ 422: {
8966
+ type: "validation";
8967
+ on: string;
8968
+ summary?: string;
8969
+ message?: string;
8970
+ found?: unknown;
8971
+ property?: string;
8972
+ expected?: string;
8973
+ };
8974
+ }>>) & {
8975
+ '~path': string;
8976
+ };
8977
+ } & {
8150
8978
  '~path': string;
8151
8979
  };
8152
- } & {
8153
8980
  '~path': string;
8154
- };
8155
- publish: {
8156
- patch: ((body?: {} | undefined, options?: {
8981
+ } & {
8982
+ delete: ((body?: {} | undefined, options?: {
8157
8983
  fetch?: RequestInit | undefined;
8158
8984
  throwHttpError?: _elysiajs_eden_dist_types_0YqzVuGd0.b | undefined;
8159
8985
  headers?: {} | undefined;
@@ -8186,29 +9012,75 @@ declare const _createClient: () => {
8186
9012
  }>>) & {
8187
9013
  '~path': string;
8188
9014
  };
8189
- } & {
8190
- '~path': string;
8191
- };
8192
- cancelled: {
8193
- patch: ((body?: {} | undefined, options?: {
9015
+ thumbnail: {
9016
+ patch: ((body?: {} | undefined, options?: {
9017
+ fetch?: RequestInit | undefined;
9018
+ throwHttpError?: _elysiajs_eden_dist_types_0YqzVuGd0.b | undefined;
9019
+ headers?: {} | undefined;
9020
+ query?: {} | undefined;
9021
+ } | undefined) => Promise<Treaty.TreatyResponse<{
9022
+ 200: {
9023
+ success: true;
9024
+ statusCode: number;
9025
+ data: null;
9026
+ message: string;
9027
+ error: null;
9028
+ meta: TResponseMeta;
9029
+ } | {
9030
+ success: false;
9031
+ statusCode: number;
9032
+ data: null;
9033
+ message: string;
9034
+ error: TResponseError;
9035
+ meta: TResponseMeta;
9036
+ };
9037
+ 422: {
9038
+ type: "validation";
9039
+ on: string;
9040
+ summary?: string;
9041
+ message?: string;
9042
+ found?: unknown;
9043
+ property?: string;
9044
+ expected?: string;
9045
+ };
9046
+ }>>) & {
9047
+ '~path': string;
9048
+ };
9049
+ } & {
9050
+ '~path': string;
9051
+ };
9052
+ }) & {
9053
+ get: ((options?: {
8194
9054
  fetch?: RequestInit | undefined;
8195
9055
  throwHttpError?: _elysiajs_eden_dist_types_0YqzVuGd0.b | undefined;
8196
9056
  headers?: {} | undefined;
8197
9057
  query?: {} | undefined;
8198
9058
  } | undefined) => Promise<Treaty.TreatyResponse<{
8199
9059
  200: {
8200
- success: true;
9060
+ success: false;
8201
9061
  statusCode: number;
8202
9062
  data: null;
8203
9063
  message: string;
8204
- error: null;
9064
+ error: TResponseError;
8205
9065
  meta: TResponseMeta;
8206
9066
  } | {
8207
- success: false;
9067
+ success: true;
8208
9068
  statusCode: number;
8209
- data: null;
8210
- message: string;
8211
- error: TResponseError;
9069
+ data: {
9070
+ createdAt: Date | null;
9071
+ updatedAt: Date | null;
9072
+ mediaUuid: string;
9073
+ isThumbnail: boolean | null;
9074
+ media: {
9075
+ name: string;
9076
+ uuid: string;
9077
+ path: string;
9078
+ createdAt: Date | null;
9079
+ mimeType: string;
9080
+ };
9081
+ }[];
9082
+ message: null;
9083
+ error: null;
8212
9084
  meta: TResponseMeta;
8213
9085
  };
8214
9086
  422: {
@@ -8223,11 +9095,9 @@ declare const _createClient: () => {
8223
9095
  }>>) & {
8224
9096
  '~path': string;
8225
9097
  };
8226
- } & {
8227
- '~path': string;
8228
- };
8229
- forever: {
8230
- delete: ((body?: {} | undefined, options?: {
9098
+ post: ((body: {
9099
+ mediaUuid: string;
9100
+ }, options?: {
8231
9101
  fetch?: RequestInit | undefined;
8232
9102
  throwHttpError?: _elysiajs_eden_dist_types_0YqzVuGd0.b | undefined;
8233
9103
  headers?: {} | undefined;
@@ -8272,6 +9142,15 @@ declare const _createClient: () => {
8272
9142
  page?: number | undefined;
8273
9143
  limit?: number | undefined;
8274
9144
  search?: string | undefined;
9145
+ productStatus?: EProductStatus | undefined;
9146
+ productType?: EProductType | undefined;
9147
+ inventoryStatus?: EProductInventoryStatus | undefined;
9148
+ seriesUuid?: string | undefined;
9149
+ supplierUuid?: string | undefined;
9150
+ categoryUuid?: string | undefined;
9151
+ country?: ECountry | undefined;
9152
+ createdAtFrom?: string | undefined;
9153
+ createdAtTo?: string | undefined;
8275
9154
  } | undefined;
8276
9155
  } | undefined) => Promise<Treaty.TreatyResponse<{
8277
9156
  200: {
@@ -9708,76 +10587,296 @@ declare const _createClient: () => {
9708
10587
  property?: string;
9709
10588
  expected?: string;
9710
10589
  };
9711
- }>>) & {
9712
- '~path': string;
10590
+ }>>) & {
10591
+ '~path': string;
10592
+ };
10593
+ } & {
10594
+ '~path': string;
10595
+ };
10596
+ }) & {
10597
+ bulk: {
10598
+ post: ((body: {
10599
+ variants: {
10600
+ description: string;
10601
+ standardCost: number | null;
10602
+ weight: number | null;
10603
+ weightUnit: EWeightUnit | null;
10604
+ length: number | null;
10605
+ width: number | null;
10606
+ height: number | null;
10607
+ dimensionUnit: EDimensionUnit | null;
10608
+ isActive: boolean;
10609
+ isDefault: boolean;
10610
+ isNew: boolean;
10611
+ isSpecial: boolean;
10612
+ options?: {
10613
+ optionId: number;
10614
+ value: string;
10615
+ }[] | undefined;
10616
+ }[];
10617
+ }, options?: {
10618
+ fetch?: RequestInit | undefined;
10619
+ throwHttpError?: _elysiajs_eden_dist_types_0YqzVuGd0.b | undefined;
10620
+ headers?: {} | undefined;
10621
+ query?: {} | undefined;
10622
+ } | undefined) => Promise<Treaty.TreatyResponse<{
10623
+ 200: {
10624
+ success: true;
10625
+ statusCode: number;
10626
+ data: null;
10627
+ message: string;
10628
+ error: null;
10629
+ meta: TResponseMeta;
10630
+ } | {
10631
+ success: false;
10632
+ statusCode: number;
10633
+ data: null;
10634
+ message: string;
10635
+ error: TResponseError;
10636
+ meta: TResponseMeta;
10637
+ };
10638
+ 422: {
10639
+ type: "validation";
10640
+ on: string;
10641
+ summary?: string;
10642
+ message?: string;
10643
+ found?: unknown;
10644
+ property?: string;
10645
+ expected?: string;
10646
+ };
10647
+ }>>) & {
10648
+ '~path': string;
10649
+ };
10650
+ } & {
10651
+ '~path': string;
10652
+ };
10653
+ } & {
10654
+ '~path': string;
10655
+ };
10656
+ }) & {
10657
+ post: ((body: {
10658
+ name: string;
10659
+ productType: EProductType;
10660
+ }, options?: {
10661
+ fetch?: RequestInit | undefined;
10662
+ throwHttpError?: _elysiajs_eden_dist_types_0YqzVuGd0.b | undefined;
10663
+ headers?: {} | undefined;
10664
+ query?: {} | undefined;
10665
+ } | undefined) => Promise<Treaty.TreatyResponse<{
10666
+ 200: {
10667
+ success: false;
10668
+ statusCode: number;
10669
+ data: null;
10670
+ message: string;
10671
+ error: TResponseError;
10672
+ meta: TResponseMeta;
10673
+ } | {
10674
+ success: true;
10675
+ statusCode: number;
10676
+ data: {
10677
+ author: {
10678
+ uuid: string;
10679
+ email: string;
10680
+ username: string;
10681
+ } | null;
10682
+ uuid: string;
10683
+ createdBy: string;
10684
+ name: string;
10685
+ slug: string;
10686
+ productStatus: "draft" | "review" | "published" | "cancelled";
10687
+ createdAt: Date | null;
10688
+ updatedAt: Date | null;
10689
+ };
10690
+ message: null;
10691
+ error: null;
10692
+ meta: TResponseMeta;
10693
+ };
10694
+ 422: {
10695
+ type: "validation";
10696
+ on: string;
10697
+ summary?: string;
10698
+ message?: string;
10699
+ found?: unknown;
10700
+ property?: string;
10701
+ expected?: string;
10702
+ };
10703
+ }>>) & {
10704
+ '~path': string;
10705
+ };
10706
+ } & {
10707
+ '~path': string;
10708
+ };
10709
+ analysis: {
10710
+ overview: {
10711
+ get: ((options?: {
10712
+ fetch?: RequestInit | undefined;
10713
+ throwHttpError?: _elysiajs_eden_dist_types_0YqzVuGd0.b | undefined;
10714
+ headers?: {} | undefined;
10715
+ query?: {} | undefined;
10716
+ } | undefined) => Promise<Treaty.TreatyResponse<{
10717
+ 200: {
10718
+ success: false;
10719
+ statusCode: number;
10720
+ data: null;
10721
+ message: string;
10722
+ error: TResponseError;
10723
+ meta: TResponseMeta;
10724
+ } | {
10725
+ success: true;
10726
+ statusCode: number;
10727
+ data: {
10728
+ byStatus: {
10729
+ draft: number;
10730
+ review: number;
10731
+ published: number;
10732
+ cancelled: number;
10733
+ };
10734
+ byType: {
10735
+ regular: number;
10736
+ gift: number;
10737
+ };
10738
+ byInventoryStatus: any;
10739
+ };
10740
+ message: null;
10741
+ error: null;
10742
+ meta: TResponseMeta;
10743
+ };
10744
+ }>>) & {
10745
+ '~path': string;
10746
+ };
10747
+ } & {
10748
+ '~path': string;
10749
+ };
10750
+ performance: {
10751
+ get: ((options: {
10752
+ fetch?: RequestInit | undefined;
10753
+ throwHttpError?: _elysiajs_eden_dist_types_0YqzVuGd0.b | undefined;
10754
+ headers?: {} | undefined;
10755
+ query: {
10756
+ limit: number;
10757
+ productType?: EProductType | undefined;
10758
+ };
10759
+ }) => Promise<Treaty.TreatyResponse<{
10760
+ 200: {
10761
+ success: false;
10762
+ statusCode: number;
10763
+ data: null;
10764
+ message: string;
10765
+ error: TResponseError;
10766
+ meta: TResponseMeta;
10767
+ } | {
10768
+ success: true;
10769
+ statusCode: number;
10770
+ data: {
10771
+ topSelling: {
10772
+ name: string;
10773
+ uuid: string;
10774
+ retailCost: number | null;
10775
+ totalSales: number | null;
10776
+ medias: {
10777
+ isThumbnail: boolean | null;
10778
+ media: {
10779
+ name: string;
10780
+ uuid: string;
10781
+ path: string;
10782
+ };
10783
+ }[];
10784
+ }[];
10785
+ mostViewed: {
10786
+ name: string;
10787
+ uuid: string;
10788
+ retailCost: number | null;
10789
+ viewCount: number | null;
10790
+ medias: {
10791
+ isThumbnail: boolean | null;
10792
+ media: {
10793
+ name: string;
10794
+ uuid: string;
10795
+ path: string;
10796
+ };
10797
+ }[];
10798
+ }[];
10799
+ };
10800
+ message: null;
10801
+ error: null;
10802
+ meta: TResponseMeta;
9713
10803
  };
9714
- } & {
10804
+ 422: {
10805
+ type: "validation";
10806
+ on: string;
10807
+ summary?: string;
10808
+ message?: string;
10809
+ found?: unknown;
10810
+ property?: string;
10811
+ expected?: string;
10812
+ };
10813
+ }>>) & {
9715
10814
  '~path': string;
9716
10815
  };
9717
- }) & {
9718
- bulk: {
9719
- post: ((body: {
9720
- variants: {
9721
- description: string;
9722
- standardCost: number | null;
9723
- weight: number | null;
9724
- weightUnit: EWeightUnit | null;
9725
- length: number | null;
9726
- width: number | null;
9727
- height: number | null;
9728
- dimensionUnit: EDimensionUnit | null;
9729
- isActive: boolean;
9730
- isDefault: boolean;
9731
- isNew: boolean;
9732
- isSpecial: boolean;
9733
- options?: {
9734
- optionId: number;
9735
- value: string;
9736
- }[] | undefined;
9737
- }[];
9738
- }, options?: {
9739
- fetch?: RequestInit | undefined;
9740
- throwHttpError?: _elysiajs_eden_dist_types_0YqzVuGd0.b | undefined;
9741
- headers?: {} | undefined;
9742
- query?: {} | undefined;
9743
- } | undefined) => Promise<Treaty.TreatyResponse<{
9744
- 200: {
9745
- success: true;
9746
- statusCode: number;
9747
- data: null;
9748
- message: string;
9749
- error: null;
9750
- meta: TResponseMeta;
9751
- } | {
9752
- success: false;
9753
- statusCode: number;
9754
- data: null;
9755
- message: string;
9756
- error: TResponseError;
9757
- meta: TResponseMeta;
9758
- };
9759
- 422: {
9760
- type: "validation";
9761
- on: string;
9762
- summary?: string;
9763
- message?: string;
9764
- found?: unknown;
9765
- property?: string;
9766
- expected?: string;
10816
+ } & {
10817
+ '~path': string;
10818
+ };
10819
+ inventory: {
10820
+ get: ((options: {
10821
+ fetch?: RequestInit | undefined;
10822
+ throwHttpError?: _elysiajs_eden_dist_types_0YqzVuGd0.b | undefined;
10823
+ headers?: {} | undefined;
10824
+ query: {
10825
+ lowStockThreshold: number;
10826
+ };
10827
+ }) => Promise<Treaty.TreatyResponse<{
10828
+ 200: {
10829
+ success: false;
10830
+ statusCode: number;
10831
+ data: null;
10832
+ message: string;
10833
+ error: TResponseError;
10834
+ meta: TResponseMeta;
10835
+ } | {
10836
+ success: true;
10837
+ statusCode: number;
10838
+ data: {
10839
+ outOfStock: {
10840
+ name: string;
10841
+ uuid: string;
10842
+ quantity: number | null;
10843
+ inventoryStatus: "order" | "in_stock" | "out_of_stock" | "preorder" | null;
10844
+ }[];
10845
+ lowStock: {
10846
+ name: string;
10847
+ uuid: string;
10848
+ quantity: number | null;
10849
+ inventoryStatus: "order" | "in_stock" | "out_of_stock" | "preorder" | null;
10850
+ }[];
9767
10851
  };
9768
- }>>) & {
9769
- '~path': string;
10852
+ message: null;
10853
+ error: null;
10854
+ meta: TResponseMeta;
9770
10855
  };
9771
- } & {
10856
+ 422: {
10857
+ type: "validation";
10858
+ on: string;
10859
+ summary?: string;
10860
+ message?: string;
10861
+ found?: unknown;
10862
+ property?: string;
10863
+ expected?: string;
10864
+ };
10865
+ }>>) & {
9772
10866
  '~path': string;
9773
10867
  };
9774
10868
  } & {
9775
10869
  '~path': string;
9776
10870
  };
9777
- }) & {
10871
+ } & {
10872
+ '~path': string;
10873
+ };
10874
+ bulk: {
9778
10875
  post: ((body: {
9779
- name: string;
9780
- productType: EProductType;
10876
+ products: {
10877
+ name: string;
10878
+ productType: EProductType;
10879
+ }[];
9781
10880
  }, options?: {
9782
10881
  fetch?: RequestInit | undefined;
9783
10882
  throwHttpError?: _elysiajs_eden_dist_types_0YqzVuGd0.b | undefined;
@@ -9795,19 +10894,12 @@ declare const _createClient: () => {
9795
10894
  success: true;
9796
10895
  statusCode: number;
9797
10896
  data: {
9798
- author: {
9799
- uuid: string;
9800
- email: string;
9801
- username: string;
9802
- } | null;
9803
10897
  uuid: string;
9804
- createdBy: string;
9805
10898
  name: string;
9806
- slug: string;
9807
10899
  productStatus: "draft" | "review" | "published" | "cancelled";
10900
+ productType: "regular" | "gift";
9808
10901
  createdAt: Date | null;
9809
- updatedAt: Date | null;
9810
- };
10902
+ }[];
9811
10903
  message: null;
9812
10904
  error: null;
9813
10905
  meta: TResponseMeta;
@@ -9824,6 +10916,120 @@ declare const _createClient: () => {
9824
10916
  }>>) & {
9825
10917
  '~path': string;
9826
10918
  };
10919
+ delete: ((body: {}, options: {
10920
+ fetch?: RequestInit | undefined;
10921
+ throwHttpError?: _elysiajs_eden_dist_types_0YqzVuGd0.b | undefined;
10922
+ headers?: {} | undefined;
10923
+ query: {
10924
+ productUuids: string[];
10925
+ };
10926
+ }) => Promise<Treaty.TreatyResponse<{
10927
+ 200: {
10928
+ success: true;
10929
+ statusCode: number;
10930
+ data: null;
10931
+ message: string;
10932
+ error: null;
10933
+ meta: TResponseMeta;
10934
+ } | {
10935
+ success: false;
10936
+ statusCode: number;
10937
+ data: null;
10938
+ message: string;
10939
+ error: TResponseError;
10940
+ meta: TResponseMeta;
10941
+ };
10942
+ 422: {
10943
+ type: "validation";
10944
+ on: string;
10945
+ summary?: string;
10946
+ message?: string;
10947
+ found?: unknown;
10948
+ property?: string;
10949
+ expected?: string;
10950
+ };
10951
+ }>>) & {
10952
+ '~path': string;
10953
+ };
10954
+ status: {
10955
+ patch: ((body: {
10956
+ productUuids: string[];
10957
+ targetStatus: EProductStatus.DRAFT | EProductStatus.CANCELLED;
10958
+ }, options?: {
10959
+ fetch?: RequestInit | undefined;
10960
+ throwHttpError?: _elysiajs_eden_dist_types_0YqzVuGd0.b | undefined;
10961
+ headers?: {} | undefined;
10962
+ query?: {} | undefined;
10963
+ } | undefined) => Promise<Treaty.TreatyResponse<{
10964
+ 200: {
10965
+ success: true;
10966
+ statusCode: number;
10967
+ data: null;
10968
+ message: string;
10969
+ error: null;
10970
+ meta: TResponseMeta;
10971
+ } | {
10972
+ success: false;
10973
+ statusCode: number;
10974
+ data: null;
10975
+ message: string;
10976
+ error: TResponseError;
10977
+ meta: TResponseMeta;
10978
+ };
10979
+ 422: {
10980
+ type: "validation";
10981
+ on: string;
10982
+ summary?: string;
10983
+ message?: string;
10984
+ found?: unknown;
10985
+ property?: string;
10986
+ expected?: string;
10987
+ };
10988
+ }>>) & {
10989
+ '~path': string;
10990
+ };
10991
+ } & {
10992
+ '~path': string;
10993
+ };
10994
+ forever: {
10995
+ delete: ((body: {}, options: {
10996
+ fetch?: RequestInit | undefined;
10997
+ throwHttpError?: _elysiajs_eden_dist_types_0YqzVuGd0.b | undefined;
10998
+ headers?: {} | undefined;
10999
+ query: {
11000
+ productUuids: string[];
11001
+ };
11002
+ }) => Promise<Treaty.TreatyResponse<{
11003
+ 200: {
11004
+ success: true;
11005
+ statusCode: number;
11006
+ data: null;
11007
+ message: string;
11008
+ error: null;
11009
+ meta: TResponseMeta;
11010
+ } | {
11011
+ success: false;
11012
+ statusCode: number;
11013
+ data: null;
11014
+ message: string;
11015
+ error: TResponseError;
11016
+ meta: TResponseMeta;
11017
+ };
11018
+ 422: {
11019
+ type: "validation";
11020
+ on: string;
11021
+ summary?: string;
11022
+ message?: string;
11023
+ found?: unknown;
11024
+ property?: string;
11025
+ expected?: string;
11026
+ };
11027
+ }>>) & {
11028
+ '~path': string;
11029
+ };
11030
+ } & {
11031
+ '~path': string;
11032
+ };
9827
11033
  } & {
9828
11034
  '~path': string;
9829
11035
  };