@shophost/rest-api 0.1.19 → 0.1.21

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.
@@ -4767,6 +4767,7 @@ export declare const contract: {
4767
4767
  title?: string | undefined;
4768
4768
  description?: string | null | undefined;
4769
4769
  }>, "many">>;
4770
+ metadata: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>>>;
4770
4771
  }, "strip", import("zod").ZodTypeAny, {
4771
4772
  id: string;
4772
4773
  createdAt: Date;
@@ -4823,6 +4824,7 @@ export declare const contract: {
4823
4824
  }[] | undefined;
4824
4825
  }[] | undefined;
4825
4826
  manufacturerId?: string | null | undefined;
4827
+ metadata?: Record<string, string> | null | undefined;
4826
4828
  }, {
4827
4829
  id: string;
4828
4830
  createdAt: Date;
@@ -4879,6 +4881,7 @@ export declare const contract: {
4879
4881
  }[] | undefined;
4880
4882
  }[] | undefined;
4881
4883
  manufacturerId?: string | null | undefined;
4884
+ metadata?: Record<string, string> | null | undefined;
4882
4885
  }>, import("zod").ZodObject<Omit<{
4883
4886
  id: import("zod").ZodString;
4884
4887
  slug: import("zod").ZodOptional<import("zod").ZodString>;
@@ -4921,6 +4924,7 @@ export declare const contract: {
4921
4924
  title?: string | undefined;
4922
4925
  description?: string | null | undefined;
4923
4926
  }>, "many">>;
4927
+ metadata: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>>>;
4924
4928
  } & {
4925
4929
  title: import("zod").ZodDefault<import("zod").ZodString>;
4926
4930
  description: import("zod").ZodDefault<import("zod").ZodNullable<import("zod").ZodString>>;
@@ -5024,6 +5028,7 @@ export declare const contract: {
5024
5028
  url: string;
5025
5029
  }[] | undefined;
5026
5030
  manufacturerId?: string | null | undefined;
5031
+ metadata?: Record<string, string> | null | undefined;
5027
5032
  }, {
5028
5033
  id: string;
5029
5034
  createdAt: Date;
@@ -5059,6 +5064,7 @@ export declare const contract: {
5059
5064
  id: string;
5060
5065
  }[] | undefined;
5061
5066
  manufacturerId?: string | null | undefined;
5067
+ metadata?: Record<string, string> | null | undefined;
5062
5068
  }>]>, "many">;
5063
5069
  }, "strip", import("zod").ZodTypeAny, {
5064
5070
  meta: {
@@ -5126,6 +5132,7 @@ export declare const contract: {
5126
5132
  }[] | undefined;
5127
5133
  }[] | undefined;
5128
5134
  manufacturerId?: string | null | undefined;
5135
+ metadata?: Record<string, string> | null | undefined;
5129
5136
  } | {
5130
5137
  id: string;
5131
5138
  createdAt: Date;
@@ -5161,6 +5168,7 @@ export declare const contract: {
5161
5168
  url: string;
5162
5169
  }[] | undefined;
5163
5170
  manufacturerId?: string | null | undefined;
5171
+ metadata?: Record<string, string> | null | undefined;
5164
5172
  })[];
5165
5173
  }, {
5166
5174
  meta: {
@@ -5228,6 +5236,7 @@ export declare const contract: {
5228
5236
  }[] | undefined;
5229
5237
  }[] | undefined;
5230
5238
  manufacturerId?: string | null | undefined;
5239
+ metadata?: Record<string, string> | null | undefined;
5231
5240
  } | {
5232
5241
  id: string;
5233
5242
  createdAt: Date;
@@ -5263,6 +5272,7 @@ export declare const contract: {
5263
5272
  id: string;
5264
5273
  }[] | undefined;
5265
5274
  manufacturerId?: string | null | undefined;
5275
+ metadata?: Record<string, string> | null | undefined;
5266
5276
  })[];
5267
5277
  }>;
