@instockng/api-client 1.0.34 → 1.0.35

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.
@@ -85,7 +85,6 @@ export declare function createRpcClients(baseURL: string): {
85
85
  items: {
86
86
  id: string;
87
87
  variant: {
88
- price: number;
89
88
  product: {
90
89
  id: string;
91
90
  name: string;
@@ -534,16 +533,18 @@ export declare function createRpcClients(baseURL: string): {
534
533
  };
535
534
  };
536
535
  };
537
- id: string;
538
- name: string | null;
539
536
  createdAt: string;
540
537
  updatedAt: string;
538
+ price: number;
539
+ compareAtPrice: number;
541
540
  deletedAt: string;
541
+ thumbnailUrl: string;
542
+ originalPrice: number;
543
+ id: string;
544
+ name: string | null;
542
545
  isActive: boolean;
543
- thumbnailUrl: string | null;
544
546
  productId: string;
545
547
  sku: string;
546
- compareAtPrice: string;
547
548
  trackInventory: boolean;
548
549
  lowStockThreshold: number | null;
549
550
  };
@@ -661,7 +662,6 @@ export declare function createRpcClients(baseURL: string): {
661
662
  items: {
662
663
  id: string;
663
664
  variant: {
664
- price: number;
665
665
  product: {
666
666
  id: string;
667
667
  name: string;
@@ -1110,16 +1110,18 @@ export declare function createRpcClients(baseURL: string): {
1110
1110
  };
1111
1111
  };
1112
1112
  };
1113
- id: string;
1114
- name: string | null;
1115
1113
  createdAt: string;
1116
1114
  updatedAt: string;
1115
+ price: number;
1116
+ compareAtPrice: number;
1117
1117
  deletedAt: string;
1118
+ thumbnailUrl: string;
1119
+ originalPrice: number;
1120
+ id: string;
1121
+ name: string | null;
1118
1122
  isActive: boolean;
1119
- thumbnailUrl: string | null;
1120
1123
  productId: string;
1121
1124
  sku: string;
1122
- compareAtPrice: string;
1123
1125
  trackInventory: boolean;
1124
1126
  lowStockThreshold: number | null;
1125
1127
  };
@@ -1225,7 +1227,6 @@ export declare function createRpcClients(baseURL: string): {
1225
1227
  items: {
1226
1228
  id: string;
1227
1229
  variant: {
1228
- price: number;
1229
1230
  product: {
1230
1231
  id: string;
1231
1232
  name: string;
@@ -1674,16 +1675,18 @@ export declare function createRpcClients(baseURL: string): {
1674
1675
  };
1675
1676
  };
1676
1677
  };
1677
- id: string;
1678
- name: string | null;
1679
1678
  createdAt: string;
1680
1679
  updatedAt: string;
1680
+ price: number;
1681
+ compareAtPrice: number;
1681
1682
  deletedAt: string;
1683
+ thumbnailUrl: string;
1684
+ originalPrice: number;
1685
+ id: string;
1686
+ name: string | null;
1682
1687
  isActive: boolean;
1683
- thumbnailUrl: string | null;
1684
1688
  productId: string;
1685
1689
  sku: string;
1686
- compareAtPrice: string;
1687
1690
  trackInventory: boolean;
1688
1691
  lowStockThreshold: number | null;
1689
1692
  };
@@ -1806,7 +1809,6 @@ export declare function createRpcClients(baseURL: string): {
1806
1809
  items: {
1807
1810
  id: string;
1808
1811
  variant: {
1809
- price: number;
1810
1812
  product: {
1811
1813
  id: string;
1812
1814
  name: string;
@@ -2255,16 +2257,18 @@ export declare function createRpcClients(baseURL: string): {
2255
2257
  };
2256
2258
  };
2257
2259
  };
2258
- id: string;
2259
- name: string | null;
2260
2260
  createdAt: string;
2261
2261
  updatedAt: string;
2262
+ price: number;
2263
+ compareAtPrice: number;
2262
2264
  deletedAt: string;
2265
+ thumbnailUrl: string;
2266
+ originalPrice: number;
2267
+ id: string;
2268
+ name: string | null;
2263
2269
  isActive: boolean;
2264
- thumbnailUrl: string | null;
2265
2270
  productId: string;
2266
2271
  sku: string;
2267
- compareAtPrice: string;
2268
2272
  trackInventory: boolean;
2269
2273
  lowStockThreshold: number | null;
2270
2274
  };
@@ -2388,7 +2392,6 @@ export declare function createRpcClients(baseURL: string): {
2388
2392
  items: {
2389
2393
  id: string;
2390
2394
  variant: {
2391
- price: number;
2392
2395
  product: {
2393
2396
  id: string;
2394
2397
  name: string;
@@ -2837,16 +2840,18 @@ export declare function createRpcClients(baseURL: string): {
2837
2840
  };
2838
2841
  };
2839
2842
  };
2840
- id: string;
2841
- name: string | null;
2842
2843
  createdAt: string;
2843
2844
  updatedAt: string;
2845
+ price: number;
2846
+ compareAtPrice: number;
2844
2847
  deletedAt: string;
2848
+ thumbnailUrl: string;
2849
+ originalPrice: number;
2850
+ id: string;
2851
+ name: string | null;
2845
2852
  isActive: boolean;
2846
- thumbnailUrl: string | null;
2847
2853
  productId: string;
2848
2854
  sku: string;
2849
- compareAtPrice: string;
2850
2855
  trackInventory: boolean;
2851
2856
  lowStockThreshold: number | null;
2852
2857
  };
@@ -2970,7 +2975,6 @@ export declare function createRpcClients(baseURL: string): {
2970
2975
  items: {
2971
2976
  id: string;
2972
2977
  variant: {
2973
- price: number;
2974
2978
  product: {
2975
2979
  id: string;
2976
2980
  name: string;
@@ -3419,16 +3423,18 @@ export declare function createRpcClients(baseURL: string): {
3419
3423
  };
3420
3424
  };
3421
3425
  };
3422
- id: string;
3423
- name: string | null;
3424
3426
  createdAt: string;
3425
3427
  updatedAt: string;
3428
+ price: number;
3429
+ compareAtPrice: number;
3426
3430
  deletedAt: string;
3431
+ thumbnailUrl: string;
3432
+ originalPrice: number;
3433
+ id: string;
3434
+ name: string | null;
3427
3435
  isActive: boolean;
3428
- thumbnailUrl: string | null;
3429
3436
  productId: string;
3430
3437
  sku: string;
3431
- compareAtPrice: string;
3432
3438
  trackInventory: boolean;
3433
3439
  lowStockThreshold: number | null;
3434
3440
  };
@@ -3555,7 +3561,6 @@ export declare function createRpcClients(baseURL: string): {
3555
3561
  items: {
3556
3562
  id: string;
3557
3563
  variant: {
3558
- price: number;
3559
3564
  product: {
3560
3565
  id: string;
3561
3566
  name: string;
@@ -4004,16 +4009,18 @@ export declare function createRpcClients(baseURL: string): {
4004
4009
  };
4005
4010
  };
4006
4011
  };
4007
- id: string;
4008
- name: string | null;
4009
4012
  createdAt: string;
4010
4013
  updatedAt: string;
4014
+ price: number;
4015
+ compareAtPrice: number;
4011
4016
  deletedAt: string;
4017
+ thumbnailUrl: string;
4018
+ originalPrice: number;
4019
+ id: string;
4020
+ name: string | null;
4012
4021
  isActive: boolean;
4013
- thumbnailUrl: string | null;
4014
4022
  productId: string;
4015
4023
  sku: string;
4016
- compareAtPrice: string;
4017
4024
  trackInventory: boolean;
4018
4025
  lowStockThreshold: number | null;
4019
4026
  };
@@ -4155,7 +4162,6 @@ export declare function createRpcClients(baseURL: string): {
4155
4162
  items: {
4156
4163
  id: string;
4157
4164
  variant: {
4158
- price: number;
4159
4165
  product: {
4160
4166
  id: string;
4161
4167
  name: string;
@@ -4604,16 +4610,18 @@ export declare function createRpcClients(baseURL: string): {
4604
4610
  };
4605
4611
  };
4606
4612
  };
4607
- id: string;
4608
- name: string | null;
4609
4613
  createdAt: string;
4610
4614
  updatedAt: string;
4615
+ price: number;
4616
+ compareAtPrice: number;
4611
4617
  deletedAt: string;
4618
+ thumbnailUrl: string;
4619
+ originalPrice: number;
4620
+ id: string;
4621
+ name: string | null;
4612
4622
  isActive: boolean;
4613
- thumbnailUrl: string | null;
4614
4623
  productId: string;
4615
4624
  sku: string;
4616
- compareAtPrice: string;
4617
4625
  trackInventory: boolean;
4618
4626
  lowStockThreshold: number | null;
4619
4627
  };
@@ -5953,6 +5961,10 @@ export declare function createRpcClients(baseURL: string): {
5953
5961
  };
5954
5962
  };
5955
5963
  output: {
5964
+ isOnSale: boolean;
5965
+ saleId: string;
5966
+ saleName: string;
5967
+ saleEndsAt: string;
5956
5968
  id: string;
5957
5969
  name: string;
5958
5970
  slug: string;
@@ -6123,10 +6135,11 @@ export declare function createRpcClients(baseURL: string): {
6123
6135
  price: number;
6124
6136
  compareAtPrice: number;
6125
6137
  deletedAt: string;
6138
+ thumbnailUrl: string;
6139
+ originalPrice: number;
6126
6140
  id: string;
6127
6141
  name: string | null;
6128
6142
  isActive: boolean;
6129
- thumbnailUrl: string | null;
6130
6143
  productId: string;
6131
6144
  sku: string;
6132
6145
  trackInventory: boolean;
@@ -6423,6 +6436,25 @@ export declare function createRpcClients(baseURL: string): {
6423
6436
  flat?: boolean;
6424
6437
  };
6425
6438
  };
6439
+ sales: {
6440
+ sale: {
6441
+ id: string;
6442
+ name: string;
6443
+ createdAt: string;
6444
+ updatedAt: string;
6445
+ deletedAt: string;
6446
+ brandId: string;
6447
+ isActive: boolean;
6448
+ discountType: import("@prisma/client").$Enums.DiscountType;
6449
+ discountValue: string;
6450
+ startDate: string;
6451
+ endDate: string;
6452
+ };
6453
+ id: string;
6454
+ createdAt: string;
6455
+ productId: string;
6456
+ saleId: string;
6457
+ }[];
6426
6458
  createdAt: string;
6427
6459
  updatedAt: string;
6428
6460
  deletedAt: string;
@@ -7690,6 +7722,10 @@ export declare function createRpcClients(baseURL: string): {
7690
7722
  };
7691
7723
  };
7692
7724
  output: {
7725
+ isOnSale: boolean;
7726
+ saleId: string;
7727
+ saleName: string;
7728
+ saleEndsAt: string;
7693
7729
  id: string;
7694
7730
  name: string;
7695
7731
  slug: string;
@@ -7860,10 +7896,11 @@ export declare function createRpcClients(baseURL: string): {
7860
7896
  price: number;
7861
7897
  compareAtPrice: number;
7862
7898
  deletedAt: string;
7899
+ thumbnailUrl: string;
7900
+ originalPrice: number;
7863
7901
  id: string;
7864
7902
  name: string | null;
7865
7903
  isActive: boolean;
7866
- thumbnailUrl: string | null;
7867
7904
  productId: string;
7868
7905
  sku: string;
7869
7906
  trackInventory: boolean;
@@ -8160,6 +8197,25 @@ export declare function createRpcClients(baseURL: string): {
8160
8197
  flat?: boolean;
8161
8198
  };
8162
8199
  };
8200
+ sales: {
8201
+ sale: {
8202
+ id: string;
8203
+ name: string;
8204
+ createdAt: string;
8205
+ updatedAt: string;
8206
+ deletedAt: string;
8207
+ brandId: string;
8208
+ isActive: boolean;
8209
+ discountType: import("@prisma/client").$Enums.DiscountType;
8210
+ discountValue: string;
8211
+ startDate: string;
8212
+ endDate: string;
8213
+ };
8214
+ id: string;
8215
+ createdAt: string;
8216
+ productId: string;
8217
+ saleId: string;
8218
+ }[];
8163
8219
  createdAt: string;
8164
8220
  updatedAt: string;
8165
8221
  deletedAt: string;
@@ -8213,6 +8269,10 @@ export declare function createRpcClients(baseURL: string): {
8213
8269
  };
8214
8270
  };
8215
8271
  output: {
8272
+ isOnSale: boolean;
8273
+ saleId: string;
8274
+ saleName: string;
8275
+ saleEndsAt: string;
8216
8276
  id: string;
8217
8277
  name: string;
8218
8278
  slug: string;
@@ -8383,10 +8443,11 @@ export declare function createRpcClients(baseURL: string): {
8383
8443
  price: number;
8384
8444
  compareAtPrice: number;
8385
8445
  deletedAt: string;
8446
+ thumbnailUrl: string;
8447
+ originalPrice: number;
8386
8448
  id: string;
8387
8449
  name: string | null;
8388
8450
  isActive: boolean;
8389
- thumbnailUrl: string | null;
8390
8451
  productId: string;
8391
8452
  sku: string;
8392
8453
  trackInventory: boolean;
@@ -8683,6 +8744,25 @@ export declare function createRpcClients(baseURL: string): {
8683
8744
  flat?: boolean;
8684
8745
  };
8685
8746
  };
8747
+ sales: {
8748
+ sale: {
8749
+ id: string;
8750
+ name: string;
8751
+ createdAt: string;
8752
+ updatedAt: string;
8753
+ deletedAt: string;
8754
+ brandId: string;
8755
+ isActive: boolean;
8756
+ discountType: import("@prisma/client").$Enums.DiscountType;
8757
+ discountValue: string;
8758
+ startDate: string;
8759
+ endDate: string;
8760
+ };
8761
+ id: string;
8762
+ createdAt: string;
8763
+ productId: string;
8764
+ saleId: string;
8765
+ }[];
8686
8766
  createdAt: string;
8687
8767
  updatedAt: string;
8688
8768
  deletedAt: string;
@@ -8719,6 +8799,10 @@ export declare function createRpcClients(baseURL: string): {
8719
8799
  };
8720
8800
  };
8721
8801
  output: {
8802
+ isOnSale: boolean;
8803
+ saleId: string;
8804
+ saleName: string;
8805
+ saleEndsAt: string;
8722
8806
  id: string;
8723
8807
  name: string;
8724
8808
  slug: string;
@@ -8889,10 +8973,11 @@ export declare function createRpcClients(baseURL: string): {
8889
8973
  price: number;
8890
8974
  compareAtPrice: number;
8891
8975
  deletedAt: string;
8976
+ thumbnailUrl: string;
8977
+ originalPrice: number;
8892
8978
  id: string;
8893
8979
  name: string | null;
8894
8980
  isActive: boolean;
8895
- thumbnailUrl: string | null;
8896
8981
  productId: string;
8897
8982
  sku: string;
8898
8983
  trackInventory: boolean;
@@ -9189,6 +9274,25 @@ export declare function createRpcClients(baseURL: string): {
9189
9274
  flat?: boolean;
9190
9275
  };
9191
9276
  };
9277
+ sales: {
9278
+ sale: {
9279
+ id: string;
9280
+ name: string;
9281
+ createdAt: string;
9282
+ updatedAt: string;
9283
+ deletedAt: string;
9284
+ brandId: string;
9285
+ isActive: boolean;
9286
+ discountType: import("@prisma/client").$Enums.DiscountType;
9287
+ discountValue: string;
9288
+ startDate: string;
9289
+ endDate: string;
9290
+ };
9291
+ id: string;
9292
+ createdAt: string;
9293
+ productId: string;
9294
+ saleId: string;
9295
+ }[];
9192
9296
  createdAt: string;
9193
9297
  updatedAt: string;
9194
9298
  deletedAt: string;
@@ -9238,6 +9342,10 @@ export declare function createRpcClients(baseURL: string): {
9238
9342
  };
9239
9343
  };
9240
9344
  output: {
9345
+ isOnSale: boolean;
9346
+ saleId: string;
9347
+ saleName: string;
9348
+ saleEndsAt: string;
9241
9349
  id: string;
9242
9350
  name: string;
9243
9351
  slug: string;
@@ -9408,10 +9516,11 @@ export declare function createRpcClients(baseURL: string): {
9408
9516
  price: number;
9409
9517
  compareAtPrice: number;
9410
9518
  deletedAt: string;
9519
+ thumbnailUrl: string;
9520
+ originalPrice: number;
9411
9521
  id: string;
9412
9522
  name: string | null;
9413
9523
  isActive: boolean;
9414
- thumbnailUrl: string | null;
9415
9524
  productId: string;
9416
9525
  sku: string;
9417
9526
  trackInventory: boolean;
@@ -9708,6 +9817,25 @@ export declare function createRpcClients(baseURL: string): {
9708
9817
  flat?: boolean;
9709
9818
  };
9710
9819
  };
9820
+ sales: {
9821
+ sale: {
9822
+ id: string;
9823
+ name: string;
9824
+ createdAt: string;
9825
+ updatedAt: string;
9826
+ deletedAt: string;
9827
+ brandId: string;
9828
+ isActive: boolean;
9829
+ discountType: import("@prisma/client").$Enums.DiscountType;
9830
+ discountValue: string;
9831
+ startDate: string;
9832
+ endDate: string;
9833
+ };
9834
+ id: string;
9835
+ createdAt: string;
9836
+ productId: string;
9837
+ saleId: string;
9838
+ }[];
9711
9839
  createdAt: string;
9712
9840
  updatedAt: string;
9713
9841
  deletedAt: string;
@@ -13934,6 +14062,10 @@ export declare function createAdminRpcClients(baseURL: string): {
13934
14062
  $get: {
13935
14063
  input: {};
13936
14064
  output: {
14065
+ isOnSale: boolean;
14066
+ saleId: string;
14067
+ saleName: string;
14068
+ saleEndsAt: string;
13937
14069
  id: string;
13938
14070
  name: string;
13939
14071
  slug: string;
@@ -14104,10 +14236,11 @@ export declare function createAdminRpcClients(baseURL: string): {
14104
14236
  price: number;
14105
14237
  compareAtPrice: number;
14106
14238
  deletedAt: string;
14239
+ thumbnailUrl: string;
14240
+ originalPrice: number;
14107
14241
  id: string;
14108
14242
  name: string | null;
14109
14243
  isActive: boolean;
14110
- thumbnailUrl: string | null;
14111
14244
  productId: string;
14112
14245
  sku: string;
14113
14246
  trackInventory: boolean;
@@ -14404,6 +14537,25 @@ export declare function createAdminRpcClients(baseURL: string): {
14404
14537
  flat?: boolean;
14405
14538
  };
14406
14539
  };
14540
+ sales: {
14541
+ sale: {
14542
+ id: string;
14543
+ name: string;
14544
+ createdAt: string;
14545
+ updatedAt: string;
14546
+ deletedAt: string;
14547
+ brandId: string;
14548
+ isActive: boolean;
14549
+ discountType: import("@prisma/client").$Enums.DiscountType;
14550
+ discountValue: string;
14551
+ startDate: string;
14552
+ endDate: string;
14553
+ };
14554
+ id: string;
14555
+ createdAt: string;
14556
+ productId: string;
14557
+ saleId: string;
14558
+ }[];
14407
14559
  createdAt: string;
14408
14560
  updatedAt: string;
14409
14561
  deletedAt: string;
@@ -14427,6 +14579,10 @@ export declare function createAdminRpcClients(baseURL: string): {
14427
14579
  $post: {
14428
14580
  input: {};
14429
14581
  output: {
14582
+ isOnSale: boolean;
14583
+ saleId: string;
14584
+ saleName: string;
14585
+ saleEndsAt: string;
14430
14586
  id: string;
14431
14587
  name: string;
14432
14588
  slug: string;
@@ -14597,10 +14753,11 @@ export declare function createAdminRpcClients(baseURL: string): {
14597
14753
  price: number;
14598
14754
  compareAtPrice: number;
14599
14755
  deletedAt: string;
14756
+ thumbnailUrl: string;
14757
+ originalPrice: number;
14600
14758
  id: string;
14601
14759
  name: string | null;
14602
14760
  isActive: boolean;
14603
- thumbnailUrl: string | null;
14604
14761
  productId: string;
14605
14762
  sku: string;
14606
14763
  trackInventory: boolean;
@@ -14897,6 +15054,25 @@ export declare function createAdminRpcClients(baseURL: string): {
14897
15054
  flat?: boolean;
14898
15055
  };
14899
15056
  };
15057
+ sales: {
15058
+ sale: {
15059
+ id: string;
15060
+ name: string;
15061
+ createdAt: string;
15062
+ updatedAt: string;
15063
+ deletedAt: string;
15064
+ brandId: string;
15065
+ isActive: boolean;
15066
+ discountType: import("@prisma/client").$Enums.DiscountType;
15067
+ discountValue: string;
15068
+ startDate: string;
15069
+ endDate: string;
15070
+ };
15071
+ id: string;
15072
+ createdAt: string;
15073
+ productId: string;
15074
+ saleId: string;
15075
+ }[];
14900
15076
  createdAt: string;
14901
15077
  updatedAt: string;
14902
15078
  deletedAt: string;
@@ -14941,6 +15117,10 @@ export declare function createAdminRpcClients(baseURL: string): {
14941
15117
  };
14942
15118
  };
14943
15119
  output: {
15120
+ isOnSale: boolean;
15121
+ saleId: string;
15122
+ saleName: string;
15123
+ saleEndsAt: string;
14944
15124
  id: string;
14945
15125
  name: string;
14946
15126
  slug: string;
@@ -15111,10 +15291,11 @@ export declare function createAdminRpcClients(baseURL: string): {
15111
15291
  price: number;
15112
15292
  compareAtPrice: number;
15113
15293
  deletedAt: string;
15294
+ thumbnailUrl: string;
15295
+ originalPrice: number;
15114
15296
  id: string;
15115
15297
  name: string | null;
15116
15298
  isActive: boolean;
15117
- thumbnailUrl: string | null;
15118
15299
  productId: string;
15119
15300
  sku: string;
15120
15301
  trackInventory: boolean;
@@ -15411,6 +15592,25 @@ export declare function createAdminRpcClients(baseURL: string): {
15411
15592
  flat?: boolean;
15412
15593
  };
15413
15594
  };
15595
+ sales: {
15596
+ sale: {
15597
+ id: string;
15598
+ name: string;
15599
+ createdAt: string;
15600
+ updatedAt: string;
15601
+ deletedAt: string;
15602
+ brandId: string;
15603
+ isActive: boolean;
15604
+ discountType: import("@prisma/client").$Enums.DiscountType;
15605
+ discountValue: string;
15606
+ startDate: string;
15607
+ endDate: string;
15608
+ };
15609
+ id: string;
15610
+ createdAt: string;
15611
+ productId: string;
15612
+ saleId: string;
15613
+ }[];
15414
15614
  createdAt: string;
15415
15615
  updatedAt: string;
15416
15616
  deletedAt: string;
@@ -15442,6 +15642,10 @@ export declare function createAdminRpcClients(baseURL: string): {
15442
15642
  };
15443
15643
  };
15444
15644
  output: {
15645
+ isOnSale: boolean;
15646
+ saleId: string;
15647
+ saleName: string;
15648
+ saleEndsAt: string;
15445
15649
  id: string;
15446
15650
  name: string;
15447
15651
  slug: string;
@@ -15612,10 +15816,11 @@ export declare function createAdminRpcClients(baseURL: string): {
15612
15816
  price: number;
15613
15817
  compareAtPrice: number;
15614
15818
  deletedAt: string;
15819
+ thumbnailUrl: string;
15820
+ originalPrice: number;
15615
15821
  id: string;
15616
15822
  name: string | null;
15617
15823
  isActive: boolean;
15618
- thumbnailUrl: string | null;
15619
15824
  productId: string;
15620
15825
  sku: string;
15621
15826
  trackInventory: boolean;
@@ -15912,6 +16117,25 @@ export declare function createAdminRpcClients(baseURL: string): {
15912
16117
  flat?: boolean;
15913
16118
  };
15914
16119
  };
16120
+ sales: {
16121
+ sale: {
16122
+ id: string;
16123
+ name: string;
16124
+ createdAt: string;
16125
+ updatedAt: string;
16126
+ deletedAt: string;
16127
+ brandId: string;
16128
+ isActive: boolean;
16129
+ discountType: import("@prisma/client").$Enums.DiscountType;
16130
+ discountValue: string;
16131
+ startDate: string;
16132
+ endDate: string;
16133
+ };
16134
+ id: string;
16135
+ createdAt: string;
16136
+ productId: string;
16137
+ saleId: string;
16138
+ }[];
15915
16139
  createdAt: string;
15916
16140
  updatedAt: string;
15917
16141
  deletedAt: string;
@@ -15967,10 +16191,11 @@ export declare function createAdminRpcClients(baseURL: string): {
15967
16191
  price: number;
15968
16192
  compareAtPrice: number;
15969
16193
  deletedAt: string;
16194
+ thumbnailUrl: string;
16195
+ originalPrice: number;
15970
16196
  id: string;
15971
16197
  name: string | null;
15972
16198
  isActive: boolean;
15973
- thumbnailUrl: string | null;
15974
16199
  productId: string;
15975
16200
  sku: string;
15976
16201
  trackInventory: boolean;
@@ -15992,45 +16217,6 @@ export declare function createAdminRpcClients(baseURL: string): {
15992
16217
  }>;
15993
16218
  } & {
15994
16219
  ":id": import("hono/client").ClientRequest<{
15995
- $patch: {
15996
- input: {
15997
- param: {
15998
- id: string;
15999
- };
16000
- };
16001
- output: {
16002
- createdAt: string;
16003
- updatedAt: string;
16004
- price: number;
16005
- compareAtPrice: number;
16006
- deletedAt: string;
16007
- id: string;
16008
- name: string | null;
16009
- isActive: boolean;
16010
- thumbnailUrl: string | null;
16011
- productId: string;
16012
- sku: string;
16013
- trackInventory: boolean;
16014
- lowStockThreshold: number | null;
16015
- };
16016
- outputFormat: "json";
16017
- status: import("hono/utils/http-status").ContentfulStatusCode;
16018
- } | {
16019
- input: {
16020
- param: {
16021
- id: string;
16022
- };
16023
- };
16024
- output: {
16025
- error: {
16026
- code: string;
16027
- message: string;
16028
- };
16029
- };
16030
- outputFormat: "json";
16031
- status: 500;
16032
- };
16033
- } & {
16034
16220
  $delete: {
16035
16221
  input: {
16036
16222
  param: {
@@ -16067,10 +16253,11 @@ export declare function createAdminRpcClients(baseURL: string): {
16067
16253
  price: number;
16068
16254
  compareAtPrice: number;
16069
16255
  deletedAt: string;
16256
+ thumbnailUrl: string;
16257
+ originalPrice: number;
16070
16258
  id: string;
16071
16259
  name: string | null;
16072
16260
  isActive: boolean;
16073
- thumbnailUrl: string | null;
16074
16261
  productId: string;
16075
16262
  sku: string;
16076
16263
  trackInventory: boolean;
@@ -16106,10 +16293,11 @@ export declare function createAdminRpcClients(baseURL: string): {
16106
16293
  price: number;
16107
16294
  compareAtPrice: number;
16108
16295
  deletedAt: string;
16296
+ thumbnailUrl: string;
16297
+ originalPrice: number;
16109
16298
  id: string;
16110
16299
  name: string | null;
16111
16300
  isActive: boolean;
16112
- thumbnailUrl: string | null;
16113
16301
  productId: string;
16114
16302
  sku: string;
16115
16303
  trackInventory: boolean;
@@ -16136,27 +16324,79 @@ export declare function createAdminRpcClients(baseURL: string): {
16136
16324
  };
16137
16325
  };
16138
16326
  } & {
16139
- ":id": {
16140
- inventory: import("hono/client").ClientRequest<{
16141
- $get: {
16142
- input: {
16143
- param: {
16144
- id: string;
16145
- };
16146
- };
16147
- output: {
16148
- error: {
16149
- code: string;
16150
- message: string;
16151
- };
16152
- };
16153
- outputFormat: "json";
16154
- status: 404;
16155
- } | {
16156
- input: {
16157
- param: {
16158
- id: string;
16159
- };
16327
+ products: {
16328
+ ":productId": {
16329
+ variants: {
16330
+ ":variantId": import("hono/client").ClientRequest<{
16331
+ $patch: {
16332
+ input: {
16333
+ param: {
16334
+ productId: string;
16335
+ } & {
16336
+ variantId: string;
16337
+ };
16338
+ };
16339
+ output: {
16340
+ createdAt: string;
16341
+ updatedAt: string;
16342
+ price: number;
16343
+ compareAtPrice: number;
16344
+ deletedAt: string;
16345
+ thumbnailUrl: string;
16346
+ originalPrice: number;
16347
+ id: string;
16348
+ name: string | null;
16349
+ isActive: boolean;
16350
+ productId: string;
16351
+ sku: string;
16352
+ trackInventory: boolean;
16353
+ lowStockThreshold: number | null;
16354
+ };
16355
+ outputFormat: "json";
16356
+ status: import("hono/utils/http-status").ContentfulStatusCode;
16357
+ } | {
16358
+ input: {
16359
+ param: {
16360
+ productId: string;
16361
+ } & {
16362
+ variantId: string;
16363
+ };
16364
+ };
16365
+ output: {
16366
+ error: {
16367
+ code: string;
16368
+ message: string;
16369
+ };
16370
+ };
16371
+ outputFormat: "json";
16372
+ status: 500;
16373
+ };
16374
+ }>;
16375
+ };
16376
+ };
16377
+ };
16378
+ } & {
16379
+ ":id": {
16380
+ inventory: import("hono/client").ClientRequest<{
16381
+ $get: {
16382
+ input: {
16383
+ param: {
16384
+ id: string;
16385
+ };
16386
+ };
16387
+ output: {
16388
+ error: {
16389
+ code: string;
16390
+ message: string;
16391
+ };
16392
+ };
16393
+ outputFormat: "json";
16394
+ status: 404;
16395
+ } | {
16396
+ input: {
16397
+ param: {
16398
+ id: string;
16399
+ };
16160
16400
  };
16161
16401
  output: {
16162
16402
  variant: {
@@ -16165,10 +16405,11 @@ export declare function createAdminRpcClients(baseURL: string): {
16165
16405
  price: number;
16166
16406
  compareAtPrice: number;
16167
16407
  deletedAt: string;
16408
+ thumbnailUrl: string;
16409
+ originalPrice: number;
16168
16410
  id: string;
16169
16411
  name: string | null;
16170
16412
  isActive: boolean;
16171
- thumbnailUrl: string | null;
16172
16413
  productId: string;
16173
16414
  sku: string;
16174
16415
  trackInventory: boolean;
@@ -18391,7 +18632,6 @@ export declare function createAdminRpcClients(baseURL: string): {
18391
18632
  items: {
18392
18633
  id: string;
18393
18634
  variant: {
18394
- price: number;
18395
18635
  product: {
18396
18636
  id: string;
18397
18637
  name: string;
@@ -18840,16 +19080,18 @@ export declare function createAdminRpcClients(baseURL: string): {
18840
19080
  };
18841
19081
  };
18842
19082
  };
18843
- id: string;
18844
- name: string | null;
18845
19083
  createdAt: string;
18846
19084
  updatedAt: string;
19085
+ price: number;
19086
+ compareAtPrice: number;
18847
19087
  deletedAt: string;
19088
+ thumbnailUrl: string;
19089
+ originalPrice: number;
19090
+ id: string;
19091
+ name: string | null;
18848
19092
  isActive: boolean;
18849
- thumbnailUrl: string | null;
18850
19093
  productId: string;
18851
19094
  sku: string;
18852
- compareAtPrice: string;
18853
19095
  trackInventory: boolean;
18854
19096
  lowStockThreshold: number | null;
18855
19097
  };
@@ -18969,7 +19211,6 @@ export declare function createAdminRpcClients(baseURL: string): {
18969
19211
  items: {
18970
19212
  id: string;
18971
19213
  variant: {
18972
- price: number;
18973
19214
  product: {
18974
19215
  id: string;
18975
19216
  name: string;
@@ -19418,16 +19659,18 @@ export declare function createAdminRpcClients(baseURL: string): {
19418
19659
  };
19419
19660
  };
19420
19661
  };
19421
- id: string;
19422
- name: string | null;
19423
19662
  createdAt: string;
19424
19663
  updatedAt: string;
19664
+ price: number;
19665
+ compareAtPrice: number;
19425
19666
  deletedAt: string;
19667
+ thumbnailUrl: string;
19668
+ originalPrice: number;
19669
+ id: string;
19670
+ name: string | null;
19426
19671
  isActive: boolean;
19427
- thumbnailUrl: string | null;
19428
19672
  productId: string;
19429
19673
  sku: string;
19430
- compareAtPrice: string;
19431
19674
  trackInventory: boolean;
19432
19675
  lowStockThreshold: number | null;
19433
19676
  };
@@ -20535,6 +20778,433 @@ export declare function createAdminRpcClients(baseURL: string): {
20535
20778
  };
20536
20779
  }>;
20537
20780
  };
20781
+ sales: {
20782
+ index: import("hono/client").ClientRequest<{
20783
+ $get: {
20784
+ input: {};
20785
+ output: {
20786
+ data: {
20787
+ id: any;
20788
+ brandId: any;
20789
+ name: any;
20790
+ discountType: any;
20791
+ discountValue: number;
20792
+ startDate: any;
20793
+ endDate: any;
20794
+ isActive: any;
20795
+ createdAt: any;
20796
+ updatedAt: any;
20797
+ brand: {
20798
+ id: any;
20799
+ name: any;
20800
+ slug: any;
20801
+ };
20802
+ products: any;
20803
+ productCount: any;
20804
+ status: "scheduled" | "ended" | "active" | "inactive";
20805
+ }[];
20806
+ pagination: {
20807
+ page: number;
20808
+ limit: number;
20809
+ total: number;
20810
+ totalPages: number;
20811
+ };
20812
+ };
20813
+ outputFormat: "json";
20814
+ status: import("hono/utils/http-status").ContentfulStatusCode;
20815
+ } | {
20816
+ input: {};
20817
+ output: {
20818
+ error: {
20819
+ code: string;
20820
+ message: any;
20821
+ };
20822
+ };
20823
+ outputFormat: "json";
20824
+ status: 500;
20825
+ };
20826
+ } & {
20827
+ $post: {
20828
+ input: {};
20829
+ output: {
20830
+ error: {
20831
+ code: string;
20832
+ message: string;
20833
+ };
20834
+ };
20835
+ outputFormat: "json";
20836
+ status: 404;
20837
+ } | {
20838
+ input: {};
20839
+ output: {
20840
+ error: {
20841
+ code: string;
20842
+ message: string;
20843
+ };
20844
+ };
20845
+ outputFormat: "json";
20846
+ status: 400;
20847
+ } | {
20848
+ input: {};
20849
+ output: {
20850
+ id: any;
20851
+ brandId: any;
20852
+ name: any;
20853
+ discountType: any;
20854
+ discountValue: number;
20855
+ startDate: any;
20856
+ endDate: any;
20857
+ isActive: any;
20858
+ createdAt: any;
20859
+ updatedAt: any;
20860
+ brand: {
20861
+ id: any;
20862
+ name: any;
20863
+ slug: any;
20864
+ };
20865
+ products: any;
20866
+ productCount: any;
20867
+ status: "scheduled" | "ended" | "active" | "inactive";
20868
+ };
20869
+ outputFormat: "json";
20870
+ status: 201;
20871
+ } | {
20872
+ input: {};
20873
+ output: {
20874
+ error: {
20875
+ code: string;
20876
+ message: any;
20877
+ };
20878
+ };
20879
+ outputFormat: "json";
20880
+ status: 500;
20881
+ };
20882
+ }>;
20883
+ } & {
20884
+ ":id": import("hono/client").ClientRequest<{
20885
+ $get: {
20886
+ input: {
20887
+ param: {
20888
+ id: string;
20889
+ };
20890
+ };
20891
+ output: {
20892
+ error: {
20893
+ code: string;
20894
+ message: string;
20895
+ };
20896
+ };
20897
+ outputFormat: "json";
20898
+ status: 404;
20899
+ } | {
20900
+ input: {
20901
+ param: {
20902
+ id: string;
20903
+ };
20904
+ };
20905
+ output: {
20906
+ id: any;
20907
+ brandId: any;
20908
+ name: any;
20909
+ discountType: any;
20910
+ discountValue: number;
20911
+ startDate: any;
20912
+ endDate: any;
20913
+ isActive: any;
20914
+ createdAt: any;
20915
+ updatedAt: any;
20916
+ brand: {
20917
+ id: any;
20918
+ name: any;
20919
+ slug: any;
20920
+ };
20921
+ products: any;
20922
+ productCount: any;
20923
+ status: "scheduled" | "ended" | "active" | "inactive";
20924
+ };
20925
+ outputFormat: "json";
20926
+ status: import("hono/utils/http-status").ContentfulStatusCode;
20927
+ } | {
20928
+ input: {
20929
+ param: {
20930
+ id: string;
20931
+ };
20932
+ };
20933
+ output: {
20934
+ error: {
20935
+ code: string;
20936
+ message: any;
20937
+ };
20938
+ };
20939
+ outputFormat: "json";
20940
+ status: 500;
20941
+ };
20942
+ } & {
20943
+ $patch: {
20944
+ input: {
20945
+ param: {
20946
+ id: string;
20947
+ };
20948
+ };
20949
+ output: {
20950
+ id: any;
20951
+ brandId: any;
20952
+ name: any;
20953
+ discountType: any;
20954
+ discountValue: number;
20955
+ startDate: any;
20956
+ endDate: any;
20957
+ isActive: any;
20958
+ createdAt: any;
20959
+ updatedAt: any;
20960
+ brand: {
20961
+ id: any;
20962
+ name: any;
20963
+ slug: any;
20964
+ };
20965
+ products: any;
20966
+ productCount: any;
20967
+ status: "scheduled" | "ended" | "active" | "inactive";
20968
+ };
20969
+ outputFormat: "json";
20970
+ status: import("hono/utils/http-status").ContentfulStatusCode;
20971
+ } | {
20972
+ input: {
20973
+ param: {
20974
+ id: string;
20975
+ };
20976
+ };
20977
+ output: {
20978
+ error: {
20979
+ code: string;
20980
+ message: string;
20981
+ };
20982
+ };
20983
+ outputFormat: "json";
20984
+ status: 404;
20985
+ } | {
20986
+ input: {
20987
+ param: {
20988
+ id: string;
20989
+ };
20990
+ };
20991
+ output: {
20992
+ error: {
20993
+ code: string;
20994
+ message: string;
20995
+ };
20996
+ };
20997
+ outputFormat: "json";
20998
+ status: 400;
20999
+ } | {
21000
+ input: {
21001
+ param: {
21002
+ id: string;
21003
+ };
21004
+ };
21005
+ output: {
21006
+ error: {
21007
+ code: string;
21008
+ message: any;
21009
+ };
21010
+ };
21011
+ outputFormat: "json";
21012
+ status: 500;
21013
+ };
21014
+ } & {
21015
+ $delete: {
21016
+ input: {
21017
+ param: {
21018
+ id: string;
21019
+ };
21020
+ };
21021
+ output: {
21022
+ error: {
21023
+ code: string;
21024
+ message: string;
21025
+ };
21026
+ };
21027
+ outputFormat: "json";
21028
+ status: 404;
21029
+ } | {
21030
+ input: {
21031
+ param: {
21032
+ id: string;
21033
+ };
21034
+ };
21035
+ output: null;
21036
+ outputFormat: "body";
21037
+ status: 204;
21038
+ } | {
21039
+ input: {
21040
+ param: {
21041
+ id: string;
21042
+ };
21043
+ };
21044
+ output: {
21045
+ error: {
21046
+ code: string;
21047
+ message: any;
21048
+ };
21049
+ };
21050
+ outputFormat: "json";
21051
+ status: 500;
21052
+ };
21053
+ }>;
21054
+ } & {
21055
+ stats: {
21056
+ overview: import("hono/client").ClientRequest<{
21057
+ $get: {
21058
+ input: {};
21059
+ output: {
21060
+ totalSales: number;
21061
+ activeSales: number;
21062
+ scheduledSales: number;
21063
+ totalProductsOnSale: number;
21064
+ };
21065
+ outputFormat: "json";
21066
+ status: import("hono/utils/http-status").ContentfulStatusCode;
21067
+ } | {
21068
+ input: {};
21069
+ output: {
21070
+ error: {
21071
+ code: string;
21072
+ message: any;
21073
+ };
21074
+ };
21075
+ outputFormat: "json";
21076
+ status: 500;
21077
+ };
21078
+ }>;
21079
+ };
21080
+ } & {
21081
+ ":id": {
21082
+ products: import("hono/client").ClientRequest<{
21083
+ $post: {
21084
+ input: {
21085
+ param: {
21086
+ id: string;
21087
+ };
21088
+ };
21089
+ output: {
21090
+ id: any;
21091
+ brandId: any;
21092
+ name: any;
21093
+ discountType: any;
21094
+ discountValue: number;
21095
+ startDate: any;
21096
+ endDate: any;
21097
+ isActive: any;
21098
+ createdAt: any;
21099
+ updatedAt: any;
21100
+ brand: {
21101
+ id: any;
21102
+ name: any;
21103
+ slug: any;
21104
+ };
21105
+ products: any;
21106
+ productCount: any;
21107
+ status: "scheduled" | "ended" | "active" | "inactive";
21108
+ };
21109
+ outputFormat: "json";
21110
+ status: import("hono/utils/http-status").ContentfulStatusCode;
21111
+ } | {
21112
+ input: {
21113
+ param: {
21114
+ id: string;
21115
+ };
21116
+ };
21117
+ output: {
21118
+ error: {
21119
+ code: string;
21120
+ message: string;
21121
+ };
21122
+ };
21123
+ outputFormat: "json";
21124
+ status: 404;
21125
+ } | {
21126
+ input: {
21127
+ param: {
21128
+ id: string;
21129
+ };
21130
+ };
21131
+ output: {
21132
+ error: {
21133
+ code: string;
21134
+ message: string;
21135
+ };
21136
+ };
21137
+ outputFormat: "json";
21138
+ status: 400;
21139
+ } | {
21140
+ input: {
21141
+ param: {
21142
+ id: string;
21143
+ };
21144
+ };
21145
+ output: {
21146
+ error: {
21147
+ code: string;
21148
+ message: any;
21149
+ };
21150
+ };
21151
+ outputFormat: "json";
21152
+ status: 500;
21153
+ };
21154
+ }>;
21155
+ };
21156
+ } & {
21157
+ ":id": {
21158
+ products: {
21159
+ ":productId": import("hono/client").ClientRequest<{
21160
+ $delete: {
21161
+ input: {
21162
+ param: {
21163
+ id: string;
21164
+ } & {
21165
+ productId: string;
21166
+ };
21167
+ };
21168
+ output: null;
21169
+ outputFormat: "body";
21170
+ status: 204;
21171
+ } | {
21172
+ input: {
21173
+ param: {
21174
+ id: string;
21175
+ } & {
21176
+ productId: string;
21177
+ };
21178
+ };
21179
+ output: {
21180
+ error: {
21181
+ code: string;
21182
+ message: string;
21183
+ };
21184
+ };
21185
+ outputFormat: "json";
21186
+ status: 404;
21187
+ } | {
21188
+ input: {
21189
+ param: {
21190
+ id: string;
21191
+ } & {
21192
+ productId: string;
21193
+ };
21194
+ };
21195
+ output: {
21196
+ error: {
21197
+ code: string;
21198
+ message: any;
21199
+ };
21200
+ };
21201
+ outputFormat: "json";
21202
+ status: 500;
21203
+ };
21204
+ }>;
21205
+ };
21206
+ };
21207
+ };
20538
21208
  };
20539
21209
  /**
20540
21210
  * Helper to create auth headers for admin RPC requests