@sayren/store-sdk 0.30.1 → 0.30.2

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
@@ -165,8 +165,8 @@ export declare const auditLogPageSchema: z.ZodObject<{
165
165
  }, z.core.$strip>;
166
166
  export type AuditLogPage = z.infer<typeof auditLogPageSchema>;
167
167
  export declare const agentPolicyDecisionSchema: z.ZodEnum<{
168
- APPROVAL_REQUIRED: "APPROVAL_REQUIRED";
169
168
  DENIED: "DENIED";
169
+ APPROVAL_REQUIRED: "APPROVAL_REQUIRED";
170
170
  ALLOW: "ALLOW";
171
171
  }>;
172
172
  export type AgentPolicyDecision = z.infer<typeof agentPolicyDecisionSchema>;
@@ -190,8 +190,8 @@ export type WritePreview = z.infer<typeof writePreviewSchema>;
190
190
  export declare const writeDryRunResultSchema: z.ZodObject<{
191
191
  dryRun: z.ZodLiteral<true>;
192
192
  decision: z.ZodEnum<{
193
- APPROVAL_REQUIRED: "APPROVAL_REQUIRED";
194
193
  DENIED: "DENIED";
194
+ APPROVAL_REQUIRED: "APPROVAL_REQUIRED";
195
195
  ALLOW: "ALLOW";
196
196
  }>;
197
197
  reason: z.ZodNullable<z.ZodString>;
@@ -966,11 +966,11 @@ export type ApiLogSummary = z.infer<typeof apiLogSummarySchema>;
966
966
  //#endregion
967
967
  //#region src/schemas/category.d.ts
968
968
  export declare const categoryProductSortSchema: z.ZodEnum<{
969
- NAME: "NAME";
970
969
  RECENT: "RECENT";
971
970
  POPULAR: "POPULAR";
972
971
  PRICE_LOW: "PRICE_LOW";
973
972
  PRICE_HIGH: "PRICE_HIGH";
973
+ NAME: "NAME";
974
974
  }>;
975
975
  export type CategoryProductSort = z.infer<typeof categoryProductSortSchema>;
976
976
  export declare const categorySchema: z.ZodObject<{
@@ -986,11 +986,11 @@ export declare const categorySchema: z.ZodObject<{
986
986
  showPc: z.ZodBoolean;
987
987
  showMobile: z.ZodBoolean;
988
988
  productSort: z.ZodEnum<{
989
- NAME: "NAME";
990
989
  RECENT: "RECENT";
991
990
  POPULAR: "POPULAR";
992
991
  PRICE_LOW: "PRICE_LOW";
993
992
  PRICE_HIGH: "PRICE_HIGH";
993
+ NAME: "NAME";
994
994
  }>;
995
995
  metaTitle: z.ZodNullable<z.ZodString>;
996
996
  metaDescription: z.ZodNullable<z.ZodString>;
@@ -1017,11 +1017,11 @@ export declare const categoryWithPathSchema: z.ZodObject<{
1017
1017
  showPc: z.ZodBoolean;
1018
1018
  showMobile: z.ZodBoolean;
1019
1019
  productSort: z.ZodEnum<{
1020
- NAME: "NAME";
1021
1020
  RECENT: "RECENT";
1022
1021
  POPULAR: "POPULAR";
1023
1022
  PRICE_LOW: "PRICE_LOW";
1024
1023
  PRICE_HIGH: "PRICE_HIGH";
1024
+ NAME: "NAME";
1025
1025
  }>;
1026
1026
  metaTitle: z.ZodNullable<z.ZodString>;
1027
1027
  metaDescription: z.ZodNullable<z.ZodString>;
@@ -1043,11 +1043,11 @@ export declare const categoryWithPathSchema: z.ZodObject<{
1043
1043
  showPc: z.ZodBoolean;
1044
1044
  showMobile: z.ZodBoolean;
1045
1045
  productSort: z.ZodEnum<{
1046
- NAME: "NAME";
1047
1046
  RECENT: "RECENT";
1048
1047
  POPULAR: "POPULAR";
1049
1048
  PRICE_LOW: "PRICE_LOW";
1050
1049
  PRICE_HIGH: "PRICE_HIGH";
1050
+ NAME: "NAME";
1051
1051
  }>;
1052
1052
  metaTitle: z.ZodNullable<z.ZodString>;
1053
1053
  metaDescription: z.ZodNullable<z.ZodString>;
@@ -1072,11 +1072,11 @@ export declare const categorySearchResultSchema: z.ZodObject<{
1072
1072
  showPc: z.ZodBoolean;
1073
1073
  showMobile: z.ZodBoolean;
1074
1074
  productSort: z.ZodEnum<{
1075
- NAME: "NAME";
1076
1075
  RECENT: "RECENT";
1077
1076
  POPULAR: "POPULAR";
1078
1077
  PRICE_LOW: "PRICE_LOW";
1079
1078
  PRICE_HIGH: "PRICE_HIGH";
1079
+ NAME: "NAME";
1080
1080
  }>;
1081
1081
  metaTitle: z.ZodNullable<z.ZodString>;
1082
1082
  metaDescription: z.ZodNullable<z.ZodString>;
@@ -1098,11 +1098,11 @@ export declare const categorySearchResultSchema: z.ZodObject<{
1098
1098
  showPc: z.ZodBoolean;
1099
1099
  showMobile: z.ZodBoolean;
1100
1100
  productSort: z.ZodEnum<{
1101
- NAME: "NAME";
1102
1101
  RECENT: "RECENT";
1103
1102
  POPULAR: "POPULAR";
1104
1103
  PRICE_LOW: "PRICE_LOW";
1105
1104
  PRICE_HIGH: "PRICE_HIGH";
1105
+ NAME: "NAME";
1106
1106
  }>;
1107
1107
  metaTitle: z.ZodNullable<z.ZodString>;
1108
1108
  metaDescription: z.ZodNullable<z.ZodString>;
@@ -1135,11 +1135,11 @@ export declare const categoryCreateRequestSchema: z.ZodObject<{
1135
1135
  showPc: z.ZodOptional<z.ZodBoolean>;
1136
1136
  showMobile: z.ZodOptional<z.ZodBoolean>;
1137
1137
  productSort: z.ZodOptional<z.ZodEnum<{
1138
- NAME: "NAME";
1139
1138
  RECENT: "RECENT";
1140
1139
  POPULAR: "POPULAR";
1141
1140
  PRICE_LOW: "PRICE_LOW";
1142
1141
  PRICE_HIGH: "PRICE_HIGH";
1142
+ NAME: "NAME";
1143
1143
  }>>;
1144
1144
  metaTitle: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1145
1145
  metaDescription: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -1154,11 +1154,11 @@ export declare const categoryPatchRequestSchema: z.ZodObject<{
1154
1154
  showPc: z.ZodOptional<z.ZodBoolean>;
1155
1155
  showMobile: z.ZodOptional<z.ZodBoolean>;
1156
1156
  productSort: z.ZodOptional<z.ZodEnum<{
1157
- NAME: "NAME";
1158
1157
  RECENT: "RECENT";
1159
1158
  POPULAR: "POPULAR";
1160
1159
  PRICE_LOW: "PRICE_LOW";
1161
1160
  PRICE_HIGH: "PRICE_HIGH";
1161
+ NAME: "NAME";
1162
1162
  }>>;
1163
1163
  metaTitle: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1164
1164
  metaDescription: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -2024,6 +2024,7 @@ export declare const flowInputFieldSchema: z.ZodObject<{
2024
2024
  type: z.ZodString;
2025
2025
  required: z.ZodBoolean;
2026
2026
  label: z.ZodString;
2027
+ placeholder: z.ZodOptional<z.ZodString>;
2027
2028
  maxLength: z.ZodOptional<z.ZodNumber>;
2028
2029
  maxFiles: z.ZodOptional<z.ZodNumber>;
2029
2030
  options: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>>;
@@ -2049,6 +2050,7 @@ export declare const flowActionSchema: z.ZodObject<{
2049
2050
  type: z.ZodString;
2050
2051
  required: z.ZodBoolean;
2051
2052
  label: z.ZodString;
2053
+ placeholder: z.ZodOptional<z.ZodString>;
2052
2054
  maxLength: z.ZodOptional<z.ZodNumber>;
2053
2055
  maxFiles: z.ZodOptional<z.ZodNumber>;
2054
2056
  options: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>>;
@@ -2087,6 +2089,15 @@ export declare const flowStateSchema: z.ZodObject<{
2087
2089
  enteredAt: z.ZodString;
2088
2090
  deadlineAt: z.ZodOptional<z.ZodString>;
2089
2091
  attachments: z.ZodOptional<z.ZodArray<z.ZodString>>;
2092
+ inputs: z.ZodOptional<z.ZodObject<{
2093
+ by: z.ZodString;
2094
+ values: z.ZodArray<z.ZodObject<{
2095
+ key: z.ZodString;
2096
+ label: z.ZodString;
2097
+ type: z.ZodString;
2098
+ value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodString>]>;
2099
+ }, z.core.$strip>>;
2100
+ }, z.core.$strip>>;
2090
2101
  progress: z.ZodOptional<z.ZodBoolean>;
2091
2102
  fields: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull, z.ZodArray<z.ZodString>]>>;
2092
2103
  }, z.core.$strip>;
@@ -2125,6 +2136,15 @@ export declare const orderItemFlowSchema: z.ZodObject<{
2125
2136
  enteredAt: z.ZodString;
2126
2137
  deadlineAt: z.ZodOptional<z.ZodString>;
2127
2138
  attachments: z.ZodOptional<z.ZodArray<z.ZodString>>;
2139
+ inputs: z.ZodOptional<z.ZodObject<{
2140
+ by: z.ZodString;
2141
+ values: z.ZodArray<z.ZodObject<{
2142
+ key: z.ZodString;
2143
+ label: z.ZodString;
2144
+ type: z.ZodString;
2145
+ value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodString>]>;
2146
+ }, z.core.$strip>>;
2147
+ }, z.core.$strip>>;
2128
2148
  progress: z.ZodOptional<z.ZodBoolean>;
2129
2149
  fields: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull, z.ZodArray<z.ZodString>]>>;
2130
2150
  }, z.core.$strip>;
@@ -2148,6 +2168,7 @@ export declare const orderItemFlowSchema: z.ZodObject<{
2148
2168
  type: z.ZodString;
2149
2169
  required: z.ZodBoolean;
2150
2170
  label: z.ZodString;
2171
+ placeholder: z.ZodOptional<z.ZodString>;
2151
2172
  maxLength: z.ZodOptional<z.ZodNumber>;
2152
2173
  maxFiles: z.ZodOptional<z.ZodNumber>;
2153
2174
  options: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>>;
@@ -2202,6 +2223,15 @@ export declare const orderItemFlowSchema: z.ZodObject<{
2202
2223
  enteredAt: z.ZodString;
2203
2224
  deadlineAt: z.ZodOptional<z.ZodString>;
2204
2225
  attachments: z.ZodOptional<z.ZodArray<z.ZodString>>;
2226
+ inputs: z.ZodOptional<z.ZodObject<{
2227
+ by: z.ZodString;
2228
+ values: z.ZodArray<z.ZodObject<{
2229
+ key: z.ZodString;
2230
+ label: z.ZodString;
2231
+ type: z.ZodString;
2232
+ value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodString>]>;
2233
+ }, z.core.$strip>>;
2234
+ }, z.core.$strip>>;
2205
2235
  progress: z.ZodOptional<z.ZodBoolean>;
2206
2236
  fields: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull, z.ZodArray<z.ZodString>]>>;
2207
2237
  }, z.core.$strip>>>;
@@ -2283,6 +2313,15 @@ export declare const flowActionResultSchema: z.ZodObject<{
2283
2313
  enteredAt: z.ZodString;
2284
2314
  deadlineAt: z.ZodOptional<z.ZodString>;
2285
2315
  attachments: z.ZodOptional<z.ZodArray<z.ZodString>>;
2316
+ inputs: z.ZodOptional<z.ZodObject<{
2317
+ by: z.ZodString;
2318
+ values: z.ZodArray<z.ZodObject<{
2319
+ key: z.ZodString;
2320
+ label: z.ZodString;
2321
+ type: z.ZodString;
2322
+ value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodString>]>;
2323
+ }, z.core.$strip>>;
2324
+ }, z.core.$strip>>;
2286
2325
  progress: z.ZodOptional<z.ZodBoolean>;
2287
2326
  fields: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull, z.ZodArray<z.ZodString>]>>;
2288
2327
  }, z.core.$strip>;
@@ -2306,6 +2345,7 @@ export declare const flowActionResultSchema: z.ZodObject<{
2306
2345
  type: z.ZodString;
2307
2346
  required: z.ZodBoolean;
2308
2347
  label: z.ZodString;
2348
+ placeholder: z.ZodOptional<z.ZodString>;
2309
2349
  maxLength: z.ZodOptional<z.ZodNumber>;
2310
2350
  maxFiles: z.ZodOptional<z.ZodNumber>;
2311
2351
  options: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>>;
@@ -6431,8 +6471,8 @@ export declare const VARIANT_COUNT_WARNING = 100;
6431
6471
  * 추가금순은 추가 선택 값이면 값의 추가금, 조합 값이면 그 값이 든 조합 추가금의 최솟값으로 비교하고 같으면 등록순이다.
6432
6472
  */
6433
6473
  export declare const optionSortSchema: z.ZodEnum<{
6434
- REGISTERED: "REGISTERED";
6435
6474
  NAME: "NAME";
6475
+ REGISTERED: "REGISTERED";
6436
6476
  PRICE_ASC: "PRICE_ASC";
6437
6477
  PRICE_DESC: "PRICE_DESC";
6438
6478
  }>;
@@ -6639,8 +6679,8 @@ export declare const productSchema: z.ZodObject<{
6639
6679
  options: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
6640
6680
  }, z.core.$strip>>>>;
6641
6681
  optionSort: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
6642
- REGISTERED: "REGISTERED";
6643
6682
  NAME: "NAME";
6683
+ REGISTERED: "REGISTERED";
6644
6684
  PRICE_ASC: "PRICE_ASC";
6645
6685
  PRICE_DESC: "PRICE_DESC";
6646
6686
  }>>>;
@@ -6799,8 +6839,8 @@ export declare const optionModelRequestSchema: z.ZodObject<{
6799
6839
  options: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
6800
6840
  }, z.core.$strip>>>;
6801
6841
  optionSort: z.ZodOptional<z.ZodEnum<{
6802
- REGISTERED: "REGISTERED";
6803
6842
  NAME: "NAME";
6843
+ REGISTERED: "REGISTERED";
6804
6844
  PRICE_ASC: "PRICE_ASC";
6805
6845
  PRICE_DESC: "PRICE_DESC";
6806
6846
  }>>;
@@ -6860,8 +6900,8 @@ export declare const optionModelSchema: z.ZodObject<{
6860
6900
  options: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
6861
6901
  }, z.core.$strip>>>>;
6862
6902
  optionSort: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
6863
- REGISTERED: "REGISTERED";
6864
6903
  NAME: "NAME";
6904
+ REGISTERED: "REGISTERED";
6865
6905
  PRICE_ASC: "PRICE_ASC";
6866
6906
  PRICE_DESC: "PRICE_DESC";
6867
6907
  }>>>;
@@ -6973,8 +7013,8 @@ export declare const productCreateRequestSchema: z.ZodObject<{
6973
7013
  options: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
6974
7014
  }, z.core.$strip>>>;
6975
7015
  optionSort: z.ZodOptional<z.ZodEnum<{
6976
- REGISTERED: "REGISTERED";
6977
7016
  NAME: "NAME";
7017
+ REGISTERED: "REGISTERED";
6978
7018
  PRICE_ASC: "PRICE_ASC";
6979
7019
  PRICE_DESC: "PRICE_DESC";
6980
7020
  }>>;
@@ -7087,8 +7127,8 @@ export declare const productReplaceRequestSchema: z.ZodObject<{
7087
7127
  options: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
7088
7128
  }, z.core.$strip>>>;
7089
7129
  optionSort: z.ZodOptional<z.ZodEnum<{
7090
- REGISTERED: "REGISTERED";
7091
7130
  NAME: "NAME";
7131
+ REGISTERED: "REGISTERED";
7092
7132
  PRICE_ASC: "PRICE_ASC";
7093
7133
  PRICE_DESC: "PRICE_DESC";
7094
7134
  }>>;
@@ -7164,9 +7204,9 @@ export declare const productPatchRequestSchema: z.ZodObject<{
7164
7204
  }, z.core.$strict>;
7165
7205
  export type ProductPatchRequest = z.infer<typeof productPatchRequestSchema>;
7166
7206
  export declare const productSortSchema: z.ZodEnum<{
7207
+ "updatedAt.desc": "updatedAt.desc";
7167
7208
  "createdAt.desc": "createdAt.desc";
7168
7209
  "createdAt.asc": "createdAt.asc";
7169
- "updatedAt.desc": "updatedAt.desc";
7170
7210
  "salePrice.asc": "salePrice.asc";
7171
7211
  "salePrice.desc": "salePrice.desc";
7172
7212
  }>;
@@ -7195,9 +7235,9 @@ export declare const productListQuerySchema: z.ZodObject<{
7195
7235
  sellerCode: z.ZodOptional<z.ZodString>;
7196
7236
  productNo: z.ZodOptional<z.ZodString>;
7197
7237
  sort: z.ZodOptional<z.ZodEnum<{
7238
+ "updatedAt.desc": "updatedAt.desc";
7198
7239
  "createdAt.desc": "createdAt.desc";
7199
7240
  "createdAt.asc": "createdAt.asc";
7200
- "updatedAt.desc": "updatedAt.desc";
7201
7241
  "salePrice.asc": "salePrice.asc";
7202
7242
  "salePrice.desc": "salePrice.desc";
7203
7243
  }>>;
@@ -7258,8 +7298,8 @@ export declare const savedOptionSetSchema: z.ZodObject<{
7258
7298
  optionSetId: z.ZodString;
7259
7299
  name: z.ZodString;
7260
7300
  optionSort: z.ZodEnum<{
7261
- REGISTERED: "REGISTERED";
7262
7301
  NAME: "NAME";
7302
+ REGISTERED: "REGISTERED";
7263
7303
  PRICE_ASC: "PRICE_ASC";
7264
7304
  PRICE_DESC: "PRICE_DESC";
7265
7305
  }>;
@@ -7326,8 +7366,8 @@ export declare const savedCustomInputRequestSchema: z.ZodObject<{
7326
7366
  export declare const savedOptionSetRequestSchema: z.ZodObject<{
7327
7367
  name: z.ZodString;
7328
7368
  optionSort: z.ZodDefault<z.ZodEnum<{
7329
- REGISTERED: "REGISTERED";
7330
7369
  NAME: "NAME";
7370
+ REGISTERED: "REGISTERED";
7331
7371
  PRICE_ASC: "PRICE_ASC";
7332
7372
  PRICE_DESC: "PRICE_DESC";
7333
7373
  }>>;
@@ -7382,8 +7422,8 @@ export declare const savedOptionSetFromProductResultSchema: z.ZodObject<{
7382
7422
  optionSetId: z.ZodString;
7383
7423
  name: z.ZodString;
7384
7424
  optionSort: z.ZodEnum<{
7385
- REGISTERED: "REGISTERED";
7386
7425
  NAME: "NAME";
7426
+ REGISTERED: "REGISTERED";
7387
7427
  PRICE_ASC: "PRICE_ASC";
7388
7428
  PRICE_DESC: "PRICE_DESC";
7389
7429
  }>;
@@ -9498,7 +9538,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
9498
9538
  type?: string | undefined;
9499
9539
  options?: string[] | null | undefined;
9500
9540
  }[];
9501
- optionSort: "REGISTERED" | "NAME" | "PRICE_ASC" | "PRICE_DESC";
9541
+ optionSort: "NAME" | "REGISTERED" | "PRICE_ASC" | "PRICE_DESC";
9502
9542
  fulfillment: UnknownFulfillment | {
9503
9543
  type: "SHIPPING";
9504
9544
  shipping: {
@@ -9606,7 +9646,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
9606
9646
  type?: string | undefined;
9607
9647
  options?: string[] | null | undefined;
9608
9648
  }[];
9609
- optionSort: "REGISTERED" | "NAME" | "PRICE_ASC" | "PRICE_DESC";
9649
+ optionSort: "NAME" | "REGISTERED" | "PRICE_ASC" | "PRICE_DESC";
9610
9650
  fulfillment: UnknownFulfillment | {
9611
9651
  type: "SHIPPING";
9612
9652
  shipping: {
@@ -9714,7 +9754,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
9714
9754
  type?: string | undefined;
9715
9755
  options?: string[] | null | undefined;
9716
9756
  }[];
9717
- optionSort: "REGISTERED" | "NAME" | "PRICE_ASC" | "PRICE_DESC";
9757
+ optionSort: "NAME" | "REGISTERED" | "PRICE_ASC" | "PRICE_DESC";
9718
9758
  fulfillment: UnknownFulfillment | {
9719
9759
  type: "SHIPPING";
9720
9760
  shipping: {
@@ -9824,7 +9864,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
9824
9864
  type?: string | undefined;
9825
9865
  options?: string[] | null | undefined;
9826
9866
  }[];
9827
- optionSort: "REGISTERED" | "NAME" | "PRICE_ASC" | "PRICE_DESC";
9867
+ optionSort: "NAME" | "REGISTERED" | "PRICE_ASC" | "PRICE_DESC";
9828
9868
  }>;
9829
9869
  /**
9830
9870
  * 옵션 모델 전체 교체 — variants는 valueNames로 축 값을 지목한다.
@@ -9882,7 +9922,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
9882
9922
  type?: string | undefined;
9883
9923
  options?: string[] | null | undefined;
9884
9924
  }[];
9885
- optionSort: "REGISTERED" | "NAME" | "PRICE_ASC" | "PRICE_DESC";
9925
+ optionSort: "NAME" | "REGISTERED" | "PRICE_ASC" | "PRICE_DESC";
9886
9926
  }>;
9887
9927
  /** 재고 변경 — stockQuantity(절대값) 또는 adjustment(증감) 하나만 전달한다 */
9888
9928
  updateVariantStock: (productId: string, variantId: string, body: VariantStockRequest) => Promise<{
@@ -9931,7 +9971,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
9931
9971
  contents: {
9932
9972
  optionSetId: string;
9933
9973
  name: string;
9934
- optionSort: "REGISTERED" | "NAME" | "PRICE_ASC" | "PRICE_DESC";
9974
+ optionSort: "NAME" | "REGISTERED" | "PRICE_ASC" | "PRICE_DESC";
9935
9975
  groups: {
9936
9976
  name: string;
9937
9977
  kind: string;
@@ -9958,7 +9998,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
9958
9998
  get: (optionSetId: string) => Promise<{
9959
9999
  optionSetId: string;
9960
10000
  name: string;
9961
- optionSort: "REGISTERED" | "NAME" | "PRICE_ASC" | "PRICE_DESC";
10001
+ optionSort: "NAME" | "REGISTERED" | "PRICE_ASC" | "PRICE_DESC";
9962
10002
  groups: {
9963
10003
  name: string;
9964
10004
  kind: string;
@@ -9985,7 +10025,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
9985
10025
  create: (body: SavedOptionSetRequestInput) => Promise<{
9986
10026
  optionSetId: string;
9987
10027
  name: string;
9988
- optionSort: "REGISTERED" | "NAME" | "PRICE_ASC" | "PRICE_DESC";
10028
+ optionSort: "NAME" | "REGISTERED" | "PRICE_ASC" | "PRICE_DESC";
9989
10029
  groups: {
9990
10030
  name: string;
9991
10031
  kind: string;
@@ -10012,7 +10052,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
10012
10052
  update: (optionSetId: string, body: SavedOptionSetRequestInput) => Promise<{
10013
10053
  optionSetId: string;
10014
10054
  name: string;
10015
- optionSort: "REGISTERED" | "NAME" | "PRICE_ASC" | "PRICE_DESC";
10055
+ optionSort: "NAME" | "REGISTERED" | "PRICE_ASC" | "PRICE_DESC";
10016
10056
  groups: {
10017
10057
  name: string;
10018
10058
  kind: string;
@@ -10041,7 +10081,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
10041
10081
  optionSet: {
10042
10082
  optionSetId: string;
10043
10083
  name: string;
10044
- optionSort: "REGISTERED" | "NAME" | "PRICE_ASC" | "PRICE_DESC";
10084
+ optionSort: "NAME" | "REGISTERED" | "PRICE_ASC" | "PRICE_DESC";
10045
10085
  groups: {
10046
10086
  name: string;
10047
10087
  kind: string;
@@ -10392,7 +10432,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
10392
10432
  visible: boolean;
10393
10433
  showPc: boolean;
10394
10434
  showMobile: boolean;
10395
- productSort: "NAME" | "RECENT" | "POPULAR" | "PRICE_LOW" | "PRICE_HIGH";
10435
+ productSort: "RECENT" | "POPULAR" | "PRICE_LOW" | "PRICE_HIGH" | "NAME";
10396
10436
  metaTitle: string | null;
10397
10437
  metaDescription: string | null;
10398
10438
  metaKeywords: string | null;
@@ -10413,7 +10453,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
10413
10453
  visible: boolean;
10414
10454
  showPc: boolean;
10415
10455
  showMobile: boolean;
10416
- productSort: "NAME" | "RECENT" | "POPULAR" | "PRICE_LOW" | "PRICE_HIGH";
10456
+ productSort: "RECENT" | "POPULAR" | "PRICE_LOW" | "PRICE_HIGH" | "NAME";
10417
10457
  metaTitle: string | null;
10418
10458
  metaDescription: string | null;
10419
10459
  metaKeywords: string | null;
@@ -10432,7 +10472,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
10432
10472
  visible: boolean;
10433
10473
  showPc: boolean;
10434
10474
  showMobile: boolean;
10435
- productSort: "NAME" | "RECENT" | "POPULAR" | "PRICE_LOW" | "PRICE_HIGH";
10475
+ productSort: "RECENT" | "POPULAR" | "PRICE_LOW" | "PRICE_HIGH" | "NAME";
10436
10476
  metaTitle: string | null;
10437
10477
  metaDescription: string | null;
10438
10478
  metaKeywords: string | null;
@@ -10454,7 +10494,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
10454
10494
  visible: boolean;
10455
10495
  showPc: boolean;
10456
10496
  showMobile: boolean;
10457
- productSort: "NAME" | "RECENT" | "POPULAR" | "PRICE_LOW" | "PRICE_HIGH";
10497
+ productSort: "RECENT" | "POPULAR" | "PRICE_LOW" | "PRICE_HIGH" | "NAME";
10458
10498
  metaTitle: string | null;
10459
10499
  metaDescription: string | null;
10460
10500
  metaKeywords: string | null;
@@ -10473,7 +10513,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
10473
10513
  visible: boolean;
10474
10514
  showPc: boolean;
10475
10515
  showMobile: boolean;
10476
- productSort: "NAME" | "RECENT" | "POPULAR" | "PRICE_LOW" | "PRICE_HIGH";
10516
+ productSort: "RECENT" | "POPULAR" | "PRICE_LOW" | "PRICE_HIGH" | "NAME";
10477
10517
  metaTitle: string | null;
10478
10518
  metaDescription: string | null;
10479
10519
  metaKeywords: string | null;
@@ -10504,7 +10544,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
10504
10544
  visible: boolean;
10505
10545
  showPc: boolean;
10506
10546
  showMobile: boolean;
10507
- productSort: "NAME" | "RECENT" | "POPULAR" | "PRICE_LOW" | "PRICE_HIGH";
10547
+ productSort: "RECENT" | "POPULAR" | "PRICE_LOW" | "PRICE_HIGH" | "NAME";
10508
10548
  metaTitle: string | null;
10509
10549
  metaDescription: string | null;
10510
10550
  metaKeywords: string | null;
@@ -10524,7 +10564,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
10524
10564
  visible: boolean;
10525
10565
  showPc: boolean;
10526
10566
  showMobile: boolean;
10527
- productSort: "NAME" | "RECENT" | "POPULAR" | "PRICE_LOW" | "PRICE_HIGH";
10567
+ productSort: "RECENT" | "POPULAR" | "PRICE_LOW" | "PRICE_HIGH" | "NAME";
10528
10568
  metaTitle: string | null;
10529
10569
  metaDescription: string | null;
10530
10570
  metaKeywords: string | null;
@@ -11115,6 +11155,15 @@ export declare function createStoreClient(options: StoreClientOptions): {
11115
11155
  message?: string | undefined;
11116
11156
  deadlineAt?: string | undefined;
11117
11157
  attachments?: string[] | undefined;
11158
+ inputs?: {
11159
+ by: string;
11160
+ values: {
11161
+ key: string;
11162
+ label: string;
11163
+ type: string;
11164
+ value: string | number | boolean | string[];
11165
+ }[];
11166
+ } | undefined;
11118
11167
  progress?: boolean | undefined;
11119
11168
  };
11120
11169
  actions: {
@@ -11133,6 +11182,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
11133
11182
  type: string;
11134
11183
  required: boolean;
11135
11184
  label: string;
11185
+ placeholder?: string | undefined;
11136
11186
  maxLength?: number | undefined;
11137
11187
  maxFiles?: number | undefined;
11138
11188
  options?: (string | number)[] | undefined;
@@ -11160,6 +11210,15 @@ export declare function createStoreClient(options: StoreClientOptions): {
11160
11210
  message?: string | undefined;
11161
11211
  deadlineAt?: string | undefined;
11162
11212
  attachments?: string[] | undefined;
11213
+ inputs?: {
11214
+ by: string;
11215
+ values: {
11216
+ key: string;
11217
+ label: string;
11218
+ type: string;
11219
+ value: string | number | boolean | string[];
11220
+ }[];
11221
+ } | undefined;
11163
11222
  progress?: boolean | undefined;
11164
11223
  }[] | undefined;
11165
11224
  }>;
@@ -11179,6 +11238,15 @@ export declare function createStoreClient(options: StoreClientOptions): {
11179
11238
  message?: string | undefined;
11180
11239
  deadlineAt?: string | undefined;
11181
11240
  attachments?: string[] | undefined;
11241
+ inputs?: {
11242
+ by: string;
11243
+ values: {
11244
+ key: string;
11245
+ label: string;
11246
+ type: string;
11247
+ value: string | number | boolean | string[];
11248
+ }[];
11249
+ } | undefined;
11182
11250
  progress?: boolean | undefined;
11183
11251
  };
11184
11252
  actions: {
@@ -11197,6 +11265,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
11197
11265
  type: string;
11198
11266
  required: boolean;
11199
11267
  label: string;
11268
+ placeholder?: string | undefined;
11200
11269
  maxLength?: number | undefined;
11201
11270
  maxFiles?: number | undefined;
11202
11271
  options?: (string | number)[] | undefined;
@@ -11221,6 +11290,15 @@ export declare function createStoreClient(options: StoreClientOptions): {
11221
11290
  message?: string | undefined;
11222
11291
  deadlineAt?: string | undefined;
11223
11292
  attachments?: string[] | undefined;
11293
+ inputs?: {
11294
+ by: string;
11295
+ values: {
11296
+ key: string;
11297
+ label: string;
11298
+ type: string;
11299
+ value: string | number | boolean | string[];
11300
+ }[];
11301
+ } | undefined;
11224
11302
  progress?: boolean | undefined;
11225
11303
  };
11226
11304
  actions: {
@@ -11239,6 +11317,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
11239
11317
  type: string;
11240
11318
  required: boolean;
11241
11319
  label: string;
11320
+ placeholder?: string | undefined;
11242
11321
  maxLength?: number | undefined;
11243
11322
  maxFiles?: number | undefined;
11244
11323
  options?: (string | number)[] | undefined;
@@ -11263,6 +11342,15 @@ export declare function createStoreClient(options: StoreClientOptions): {
11263
11342
  message?: string | undefined;
11264
11343
  deadlineAt?: string | undefined;
11265
11344
  attachments?: string[] | undefined;
11345
+ inputs?: {
11346
+ by: string;
11347
+ values: {
11348
+ key: string;
11349
+ label: string;
11350
+ type: string;
11351
+ value: string | number | boolean | string[];
11352
+ }[];
11353
+ } | undefined;
11266
11354
  progress?: boolean | undefined;
11267
11355
  };
11268
11356
  actions: {
@@ -11281,6 +11369,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
11281
11369
  type: string;
11282
11370
  required: boolean;
11283
11371
  label: string;
11372
+ placeholder?: string | undefined;
11284
11373
  maxLength?: number | undefined;
11285
11374
  maxFiles?: number | undefined;
11286
11375
  options?: (string | number)[] | undefined;
package/dist/index.mjs CHANGED
@@ -2592,9 +2592,10 @@ const collectionPreviewSchema = z.object({
2592
2592
  */
2593
2593
  const flowInputFieldSchema = z.object({
2594
2594
  key: z.string(),
2595
- type: z.string().describe("text · number · select · date · datetime · image (늘어날 수 있다)"),
2595
+ type: z.string().describe("text · textarea · number · select · radio · checkbox · boolean · date · datetime · image (늘어날 수 있다). 값: checkbox는 고른 선택지 배열, boolean은 참거짓(필수면 true), date는 `YYYY-MM-DD`, datetime은 오프셋 있는 ISO 8601, image는 https 주소 배열"),
2596
2596
  required: z.boolean(),
2597
2597
  label: z.string(),
2598
+ placeholder: z.string().optional().describe("입력 안내"),
2598
2599
  maxLength: z.number().int().optional(),
2599
2600
  maxFiles: z.number().int().optional(),
2600
2601
  options: z.array(z.union([z.string(), z.number()])).optional()
@@ -2634,6 +2635,20 @@ const flowStateSchema = z.object({
2634
2635
  enteredAt: z.string().describe("이 상태에 들어온 시각(ISO 8601)"),
2635
2636
  deadlineAt: z.string().optional().describe("가장 가까운 기한(ISO 8601)"),
2636
2637
  attachments: z.array(z.string()).optional().describe("가장 최근 행동이 붙인 첨부 주소(시안 등, #115). 없으면 생략"),
2638
+ inputs: z.object({
2639
+ by: z.string().describe("적은 사람 — seller · buyer"),
2640
+ values: z.array(z.object({
2641
+ key: z.string(),
2642
+ label: z.string(),
2643
+ type: z.string(),
2644
+ value: z.union([
2645
+ z.string(),
2646
+ z.number(),
2647
+ z.boolean(),
2648
+ z.array(z.string())
2649
+ ])
2650
+ }))
2651
+ }).optional().describe("이 상태로 오게 한 행동의 입력값(수정 내용 등, #115). 없으면 생략"),
2637
2652
  progress: z.boolean().optional().describe("진행 단계 표시에 넣는 상태인가"),
2638
2653
  fields: z.record(z.string(), flowFieldValueSchema).describe("보는 사람 공개 범위의 커스텀 필드")
2639
2654
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sayren/store-sdk",
3
- "version": "0.30.1",
3
+ "version": "0.30.2",
4
4
  "main": "./dist/index.mjs",
5
5
  "types": "./dist/index.d.mts",
6
6
  "exports": {
@@ -10,9 +10,14 @@ import { orderItemStatusSchema } from "./common";
10
10
 
11
11
  export const flowInputFieldSchema = z.object({
12
12
  key: z.string(),
13
- type: z.string().describe("text · number · select · date · datetime · image (늘어날 수 있다)"),
13
+ type: z
14
+ .string()
15
+ .describe(
16
+ "text · textarea · number · select · radio · checkbox · boolean · date · datetime · image (늘어날 수 있다). 값: checkbox는 고른 선택지 배열, boolean은 참거짓(필수면 true), date는 `YYYY-MM-DD`, datetime은 오프셋 있는 ISO 8601, image는 https 주소 배열",
17
+ ),
14
18
  required: z.boolean(),
15
19
  label: z.string(),
20
+ placeholder: z.string().optional().describe("입력 안내"),
16
21
  maxLength: z.number().int().optional(),
17
22
  maxFiles: z.number().int().optional(),
18
23
  options: z.array(z.union([z.string(), z.number()])).optional(),
@@ -62,6 +67,20 @@ export const flowStateSchema = z.object({
62
67
  .array(z.string())
63
68
  .optional()
64
69
  .describe("가장 최근 행동이 붙인 첨부 주소(시안 등, #115). 없으면 생략"),
70
+ inputs: z
71
+ .object({
72
+ by: z.string().describe("적은 사람 — seller · buyer"),
73
+ values: z.array(
74
+ z.object({
75
+ key: z.string(),
76
+ label: z.string(),
77
+ type: z.string(),
78
+ value: z.union([z.string(), z.number(), z.boolean(), z.array(z.string())]),
79
+ }),
80
+ ),
81
+ })
82
+ .optional()
83
+ .describe("이 상태로 오게 한 행동의 입력값(수정 내용 등, #115). 없으면 생략"),
65
84
  progress: z.boolean().optional().describe("진행 단계 표시에 넣는 상태인가"),
66
85
  fields: z.record(z.string(), flowFieldValueSchema).describe("보는 사람 공개 범위의 커스텀 필드"),
67
86
  });