5268
5278
  400: import("zod").ZodObject<{
@@ -5497,6 +5507,7 @@ export declare const contract: {
5497
5507
  title?: string | undefined;
5498
5508
  description?: string | null | undefined;
5499
5509
  }>, "many">>;
5510
+ metadata: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>>>;
5500
5511
  }, "strip", import("zod").ZodTypeAny, {
5501
5512
  id: string;
5502
5513
  createdAt: Date;
@@ -5553,6 +5564,7 @@ export declare const contract: {
5553
5564
  }[] | undefined;
5554
5565
  }[] | undefined;
5555
5566
  manufacturerId?: string | null | undefined;
5567
+ metadata?: Record<string, string> | null | undefined;
5556
5568
  }, {
5557
5569
  id: string;
5558
5570
  createdAt: Date;
@@ -5609,6 +5621,7 @@ export declare const contract: {
5609
5621
  }[] | undefined;
5610
5622
  }[] | undefined;
5611
5623
  manufacturerId?: string | null | undefined;
5624
+ metadata?: Record<string, string> | null | undefined;
5612
5625
  }>, import("zod").ZodObject<Omit<{
5613
5626
  id: import("zod").ZodString;
5614
5627
  slug: import("zod").ZodOptional<import("zod").ZodString>;
@@ -5651,6 +5664,7 @@ export declare const contract: {
5651
5664
  title?: string | undefined;
5652
5665
  description?: string | null | undefined;
5653
5666
  }>, "many">>;
5667
+ metadata: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>>>;
5654
5668
  } & {
5655
5669
  title: import("zod").ZodDefault<import("zod").ZodString>;
5656
5670
  description: import("zod").ZodDefault<import("zod").ZodNullable<import("zod").ZodString>>;
@@ -5754,6 +5768,7 @@ export declare const contract: {
5754
5768
  url: string;
5755
5769
  }[] | undefined;
5756
5770
  manufacturerId?: string | null | undefined;
5771
+ metadata?: Record<string, string> | null | undefined;
5757
5772
  }, {
5758
5773
  id: string;
5759
5774
  createdAt: Date;
@@ -5789,6 +5804,7 @@ export declare const contract: {
5789
5804
  id: string;
5790
5805
  }[] | undefined;
5791
5806
  manufacturerId?: string | null | undefined;
5807
+ metadata?: Record<string, string> | null | undefined;
5792
5808
  }>]>;
5793
5809
  401: import("zod").ZodObject<{
5794
5810
  status: import("zod").ZodNumber;
@@ -5866,6 +5882,7 @@ export declare const contract: {
5866
5882
  url: string;
5867
5883
  }>, "many">>>;
5868
5884
  manufacturerId: import("zod").ZodOptional<import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>>;
5885
+ metadata: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>>>>;
5869
5886
  defaultLocale: import("zod").ZodOptional<import("zod").ZodString>;
5870
5887
  modifierGroups: import("zod").ZodOptional<import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodEffects<import("zod").ZodEffects<import("zod").ZodEffects<import("zod").ZodObject<{
5871
5888
  selectMin: import("zod").ZodNumber;
@@ -6047,6 +6064,7 @@ export declare const contract: {
6047
6064
  }[] | undefined;
6048
6065
  categories?: string[] | undefined;
6049
6066
  manufacturerId?: string | null | undefined;
6067
+ metadata?: Record<string, string> | null | undefined;
6050
6068
  }, {
6051
6069
  translations?: {
6052
6070
  locale: "id" | "af" | "sq" | "ar_dz" | "ar_bh" | "ar_eg" | "ar_iq" | "ar_jo" | "ar_kw" | "ar_lb" | "ar_ly" | "ar_ma" | "ar_om" | "ar_qa" | "ar_sa" | "ar_sy" | "ar_tn" | "ar_ae" | "ar_ye" | "eu" | "be" | "bg" | "ca" | "zh_hk" | "zh_cn" | "zh_sg" | "zh_tw" | "hr" | "cs" | "da" | "nl_be" | "nl" | "en" | "en_au" | "en_bz" | "en_ca" | "en_ie" | "en_jm" | "en_nz" | "en_za" | "en_tt" | "en_gb" | "en_us" | "et" | "fo" | "fa" | "fi" | "fr_be" | "fr_ca" | "fr_lu" | "fr" | "fr_ch" | "gd" | "de_at" | "de_li" | "de_lu" | "de" | "de_ch" | "el" | "he" | "hi" | "hu" | "is" | "ga" | "it" | "it_ch" | "ja" | "ko" | "ku" | "lv" | "lt" | "mk" | "ml" | "ms" | "mt" | "no" | "nb" | "nn" | "pl" | "pt_br" | "pt" | "pa" | "rm" | "ro" | "ro_md" | "ru" | "ru_md" | "sr" | "sk" | "sl" | "sb" | "es_ar" | "es_bo" | "es_cl" | "es_co" | "es_cr" | "es_do" | "es_ec" | "es_sv" | "es_gt" | "es_hn" | "es_mx" | "es" | "sv" | "sv_fi" | "th" | "tr" | "uk" | "ur" | "vi" | "cy" | "ji" | "zu";
@@ -6083,6 +6101,7 @@ export declare const contract: {
6083
6101
  }[] | undefined;
6084
6102
  categories?: string[] | undefined;
6085
6103
  manufacturerId?: string | null | undefined;
6104
+ metadata?: Record<string, string> | null | undefined;
6086
6105
  }>, {
6087
6106
  translations?: {
6088
6107
  locale: "id" | "af" | "sq" | "ar_dz" | "ar_bh" | "ar_eg" | "ar_iq" | "ar_jo" | "ar_kw" | "ar_lb" | "ar_ly" | "ar_ma" | "ar_om" | "ar_qa" | "ar_sa" | "ar_sy" | "ar_tn" | "ar_ae" | "ar_ye" | "eu" | "be" | "bg" | "ca" | "zh_hk" | "zh_cn" | "zh_sg" | "zh_tw" | "hr" | "cs" | "da" | "nl_be" | "nl" | "en" | "en_au" | "en_bz" | "en_ca" | "en_ie" | "en_jm" | "en_nz" | "en_za" | "en_tt" | "en_gb" | "en_us" | "et" | "fo" | "fa" | "fi" | "fr_be" | "fr_ca" | "fr_lu" | "fr" | "fr_ch" | "gd" | "de_at" | "de_li" | "de_lu" | "de" | "de_ch" | "el" | "he" | "hi" | "hu" | "is" | "ga" | "it" | "it_ch" | "ja" | "ko" | "ku" | "lv" | "lt" | "mk" | "ml" | "ms" | "mt" | "no" | "nb" | "nn" | "pl" | "pt_br" | "pt" | "pa" | "rm" | "ro" | "ro_md" | "ru" | "ru_md" | "sr" | "sk" | "sl" | "sb" | "es_ar" | "es_bo" | "es_cl" | "es_co" | "es_cr" | "es_do" | "es_ec" | "es_sv" | "es_gt" | "es_hn" | "es_mx" | "es" | "sv" | "sv_fi" | "th" | "tr" | "uk" | "ur" | "vi" | "cy" | "ji" | "zu";
@@ -6119,6 +6138,7 @@ export declare const contract: {
6119
6138
  }[] | undefined;
6120
6139
  categories?: string[] | undefined;
6121
6140
  manufacturerId?: string | null | undefined;
6141
+ metadata?: Record<string, string> | null | undefined;
6122
6142
  }, {
6123
6143
  translations?: {
6124
6144
  locale: "id" | "af" | "sq" | "ar_dz" | "ar_bh" | "ar_eg" | "ar_iq" | "ar_jo" | "ar_kw" | "ar_lb" | "ar_ly" | "ar_ma" | "ar_om" | "ar_qa" | "ar_sa" | "ar_sy" | "ar_tn" | "ar_ae" | "ar_ye" | "eu" | "be" | "bg" | "ca" | "zh_hk" | "zh_cn" | "zh_sg" | "zh_tw" | "hr" | "cs" | "da" | "nl_be" | "nl" | "en" | "en_au" | "en_bz" | "en_ca" | "en_ie" | "en_jm" | "en_nz" | "en_za" | "en_tt" | "en_gb" | "en_us" | "et" | "fo" | "fa" | "fi" | "fr_be" | "fr_ca" | "fr_lu" | "fr" | "fr_ch" | "gd" | "de_at" | "de_li" | "de_lu" | "de" | "de_ch" | "el" | "he" | "hi" | "hu" | "is" | "ga" | "it" | "it_ch" | "ja" | "ko" | "ku" | "lv" | "lt" | "mk" | "ml" | "ms" | "mt" | "no" | "nb" | "nn" | "pl" | "pt_br" | "pt" | "pa" | "rm" | "ro" | "ro_md" | "ru" | "ru_md" | "sr" | "sk" | "sl" | "sb" | "es_ar" | "es_bo" | "es_cl" | "es_co" | "es_cr" | "es_do" | "es_ec" | "es_sv" | "es_gt" | "es_hn" | "es_mx" | "es" | "sv" | "sv_fi" | "th" | "tr" | "uk" | "ur" | "vi" | "cy" | "ji" | "zu";
@@ -6155,6 +6175,7 @@ export declare const contract: {
6155
6175
  }[] | undefined;
6156
6176
  categories?: string[] | undefined;
6157
6177
  manufacturerId?: string | null | undefined;
6178
+ metadata?: Record<string, string> | null | undefined;
6158
6179
  }>;
6159
6180
  path: "/:organizationId/products/:id";
6160
6181
  headers: import("zod").ZodOptional<import("zod").ZodObject<{
@@ -6344,6 +6365,7 @@ export declare const contract: {
6344
6365
  title?: string | undefined;
6345
6366
  description?: string | null | undefined;
6346
6367
  }>, "many">>;
6368
+ metadata: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>>>;
6347
6369
  }, "strip", import("zod").ZodTypeAny, {
6348
6370
  id: string;
6349
6371
  createdAt: Date;
@@ -6400,6 +6422,7 @@ export declare const contract: {
6400
6422
  }[] | undefined;
6401
6423
  }[] | undefined;
6402
6424
  manufacturerId?: string | null | undefined;
6425
+ metadata?: Record<string, string> | null | undefined;
6403
6426
  }, {
6404
6427
  id: string;
6405
6428
  createdAt: Date;
@@ -6456,6 +6479,7 @@ export declare const contract: {
6456
6479
  }[] | undefined;
6457
6480
  }[] | undefined;
6458
6481
  manufacturerId?: string | null | undefined;
6482
+ metadata?: Record<string, string> | null | undefined;
6459
6483
  }>;
6460
6484
  400: import("zod").ZodObject<{
6461
6485
  status: import("zod").ZodNumber;
@@ -6676,7 +6700,8 @@ export declare const contract: {
6676
6700
  title?: string | undefined;
6677
6701
  description?: string | null | undefined;
6678
6702
  }>, "many">>;
6679
- }, "translations" | "slug" | "sku" | "basePrice" | "discountedBasePrice" | "currency" | "images" | "manufacturerId"> & {
6703
+ metadata: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>>>;
6704
+ }, "translations" | "slug" | "sku" | "basePrice" | "discountedBasePrice" | "currency" | "images" | "manufacturerId" | "metadata"> & {
6680
6705
  defaultLocale: import("zod").ZodString;
6681
6706
  modifierGroups: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodEffects<import("zod").ZodEffects<import("zod").ZodEffects<import("zod").ZodObject<{
6682
6707
  selectMin: import("zod").ZodNumber;
@@ -6858,6 +6883,7 @@ export declare const contract: {
6858
6883
  }[] | undefined;
6859
6884
  categories?: string[] | undefined;
6860
6885
  manufacturerId?: string | null | undefined;
6886
+ metadata?: Record<string, string> | null | undefined;
6861
6887
  }, {
6862
6888
  defaultLocale: string;
6863
6889
  basePrice: number;
@@ -6894,6 +6920,7 @@ export declare const contract: {
6894
6920
  }[] | undefined;
6895
6921
  categories?: string[] | undefined;
6896
6922
  manufacturerId?: string | null | undefined;
6923
+ metadata?: Record<string, string> | null | undefined;
6897
6924
  }>, {
6898
6925
  defaultLocale: string;
6899
6926
  basePrice: number;
@@ -6930,6 +6957,7 @@ export declare const contract: {
6930
6957
  }[] | undefined;
6931
6958
  categories?: string[] | undefined;
6932
6959
  manufacturerId?: string | null | undefined;
6960
+ metadata?: Record<string, string> | null | undefined;
6933
6961
  }, {
6934
6962
  defaultLocale: string;
6935
6963
  basePrice: number;
@@ -6966,6 +6994,7 @@ export declare const contract: {
6966
6994
  }[] | undefined;
6967
6995
  categories?: string[] | undefined;
6968
6996
  manufacturerId?: string | null | undefined;
6997
+ metadata?: Record<string, string> | null | undefined;
6969
6998
  }>;
6970
6999
  path: "/:organizationId/products";
6971
7000
  headers: import("zod").ZodOptional<import("zod").ZodObject<{
@@ -7155,6 +7184,7 @@ export declare const contract: {
7155
7184
  title?: string | undefined;
7156
7185
  description?: string | null | undefined;
7157
7186
  }>, "many">>;
7187
+ metadata: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>>>;
7158
7188
  }, "strip", import("zod").ZodTypeAny, {
7159
7189
  id: string;
7160
7190
  createdAt: Date;
@@ -7211,6 +7241,7 @@ export declare const contract: {
7211
7241
  }[] | undefined;
7212
7242
  }[] | undefined;
7213
7243
  manufacturerId?: string | null | undefined;
7244
+ metadata?: Record<string, string> | null | undefined;
7214
7245
  }, {
7215
7246
  id: string;
7216
7247
  createdAt: Date;
@@ -7267,6 +7298,7 @@ export declare const contract: {
7267
7298
  }[] | undefined;
7268
7299
  }[] | undefined;
7269
7300
  manufacturerId?: string | null | undefined;
7301
+ metadata?: Record<string, string> | null | undefined;
7270
7302
  }>;
7271
7303
  400: import("zod").ZodObject<{
7272
7304
  status: import("zod").ZodNumber;
@@ -7506,6 +7538,7 @@ export declare const contract: {
7506
7538
  title?: string | undefined;
7507
7539
  description?: string | null | undefined;
7508
7540
  }>, "many">>;
7541
+ metadata: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>>>;
7509
7542
  }, "strip", import("zod").ZodTypeAny, {
7510
7543
  id: string;
7511
7544
  createdAt: Date;
@@ -7562,6 +7595,7 @@ export declare const contract: {
7562
7595
  }[] | undefined;
7563
7596
  }[] | undefined;
7564
7597
  manufacturerId?: string | null | undefined;
7598
+ metadata?: Record<string, string> | null | undefined;
7565
7599
  }, {
7566
7600
  id: string;
7567
7601
  createdAt: Date;
@@ -7618,6 +7652,7 @@ export declare const contract: {
7618
7652
  }[] | undefined;
7619
7653
  }[] | undefined;
7620
7654
  manufacturerId?: string | null | undefined;
7655
+ metadata?: Record<string, string> | null | undefined;
7621
7656
  }>;
7622
7657
  400: import("zod").ZodObject<{
7623
7658
  status: import("zod").ZodNumber;
@@ -7958,6 +7993,7 @@ export declare const contract: {
7958
7993
  title?: string | undefined;
7959
7994
  description?: string | null | undefined;
7960
7995
  }>, "many">>;
7996
+ metadata: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>>>;
7961
7997
  }, "strip", import("zod").ZodTypeAny, {
7962
7998
  id: string;
7963
7999
  createdAt: Date;
@@ -8014,6 +8050,7 @@ export declare const contract: {
8014
8050
  }[] | undefined;
8015
8051
  }[] | undefined;
8016
8052
  manufacturerId?: string | null | undefined;
8053
+ metadata?: Record<string, string> | null | undefined;
8017
8054
  }, {
8018
8055
  id: string;
8019
8056
  createdAt: Date;
@@ -8070,6 +8107,7 @@ export declare const contract: {
8070
8107
  }[] | undefined;
8071
8108
  }[] | undefined;
8072
8109
  manufacturerId?: string | null | undefined;
8110
+ metadata?: Record<string, string> | null | undefined;
8073
8111
  }>, "many">;
8074
8112
  }, "strip", import("zod").ZodTypeAny, {
8075
8113
  meta: {
@@ -8137,6 +8175,7 @@ export declare const contract: {
8137
8175
  }[] | undefined;
8138
8176
  }[] | undefined;
8139
8177
  manufacturerId?: string | null | undefined;
8178
+ metadata?: Record<string, string> | null | undefined;
8140
8179
  }[];
8141
8180
  }, {
8142
8181
  meta: {
@@ -8204,6 +8243,7 @@ export declare const contract: {
8204
8243
  }[] | undefined;
8205
8244
  }[] | undefined;
8206
8245
  manufacturerId?: string | null | undefined;
8246
+ metadata?: Record<string, string> | null | undefined;
8207
8247
  }[];
8208
8248
  }>;
8209
8249
  400: import("zod").ZodObject<{
@@ -13565,6 +13605,7 @@ export declare const contract: {
13565
13605
  title?: string | undefined;
13566
13606
  description?: string | null | undefined;
13567
13607
  }>, "many">>;
13608
+ metadata: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>>>;
13568
13609
  } & {
13569
13610
  title: import("zod").ZodDefault<import("zod").ZodString>;
13570
13611
  description: import("zod").ZodDefault<import("zod").ZodNullable<import("zod").ZodString>>;
@@ -13668,6 +13709,7 @@ export declare const contract: {
13668
13709
  url: string;
13669
13710
  }[] | undefined;
13670
13711
  manufacturerId?: string | null | undefined;
13712
+ metadata?: Record<string, string> | null | undefined;
13671
13713
  }, {
13672
13714
  id: string;
13673
13715
  createdAt: Date;
@@ -13703,6 +13745,7 @@ export declare const contract: {
13703
13745
  id: string;
13704
13746
  }[] | undefined;
13705
13747
  manufacturerId?: string | null | undefined;
13748
+ metadata?: Record<string, string> | null | undefined;
13706
13749
  }>>;
13707
13750
  invalidProductIds: import("zod").ZodArray<import("zod").ZodString, "many">;
13708
13751
  shipping: import("zod").ZodOptional<import("zod").ZodNumber>;
@@ -13746,6 +13789,7 @@ export declare const contract: {
13746
13789
  url: string;
13747
13790
  }[] | undefined;
13748
13791
  manufacturerId?: string | null | undefined;
13792
+ metadata?: Record<string, string> | null | undefined;
13749
13793
  }>;
13750
13794
  invalidProductIds: string[];
13751
13795
  shipping?: number | undefined;
@@ -13787,6 +13831,7 @@ export declare const contract: {
13787
13831
  id: string;
13788
13832
  }[] | undefined;
13789
13833
  manufacturerId?: string | null | undefined;
13834
+ metadata?: Record<string, string> | null | undefined;
13790
13835
  }>;
13791
13836
  invalidProductIds: string[];
13792
13837
  shipping?: number | undefined;