@sayren/store-sdk 0.29.4 → 0.29.6

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
- DENIED: "DENIED";
169
168
  APPROVAL_REQUIRED: "APPROVAL_REQUIRED";
169
+ DENIED: "DENIED";
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
- DENIED: "DENIED";
194
193
  APPROVAL_REQUIRED: "APPROVAL_REQUIRED";
194
+ DENIED: "DENIED";
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";
969
970
  RECENT: "RECENT";
970
971
  POPULAR: "POPULAR";
971
972
  PRICE_LOW: "PRICE_LOW";
972
973
  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";
989
990
  RECENT: "RECENT";
990
991
  POPULAR: "POPULAR";
991
992
  PRICE_LOW: "PRICE_LOW";
992
993
  PRICE_HIGH: "PRICE_HIGH";
993
- NAME: "NAME";
994
994
  }>;
995
995
  metaTitle: z.ZodNullable<z.ZodString>;
996
996
  metaDescription: z.ZodNullable<z.ZodString>;
@@ -1016,11 +1016,11 @@ export declare const categoryWithPathSchema: z.ZodObject<{
1016
1016
  showPc: z.ZodBoolean;
1017
1017
  showMobile: z.ZodBoolean;
1018
1018
  productSort: z.ZodEnum<{
1019
+ NAME: "NAME";
1019
1020
  RECENT: "RECENT";
1020
1021
  POPULAR: "POPULAR";
1021
1022
  PRICE_LOW: "PRICE_LOW";
1022
1023
  PRICE_HIGH: "PRICE_HIGH";
1023
- NAME: "NAME";
1024
1024
  }>;
1025
1025
  metaTitle: z.ZodNullable<z.ZodString>;
1026
1026
  metaDescription: z.ZodNullable<z.ZodString>;
@@ -1041,11 +1041,11 @@ export declare const categoryWithPathSchema: z.ZodObject<{
1041
1041
  showPc: z.ZodBoolean;
1042
1042
  showMobile: z.ZodBoolean;
1043
1043
  productSort: z.ZodEnum<{
1044
+ NAME: "NAME";
1044
1045
  RECENT: "RECENT";
1045
1046
  POPULAR: "POPULAR";
1046
1047
  PRICE_LOW: "PRICE_LOW";
1047
1048
  PRICE_HIGH: "PRICE_HIGH";
1048
- NAME: "NAME";
1049
1049
  }>;
1050
1050
  metaTitle: z.ZodNullable<z.ZodString>;
1051
1051
  metaDescription: z.ZodNullable<z.ZodString>;
@@ -1069,11 +1069,11 @@ export declare const categorySearchResultSchema: z.ZodObject<{
1069
1069
  showPc: z.ZodBoolean;
1070
1070
  showMobile: z.ZodBoolean;
1071
1071
  productSort: z.ZodEnum<{
1072
+ NAME: "NAME";
1072
1073
  RECENT: "RECENT";
1073
1074
  POPULAR: "POPULAR";
1074
1075
  PRICE_LOW: "PRICE_LOW";
1075
1076
  PRICE_HIGH: "PRICE_HIGH";
1076
- NAME: "NAME";
1077
1077
  }>;
1078
1078
  metaTitle: z.ZodNullable<z.ZodString>;
1079
1079
  metaDescription: z.ZodNullable<z.ZodString>;
@@ -1094,11 +1094,11 @@ export declare const categorySearchResultSchema: z.ZodObject<{
1094
1094
  showPc: z.ZodBoolean;
1095
1095
  showMobile: z.ZodBoolean;
1096
1096
  productSort: z.ZodEnum<{
1097
+ NAME: "NAME";
1097
1098
  RECENT: "RECENT";
1098
1099
  POPULAR: "POPULAR";
1099
1100
  PRICE_LOW: "PRICE_LOW";
1100
1101
  PRICE_HIGH: "PRICE_HIGH";
1101
- NAME: "NAME";
1102
1102
  }>;
1103
1103
  metaTitle: z.ZodNullable<z.ZodString>;
1104
1104
  metaDescription: z.ZodNullable<z.ZodString>;
@@ -1130,11 +1130,11 @@ export declare const categoryCreateRequestSchema: z.ZodObject<{
1130
1130
  showPc: z.ZodOptional<z.ZodBoolean>;
1131
1131
  showMobile: z.ZodOptional<z.ZodBoolean>;
1132
1132
  productSort: z.ZodOptional<z.ZodEnum<{
1133
+ NAME: "NAME";
1133
1134
  RECENT: "RECENT";
1134
1135
  POPULAR: "POPULAR";
1135
1136
  PRICE_LOW: "PRICE_LOW";
1136
1137
  PRICE_HIGH: "PRICE_HIGH";
1137
- NAME: "NAME";
1138
1138
  }>>;
1139
1139
  metaTitle: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1140
1140
  metaDescription: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -1149,11 +1149,11 @@ export declare const categoryPatchRequestSchema: z.ZodObject<{
1149
1149
  showPc: z.ZodOptional<z.ZodBoolean>;
1150
1150
  showMobile: z.ZodOptional<z.ZodBoolean>;
1151
1151
  productSort: z.ZodOptional<z.ZodEnum<{
1152
+ NAME: "NAME";
1152
1153
  RECENT: "RECENT";
1153
1154
  POPULAR: "POPULAR";
1154
1155
  PRICE_LOW: "PRICE_LOW";
1155
1156
  PRICE_HIGH: "PRICE_HIGH";
1156
- NAME: "NAME";
1157
1157
  }>>;
1158
1158
  metaTitle: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1159
1159
  metaDescription: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -1302,6 +1302,7 @@ export declare const claimReturnAddressSchema: z.ZodObject<{
1302
1302
  export type ClaimReturnAddress = z.infer<typeof claimReturnAddressSchema>;
1303
1303
  export declare const claimSchema: z.ZodObject<{
1304
1304
  claimId: z.ZodString;
1305
+ claimNo: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
1305
1306
  type: z.ZodEnum<{
1306
1307
  RETURN: "RETURN";
1307
1308
  EXCHANGE: "EXCHANGE";
@@ -1391,6 +1392,7 @@ export declare const claimListQuerySchema: z.ZodObject<{
1391
1392
  /** `GET /v1/claims/{claimId}` 응답 — 클레임 + 상태 이력 */
1392
1393
  export declare const claimDetailSchema: z.ZodObject<{
1393
1394
  claimId: z.ZodString;
1395
+ claimNo: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
1394
1396
  type: z.ZodEnum<{
1395
1397
  RETURN: "RETURN";
1396
1398
  EXCHANGE: "EXCHANGE";
@@ -3478,6 +3480,7 @@ export type OrderItemFulfillmentSnapshotView = z.infer<typeof orderItemFulfillme
3478
3480
  //#region src/schemas/order.d.ts
3479
3481
  export declare const orderSummarySchema: z.ZodObject<{
3480
3482
  orderId: z.ZodString;
3483
+ orderNo: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
3481
3484
  ordererName: z.ZodString;
3482
3485
  itemCount: z.ZodNumber;
3483
3486
  totalAmount: z.ZodNumber;
@@ -3515,6 +3518,7 @@ export declare const orderItemFulfillmentSchema: z.ZodObject<{
3515
3518
  export type OrderItemFulfillment = z.infer<typeof orderItemFulfillmentSchema>;
3516
3519
  export declare const orderItemSchema: z.ZodObject<{
3517
3520
  orderItemId: z.ZodString;
3521
+ orderItemNo: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
3518
3522
  orderId: z.ZodString;
3519
3523
  status: z.ZodEnum<{
3520
3524
  PAID: "PAID";
@@ -3608,6 +3612,7 @@ export declare const orderDiscountSchema: z.ZodObject<{
3608
3612
  export type OrderDiscount = z.infer<typeof orderDiscountSchema>;
3609
3613
  export declare const orderSchema: z.ZodObject<{
3610
3614
  orderId: z.ZodString;
3615
+ orderNo: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
3611
3616
  orderedAt: z.ZodString;
3612
3617
  orderer: z.ZodObject<{
3613
3618
  name: z.ZodString;
@@ -3676,6 +3681,7 @@ export declare const orderSchema: z.ZodObject<{
3676
3681
  testPayment: z.ZodBoolean;
3677
3682
  items: z.ZodArray<z.ZodObject<{
3678
3683
  orderItemId: z.ZodString;
3684
+ orderItemNo: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
3679
3685
  orderId: z.ZodString;
3680
3686
  status: z.ZodEnum<{
3681
3687
  PAID: "PAID";
@@ -3767,6 +3773,7 @@ export declare const orderSummaryPageSchema: z.ZodObject<{
3767
3773
  totalPages: z.ZodNumber;
3768
3774
  contents: z.ZodArray<z.ZodObject<{
3769
3775
  orderId: z.ZodString;
3776
+ orderNo: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
3770
3777
  ordererName: z.ZodString;
3771
3778
  itemCount: z.ZodNumber;
3772
3779
  totalAmount: z.ZodNumber;
@@ -3793,6 +3800,7 @@ export declare const orderItemPageSchema: z.ZodObject<{
3793
3800
  totalPages: z.ZodNumber;
3794
3801
  contents: z.ZodArray<z.ZodObject<{
3795
3802
  orderItemId: z.ZodString;
3803
+ orderItemNo: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
3796
3804
  orderId: z.ZodString;
3797
3805
  status: z.ZodEnum<{
3798
3806
  PAID: "PAID";
@@ -3878,13 +3886,13 @@ export declare const orderItemPageSchema: z.ZodObject<{
3878
3886
  export type OrderItemPage = z.infer<typeof orderItemPageSchema>;
3879
3887
  /**
3880
3888
  * `GET /v1/orders` 쿼리 — OpenAPI 문서용 형태(값은 쿼리 문자열). 검증 규칙은 서버가 적용한다:
3881
- * `orderedFrom` 누락 400 `MISSING_PARAMETER`, 날짜 형식 오류 400 `INVALID_PARAMETER`, 31일 초과 400 `RANGE_TOO_WIDE`,
3889
+ * `orderNo` 없이 `orderedFrom` 누락 400 `MISSING_PARAMETER`, 날짜·`orderNo` 형식 오류 400 `INVALID_PARAMETER`, 31일 초과 400 `RANGE_TOO_WIDE`,
3882
3890
  * `testPayment`가 `true`·`false`가 아니면 400 `INVALID_PARAMETER`
3883
3891
  */
3884
3892
  export declare const orderListQuerySchema: z.ZodObject<{
3885
3893
  size: z.ZodOptional<z.ZodString>;
3886
3894
  page: z.ZodOptional<z.ZodString>;
3887
- orderedFrom: z.ZodString;
3895
+ orderedFrom: z.ZodOptional<z.ZodString>;
3888
3896
  orderedTo: z.ZodOptional<z.ZodString>;
3889
3897
  status: z.ZodOptional<z.ZodEnum<{
3890
3898
  PAID: "PAID";
@@ -3897,6 +3905,7 @@ export declare const orderListQuerySchema: z.ZodObject<{
3897
3905
  PURCHASE_DECIDED: "PURCHASE_DECIDED";
3898
3906
  }>>;
3899
3907
  keyword: z.ZodOptional<z.ZodString>;
3908
+ orderNo: z.ZodOptional<z.ZodString>;
3900
3909
  fulfillmentType: z.ZodOptional<z.ZodString>;
3901
3910
  testPayment: z.ZodOptional<z.ZodEnum<{
3902
3911
  true: "true";
@@ -3930,7 +3939,10 @@ export declare const orderItemListQuerySchema: z.ZodObject<{
3930
3939
  }>>;
3931
3940
  }, z.core.$strip>;
3932
3941
  export interface OrderListParams extends PageParams {
3933
- orderedFrom: string;
3942
+ /** 조회 시작 시각 — `orderNo`가 없으면 필수 */
3943
+ orderedFrom?: string;
3944
+ /** 주문번호 조회(이슈 #107) — 주면 기간 없이 그 주문만 찾는다 */
3945
+ orderNo?: string;
3934
3946
  orderedTo?: string;
3935
3947
  status?: z.infer<typeof orderItemStatusSchema>;
3936
3948
  keyword?: string;
@@ -4909,6 +4921,7 @@ export declare const paymentRecordSchema: z.ZodObject<{
4909
4921
  testPayment: z.ZodBoolean;
4910
4922
  pgTransactionId: z.ZodNullable<z.ZodString>;
4911
4923
  attemptId: z.ZodNullable<z.ZodString>;
4924
+ pgOrderId: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
4912
4925
  attemptCount: z.ZodNumber;
4913
4926
  failCode: z.ZodNullable<z.ZodString>;
4914
4927
  failMessage: z.ZodNullable<z.ZodString>;
@@ -4955,6 +4968,7 @@ export declare const paymentRecordPageSchema: z.ZodObject<{
4955
4968
  testPayment: z.ZodBoolean;
4956
4969
  pgTransactionId: z.ZodNullable<z.ZodString>;
4957
4970
  attemptId: z.ZodNullable<z.ZodString>;
4971
+ pgOrderId: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
4958
4972
  attemptCount: z.ZodNumber;
4959
4973
  failCode: z.ZodNullable<z.ZodString>;
4960
4974
  failMessage: z.ZodNullable<z.ZodString>;
@@ -4966,6 +4980,7 @@ export declare const paymentRecordPageSchema: z.ZodObject<{
4966
4980
  export type PaymentRecordPage = z.infer<typeof paymentRecordPageSchema>;
4967
4981
  export declare const paymentAttemptRecordSchema: z.ZodObject<{
4968
4982
  attemptId: z.ZodString;
4983
+ pgOrderId: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
4969
4984
  sequence: z.ZodNumber;
4970
4985
  provider: z.ZodEnum<{
4971
4986
  tosspayments: "tosspayments";
@@ -5045,6 +5060,7 @@ export declare const paymentRecordDetailSchema: z.ZodObject<{
5045
5060
  testPayment: z.ZodBoolean;
5046
5061
  pgTransactionId: z.ZodNullable<z.ZodString>;
5047
5062
  attemptId: z.ZodNullable<z.ZodString>;
5063
+ pgOrderId: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
5048
5064
  attemptCount: z.ZodNumber;
5049
5065
  failCode: z.ZodNullable<z.ZodString>;
5050
5066
  failMessage: z.ZodNullable<z.ZodString>;
@@ -5055,6 +5071,7 @@ export declare const paymentRecordDetailSchema: z.ZodObject<{
5055
5071
  merchantId: z.ZodNullable<z.ZodString>;
5056
5072
  attempts: z.ZodArray<z.ZodObject<{
5057
5073
  attemptId: z.ZodString;
5074
+ pgOrderId: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
5058
5075
  sequence: z.ZodNumber;
5059
5076
  provider: z.ZodEnum<{
5060
5077
  tosspayments: "tosspayments";
@@ -5458,6 +5475,7 @@ export declare const productStatusSchema: z.ZodEnum<{
5458
5475
  export type ProductStatus = z.infer<typeof productStatusSchema>;
5459
5476
  export declare const productSummarySchema: z.ZodObject<{
5460
5477
  productId: z.ZodString;
5478
+ productNo: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodNumber>>>;
5461
5479
  name: z.ZodString;
5462
5480
  status: z.ZodEnum<{
5463
5481
  SALE: "SALE";
@@ -5503,6 +5521,7 @@ export type OptionGroup = z.infer<typeof optionGroupSchema>;
5503
5521
  */
5504
5522
  export declare const productVariantSchema: z.ZodObject<{
5505
5523
  variantId: z.ZodString;
5524
+ variantNo: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
5506
5525
  valueIds: z.ZodArray<z.ZodString>;
5507
5526
  name: z.ZodString;
5508
5527
  additionalPrice: z.ZodNumber;
@@ -5535,8 +5554,8 @@ export declare const VARIANT_COUNT_WARNING = 100;
5535
5554
  * 추가금순은 추가 선택 값이면 값의 추가금, 조합 값이면 그 값이 든 조합 추가금의 최솟값으로 비교하고 같으면 등록순이다.
5536
5555
  */
5537
5556
  export declare const optionSortSchema: z.ZodEnum<{
5538
- NAME: "NAME";
5539
5557
  REGISTERED: "REGISTERED";
5558
+ NAME: "NAME";
5540
5559
  PRICE_ASC: "PRICE_ASC";
5541
5560
  PRICE_DESC: "PRICE_DESC";
5542
5561
  }>;
@@ -5645,6 +5664,7 @@ export declare const discountSchema: z.ZodObject<{
5645
5664
  export type Discount = z.infer<typeof discountSchema>;
5646
5665
  export declare const productSchema: z.ZodObject<{
5647
5666
  productId: z.ZodString;
5667
+ productNo: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodNumber>>>;
5648
5668
  name: z.ZodString;
5649
5669
  status: z.ZodEnum<{
5650
5670
  SALE: "SALE";
@@ -5681,6 +5701,7 @@ export declare const productSchema: z.ZodObject<{
5681
5701
  }, z.core.$strip>>;
5682
5702
  variants: z.ZodArray<z.ZodObject<{
5683
5703
  variantId: z.ZodString;
5704
+ variantNo: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
5684
5705
  valueIds: z.ZodArray<z.ZodString>;
5685
5706
  name: z.ZodString;
5686
5707
  additionalPrice: z.ZodNumber;
@@ -5716,8 +5737,8 @@ export declare const productSchema: z.ZodObject<{
5716
5737
  sortOrder: z.ZodNumber;
5717
5738
  }, z.core.$strip>>>>;
5718
5739
  optionSort: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
5719
- NAME: "NAME";
5720
5740
  REGISTERED: "REGISTERED";
5741
+ NAME: "NAME";
5721
5742
  PRICE_ASC: "PRICE_ASC";
5722
5743
  PRICE_DESC: "PRICE_DESC";
5723
5744
  }>>>;
@@ -5860,8 +5881,8 @@ export declare const optionModelRequestSchema: z.ZodObject<{
5860
5881
  usable: z.ZodDefault<z.ZodBoolean>;
5861
5882
  }, z.core.$strip>>>;
5862
5883
  optionSort: z.ZodOptional<z.ZodEnum<{
5863
- NAME: "NAME";
5864
5884
  REGISTERED: "REGISTERED";
5885
+ NAME: "NAME";
5865
5886
  PRICE_ASC: "PRICE_ASC";
5866
5887
  PRICE_DESC: "PRICE_DESC";
5867
5888
  }>>;
@@ -5881,6 +5902,7 @@ export declare const optionModelSchema: z.ZodObject<{
5881
5902
  }, z.core.$strip>>;
5882
5903
  variants: z.ZodArray<z.ZodObject<{
5883
5904
  variantId: z.ZodString;
5905
+ variantNo: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
5884
5906
  valueIds: z.ZodArray<z.ZodString>;
5885
5907
  name: z.ZodString;
5886
5908
  additionalPrice: z.ZodNumber;
@@ -5916,8 +5938,8 @@ export declare const optionModelSchema: z.ZodObject<{
5916
5938
  sortOrder: z.ZodNumber;
5917
5939
  }, z.core.$strip>>>>;
5918
5940
  optionSort: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
5919
- NAME: "NAME";
5920
5941
  REGISTERED: "REGISTERED";
5942
+ NAME: "NAME";
5921
5943
  PRICE_ASC: "PRICE_ASC";
5922
5944
  PRICE_DESC: "PRICE_DESC";
5923
5945
  }>>>;
@@ -6001,8 +6023,8 @@ export declare const productCreateRequestSchema: z.ZodObject<{
6001
6023
  usable: z.ZodDefault<z.ZodBoolean>;
6002
6024
  }, z.core.$strip>>>;
6003
6025
  optionSort: z.ZodOptional<z.ZodEnum<{
6004
- NAME: "NAME";
6005
6026
  REGISTERED: "REGISTERED";
6027
+ NAME: "NAME";
6006
6028
  PRICE_ASC: "PRICE_ASC";
6007
6029
  PRICE_DESC: "PRICE_DESC";
6008
6030
  }>>;
@@ -6087,8 +6109,8 @@ export declare const productReplaceRequestSchema: z.ZodObject<{
6087
6109
  usable: z.ZodDefault<z.ZodBoolean>;
6088
6110
  }, z.core.$strip>>>;
6089
6111
  optionSort: z.ZodOptional<z.ZodEnum<{
6090
- NAME: "NAME";
6091
6112
  REGISTERED: "REGISTERED";
6113
+ NAME: "NAME";
6092
6114
  PRICE_ASC: "PRICE_ASC";
6093
6115
  PRICE_DESC: "PRICE_DESC";
6094
6116
  }>>;
@@ -6151,11 +6173,11 @@ export declare const productPatchRequestSchema: z.ZodObject<{
6151
6173
  }, z.core.$strict>;
6152
6174
  export type ProductPatchRequest = z.infer<typeof productPatchRequestSchema>;
6153
6175
  export declare const productSortSchema: z.ZodEnum<{
6154
- "updatedAt.desc": "updatedAt.desc";
6155
6176
  "createdAt.desc": "createdAt.desc";
6156
6177
  "createdAt.asc": "createdAt.asc";
6157
6178
  "salePrice.asc": "salePrice.asc";
6158
6179
  "salePrice.desc": "salePrice.desc";
6180
+ "updatedAt.desc": "updatedAt.desc";
6159
6181
  }>;
6160
6182
  export type ProductSort = z.infer<typeof productSortSchema>;
6161
6183
  export interface ProductListParams extends PageParams {
@@ -6163,6 +6185,8 @@ export interface ProductListParams extends PageParams {
6163
6185
  categoryId?: string;
6164
6186
  keyword?: string;
6165
6187
  sellerCode?: string;
6188
+ /** 상품번호(이슈 #107, 상점 범위) — 그 상품만 */
6189
+ productNo?: number;
6166
6190
  sort?: ProductSort;
6167
6191
  }
6168
6192
  /** `GET /v1/products` 쿼리 — OpenAPI 문서용 형태(값은 쿼리 문자열) */
@@ -6178,12 +6202,13 @@ export declare const productListQuerySchema: z.ZodObject<{
6178
6202
  categoryId: z.ZodOptional<z.ZodString>;
6179
6203
  keyword: z.ZodOptional<z.ZodString>;
6180
6204
  sellerCode: z.ZodOptional<z.ZodString>;
6205
+ productNo: z.ZodOptional<z.ZodString>;
6181
6206
  sort: z.ZodOptional<z.ZodEnum<{
6182
- "updatedAt.desc": "updatedAt.desc";
6183
6207
  "createdAt.desc": "createdAt.desc";
6184
6208
  "createdAt.asc": "createdAt.asc";
6185
6209
  "salePrice.asc": "salePrice.asc";
6186
6210
  "salePrice.desc": "salePrice.desc";
6211
+ "updatedAt.desc": "updatedAt.desc";
6187
6212
  }>>;
6188
6213
  }, z.core.$strip>;
6189
6214
  export declare const discountRequestSchema: z.ZodObject<{
@@ -6239,8 +6264,8 @@ export declare const savedOptionSetSchema: z.ZodObject<{
6239
6264
  optionSetId: z.ZodString;
6240
6265
  name: z.ZodString;
6241
6266
  optionSort: z.ZodEnum<{
6242
- NAME: "NAME";
6243
6267
  REGISTERED: "REGISTERED";
6268
+ NAME: "NAME";
6244
6269
  PRICE_ASC: "PRICE_ASC";
6245
6270
  PRICE_DESC: "PRICE_DESC";
6246
6271
  }>;
@@ -6294,8 +6319,8 @@ export declare const savedCustomInputRequestSchema: z.ZodObject<{
6294
6319
  export declare const savedOptionSetRequestSchema: z.ZodObject<{
6295
6320
  name: z.ZodString;
6296
6321
  optionSort: z.ZodDefault<z.ZodEnum<{
6297
- NAME: "NAME";
6298
6322
  REGISTERED: "REGISTERED";
6323
+ NAME: "NAME";
6299
6324
  PRICE_ASC: "PRICE_ASC";
6300
6325
  PRICE_DESC: "PRICE_DESC";
6301
6326
  }>>;
@@ -6340,8 +6365,8 @@ export declare const savedOptionSetFromProductResultSchema: z.ZodObject<{
6340
6365
  optionSetId: z.ZodString;
6341
6366
  name: z.ZodString;
6342
6367
  optionSort: z.ZodEnum<{
6343
- NAME: "NAME";
6344
6368
  REGISTERED: "REGISTERED";
6369
+ NAME: "NAME";
6345
6370
  PRICE_ASC: "PRICE_ASC";
6346
6371
  PRICE_DESC: "PRICE_DESC";
6347
6372
  }>;
@@ -6564,9 +6589,9 @@ export declare const storeMemberSchema: z.ZodObject<{
6564
6589
  name: z.ZodString;
6565
6590
  email: z.ZodEmail;
6566
6591
  role: z.ZodEnum<{
6567
- OWNER: "OWNER";
6568
6592
  ADMIN: "ADMIN";
6569
6593
  STAFF: "STAFF";
6594
+ OWNER: "OWNER";
6570
6595
  }>;
6571
6596
  joinedAt: z.ZodString;
6572
6597
  lastActiveAt: z.ZodNullable<z.ZodString>;
@@ -8099,9 +8124,9 @@ export type UploadTicket = z.infer<typeof uploadTicketSchema>;
8099
8124
  //#endregion
8100
8125
  //#region src/schemas/auth.d.ts
8101
8126
  export declare const storeRoleSchema: z.ZodEnum<{
8102
- OWNER: "OWNER";
8103
8127
  ADMIN: "ADMIN";
8104
8128
  STAFF: "STAFF";
8129
+ OWNER: "OWNER";
8105
8130
  }>;
8106
8131
  export type StoreRole = z.infer<typeof storeRoleSchema>;
8107
8132
  export declare const myStoreSchema: z.ZodObject<{
@@ -8109,9 +8134,9 @@ export declare const myStoreSchema: z.ZodObject<{
8109
8134
  storeName: z.ZodString;
8110
8135
  storeCode: z.ZodString;
8111
8136
  role: z.ZodEnum<{
8112
- OWNER: "OWNER";
8113
8137
  ADMIN: "ADMIN";
8114
8138
  STAFF: "STAFF";
8139
+ OWNER: "OWNER";
8115
8140
  }>;
8116
8141
  status: z.ZodEnum<{
8117
8142
  SUSPENDED: "SUSPENDED";
@@ -8271,7 +8296,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
8271
8296
  storeId: string;
8272
8297
  storeName: string;
8273
8298
  storeCode: string;
8274
- role: "OWNER" | "ADMIN" | "STAFF";
8299
+ role: "ADMIN" | "STAFF" | "OWNER";
8275
8300
  status: "SUSPENDED" | "CLOSED" | "ACTIVE";
8276
8301
  }[]>;
8277
8302
  me: () => Promise<{
@@ -8310,6 +8335,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
8310
8335
  totalPages: number;
8311
8336
  contents: {
8312
8337
  productId: string;
8338
+ productNo: number | null;
8313
8339
  name: string;
8314
8340
  status: "SALE" | "SUSPENDED" | "OUT_OF_STOCK" | "CLOSED";
8315
8341
  salePrice: number;
@@ -8327,6 +8353,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
8327
8353
  }>;
8328
8354
  get: (productId: string) => Promise<{
8329
8355
  productId: string;
8356
+ productNo: number | null;
8330
8357
  name: string;
8331
8358
  status: "SALE" | "SUSPENDED" | "OUT_OF_STOCK" | "CLOSED";
8332
8359
  salePrice: number;
@@ -8348,6 +8375,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
8348
8375
  }[];
8349
8376
  variants: {
8350
8377
  variantId: string;
8378
+ variantNo: string | null;
8351
8379
  valueIds: string[];
8352
8380
  name: string;
8353
8381
  additionalPrice: number;
@@ -8382,7 +8410,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
8382
8410
  usable: boolean;
8383
8411
  sortOrder: number;
8384
8412
  }[];
8385
- optionSort: "NAME" | "REGISTERED" | "PRICE_ASC" | "PRICE_DESC";
8413
+ optionSort: "REGISTERED" | "NAME" | "PRICE_ASC" | "PRICE_DESC";
8386
8414
  fulfillment: UnknownFulfillment | {
8387
8415
  type: "SHIPPING";
8388
8416
  shipping: {
@@ -8425,6 +8453,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
8425
8453
  }>;
8426
8454
  create: (body: ProductCreateRequestInput, idempotencyKey?: string) => Promise<{
8427
8455
  productId: string;
8456
+ productNo: number | null;
8428
8457
  name: string;
8429
8458
  status: "SALE" | "SUSPENDED" | "OUT_OF_STOCK" | "CLOSED";
8430
8459
  salePrice: number;
@@ -8446,6 +8475,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
8446
8475
  }[];
8447
8476
  variants: {
8448
8477
  variantId: string;
8478
+ variantNo: string | null;
8449
8479
  valueIds: string[];
8450
8480
  name: string;
8451
8481
  additionalPrice: number;
@@ -8480,7 +8510,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
8480
8510
  usable: boolean;
8481
8511
  sortOrder: number;
8482
8512
  }[];
8483
- optionSort: "NAME" | "REGISTERED" | "PRICE_ASC" | "PRICE_DESC";
8513
+ optionSort: "REGISTERED" | "NAME" | "PRICE_ASC" | "PRICE_DESC";
8484
8514
  fulfillment: UnknownFulfillment | {
8485
8515
  type: "SHIPPING";
8486
8516
  shipping: {
@@ -8523,6 +8553,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
8523
8553
  }>;
8524
8554
  update: (productId: string, body: ProductReplaceRequestInput) => Promise<{
8525
8555
  productId: string;
8556
+ productNo: number | null;
8526
8557
  name: string;
8527
8558
  status: "SALE" | "SUSPENDED" | "OUT_OF_STOCK" | "CLOSED";
8528
8559
  salePrice: number;
@@ -8544,6 +8575,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
8544
8575
  }[];
8545
8576
  variants: {
8546
8577
  variantId: string;
8578
+ variantNo: string | null;
8547
8579
  valueIds: string[];
8548
8580
  name: string;
8549
8581
  additionalPrice: number;
@@ -8578,7 +8610,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
8578
8610
  usable: boolean;
8579
8611
  sortOrder: number;
8580
8612
  }[];
8581
- optionSort: "NAME" | "REGISTERED" | "PRICE_ASC" | "PRICE_DESC";
8613
+ optionSort: "REGISTERED" | "NAME" | "PRICE_ASC" | "PRICE_DESC";
8582
8614
  fulfillment: UnknownFulfillment | {
8583
8615
  type: "SHIPPING";
8584
8616
  shipping: {
@@ -8645,6 +8677,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
8645
8677
  }[];
8646
8678
  variants: {
8647
8679
  variantId: string;
8680
+ variantNo: string | null;
8648
8681
  valueIds: string[];
8649
8682
  name: string;
8650
8683
  additionalPrice: number;
@@ -8679,7 +8712,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
8679
8712
  usable: boolean;
8680
8713
  sortOrder: number;
8681
8714
  }[];
8682
- optionSort: "NAME" | "REGISTERED" | "PRICE_ASC" | "PRICE_DESC";
8715
+ optionSort: "REGISTERED" | "NAME" | "PRICE_ASC" | "PRICE_DESC";
8683
8716
  }>;
8684
8717
  /**
8685
8718
  * 옵션 모델 전체 교체 — variants는 valueNames로 축 값을 지목한다.
@@ -8698,6 +8731,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
8698
8731
  }[];
8699
8732
  variants: {
8700
8733
  variantId: string;
8734
+ variantNo: string | null;
8701
8735
  valueIds: string[];
8702
8736
  name: string;
8703
8737
  additionalPrice: number;
@@ -8732,7 +8766,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
8732
8766
  usable: boolean;
8733
8767
  sortOrder: number;
8734
8768
  }[];
8735
- optionSort: "NAME" | "REGISTERED" | "PRICE_ASC" | "PRICE_DESC";
8769
+ optionSort: "REGISTERED" | "NAME" | "PRICE_ASC" | "PRICE_DESC";
8736
8770
  }>;
8737
8771
  /** 재고 변경 — stockQuantity(절대값) 또는 adjustment(증감) 하나만 전달한다 */
8738
8772
  updateVariantStock: (productId: string, variantId: string, body: VariantStockRequest) => Promise<{
@@ -8770,7 +8804,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
8770
8804
  contents: {
8771
8805
  optionSetId: string;
8772
8806
  name: string;
8773
- optionSort: "NAME" | "REGISTERED" | "PRICE_ASC" | "PRICE_DESC";
8807
+ optionSort: "REGISTERED" | "NAME" | "PRICE_ASC" | "PRICE_DESC";
8774
8808
  groups: {
8775
8809
  name: string;
8776
8810
  kind: string;
@@ -8794,7 +8828,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
8794
8828
  get: (optionSetId: string) => Promise<{
8795
8829
  optionSetId: string;
8796
8830
  name: string;
8797
- optionSort: "NAME" | "REGISTERED" | "PRICE_ASC" | "PRICE_DESC";
8831
+ optionSort: "REGISTERED" | "NAME" | "PRICE_ASC" | "PRICE_DESC";
8798
8832
  groups: {
8799
8833
  name: string;
8800
8834
  kind: string;
@@ -8818,7 +8852,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
8818
8852
  create: (body: SavedOptionSetRequestInput) => Promise<{
8819
8853
  optionSetId: string;
8820
8854
  name: string;
8821
- optionSort: "NAME" | "REGISTERED" | "PRICE_ASC" | "PRICE_DESC";
8855
+ optionSort: "REGISTERED" | "NAME" | "PRICE_ASC" | "PRICE_DESC";
8822
8856
  groups: {
8823
8857
  name: string;
8824
8858
  kind: string;
@@ -8842,7 +8876,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
8842
8876
  update: (optionSetId: string, body: SavedOptionSetRequestInput) => Promise<{
8843
8877
  optionSetId: string;
8844
8878
  name: string;
8845
- optionSort: "NAME" | "REGISTERED" | "PRICE_ASC" | "PRICE_DESC";
8879
+ optionSort: "REGISTERED" | "NAME" | "PRICE_ASC" | "PRICE_DESC";
8846
8880
  groups: {
8847
8881
  name: string;
8848
8882
  kind: string;
@@ -8868,7 +8902,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
8868
8902
  optionSet: {
8869
8903
  optionSetId: string;
8870
8904
  name: string;
8871
- optionSort: "NAME" | "REGISTERED" | "PRICE_ASC" | "PRICE_DESC";
8905
+ optionSort: "REGISTERED" | "NAME" | "PRICE_ASC" | "PRICE_DESC";
8872
8906
  groups: {
8873
8907
  name: string;
8874
8908
  kind: string;
@@ -9216,7 +9250,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
9216
9250
  visible: boolean;
9217
9251
  showPc: boolean;
9218
9252
  showMobile: boolean;
9219
- productSort: "RECENT" | "POPULAR" | "PRICE_LOW" | "PRICE_HIGH" | "NAME";
9253
+ productSort: "NAME" | "RECENT" | "POPULAR" | "PRICE_LOW" | "PRICE_HIGH";
9220
9254
  metaTitle: string | null;
9221
9255
  metaDescription: string | null;
9222
9256
  metaKeywords: string | null;
@@ -9236,7 +9270,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
9236
9270
  visible: boolean;
9237
9271
  showPc: boolean;
9238
9272
  showMobile: boolean;
9239
- productSort: "RECENT" | "POPULAR" | "PRICE_LOW" | "PRICE_HIGH" | "NAME";
9273
+ productSort: "NAME" | "RECENT" | "POPULAR" | "PRICE_LOW" | "PRICE_HIGH";
9240
9274
  metaTitle: string | null;
9241
9275
  metaDescription: string | null;
9242
9276
  metaKeywords: string | null;
@@ -9255,7 +9289,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
9255
9289
  visible: boolean;
9256
9290
  showPc: boolean;
9257
9291
  showMobile: boolean;
9258
- productSort: "RECENT" | "POPULAR" | "PRICE_LOW" | "PRICE_HIGH" | "NAME";
9292
+ productSort: "NAME" | "RECENT" | "POPULAR" | "PRICE_LOW" | "PRICE_HIGH";
9259
9293
  metaTitle: string | null;
9260
9294
  metaDescription: string | null;
9261
9295
  metaKeywords: string | null;
@@ -9275,7 +9309,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
9275
9309
  visible: boolean;
9276
9310
  showPc: boolean;
9277
9311
  showMobile: boolean;
9278
- productSort: "RECENT" | "POPULAR" | "PRICE_LOW" | "PRICE_HIGH" | "NAME";
9312
+ productSort: "NAME" | "RECENT" | "POPULAR" | "PRICE_LOW" | "PRICE_HIGH";
9279
9313
  metaTitle: string | null;
9280
9314
  metaDescription: string | null;
9281
9315
  metaKeywords: string | null;
@@ -9294,7 +9328,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
9294
9328
  visible: boolean;
9295
9329
  showPc: boolean;
9296
9330
  showMobile: boolean;
9297
- productSort: "RECENT" | "POPULAR" | "PRICE_LOW" | "PRICE_HIGH" | "NAME";
9331
+ productSort: "NAME" | "RECENT" | "POPULAR" | "PRICE_LOW" | "PRICE_HIGH";
9298
9332
  metaTitle: string | null;
9299
9333
  metaDescription: string | null;
9300
9334
  metaKeywords: string | null;
@@ -9323,7 +9357,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
9323
9357
  visible: boolean;
9324
9358
  showPc: boolean;
9325
9359
  showMobile: boolean;
9326
- productSort: "RECENT" | "POPULAR" | "PRICE_LOW" | "PRICE_HIGH" | "NAME";
9360
+ productSort: "NAME" | "RECENT" | "POPULAR" | "PRICE_LOW" | "PRICE_HIGH";
9327
9361
  metaTitle: string | null;
9328
9362
  metaDescription: string | null;
9329
9363
  metaKeywords: string | null;
@@ -9342,7 +9376,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
9342
9376
  visible: boolean;
9343
9377
  showPc: boolean;
9344
9378
  showMobile: boolean;
9345
- productSort: "RECENT" | "POPULAR" | "PRICE_LOW" | "PRICE_HIGH" | "NAME";
9379
+ productSort: "NAME" | "RECENT" | "POPULAR" | "PRICE_LOW" | "PRICE_HIGH";
9346
9380
  metaTitle: string | null;
9347
9381
  metaDescription: string | null;
9348
9382
  metaKeywords: string | null;
@@ -9365,6 +9399,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
9365
9399
  totalPages: number;
9366
9400
  contents: {
9367
9401
  orderId: string;
9402
+ orderNo: string | null;
9368
9403
  ordererName: string;
9369
9404
  itemCount: number;
9370
9405
  totalAmount: number;
@@ -9375,6 +9410,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
9375
9410
  }>;
9376
9411
  get: (orderId: string) => Promise<{
9377
9412
  orderId: string;
9413
+ orderNo: string | null;
9378
9414
  orderedAt: string;
9379
9415
  orderer: {
9380
9416
  name: string;
@@ -9433,6 +9469,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
9433
9469
  testPayment: boolean;
9434
9470
  items: {
9435
9471
  orderItemId: string;
9472
+ orderItemNo: string | null;
9436
9473
  orderId: string;
9437
9474
  status: "PAID" | "CANCELED" | "PAYMENT_WAITING" | "CONFIRMED" | "DISPATCHED" | "DELIVERING" | "DELIVERED" | "PURCHASE_DECIDED";
9438
9475
  claimStatus: "CANCEL_REQUESTED" | "RETURN_REQUESTED" | "EXCHANGE_REQUESTED" | null;
@@ -9519,6 +9556,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
9519
9556
  totalPages: number;
9520
9557
  contents: {
9521
9558
  orderItemId: string;
9559
+ orderItemNo: string | null;
9522
9560
  orderId: string;
9523
9561
  status: "PAID" | "CANCELED" | "PAYMENT_WAITING" | "CONFIRMED" | "DISPATCHED" | "DELIVERING" | "DELIVERED" | "PURCHASE_DECIDED";
9524
9562
  claimStatus: "CANCEL_REQUESTED" | "RETURN_REQUESTED" | "EXCHANGE_REQUESTED" | null;
@@ -9634,6 +9672,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
9634
9672
  */
9635
9673
  markDelivered: (orderItemId: string, idempotencyKey?: string) => Promise<{
9636
9674
  orderItemId: string;
9675
+ orderItemNo: string | null;
9637
9676
  orderId: string;
9638
9677
  status: "PAID" | "CANCELED" | "PAYMENT_WAITING" | "CONFIRMED" | "DISPATCHED" | "DELIVERING" | "DELIVERED" | "PURCHASE_DECIDED";
9639
9678
  claimStatus: "CANCEL_REQUESTED" | "RETURN_REQUESTED" | "EXCHANGE_REQUESTED" | null;
@@ -9703,6 +9742,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
9703
9742
  */
9704
9743
  fulfill: (orderItemId: string, body?: FulfillRequest, idempotencyKey?: string) => Promise<{
9705
9744
  orderItemId: string;
9745
+ orderItemNo: string | null;
9706
9746
  orderId: string;
9707
9747
  status: "PAID" | "CANCELED" | "PAYMENT_WAITING" | "CONFIRMED" | "DISPATCHED" | "DELIVERING" | "DELIVERED" | "PURCHASE_DECIDED";
9708
9748
  claimStatus: "CANCEL_REQUESTED" | "RETURN_REQUESTED" | "EXCHANGE_REQUESTED" | null;
@@ -9805,6 +9845,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
9805
9845
  totalPages: number;
9806
9846
  contents: {
9807
9847
  claimId: string;
9848
+ claimNo: string | null;
9808
9849
  type: "RETURN" | "EXCHANGE" | "CANCEL";
9809
9850
  status: "REJECTED" | "REQUESTED" | "HELD" | "COLLECTING" | "COLLECTED" | "REDELIVERING" | "APPROVED" | "COMPLETED" | "WITHDRAWN";
9810
9851
  orderId: string;
@@ -9844,6 +9885,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
9844
9885
  }>;
9845
9886
  get: (claimId: string) => Promise<{
9846
9887
  claimId: string;
9888
+ claimNo: string | null;
9847
9889
  type: "RETURN" | "EXCHANGE" | "CANCEL";
9848
9890
  status: "REJECTED" | "REQUESTED" | "HELD" | "COLLECTING" | "COLLECTED" | "REDELIVERING" | "APPROVED" | "COMPLETED" | "WITHDRAWN";
9849
9891
  orderId: string;
@@ -9912,6 +9954,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
9912
9954
  /** 교환 완료 — 재배송 중인 교환을 셀러가 명시적으로 끝낸다 */
9913
9955
  completeExchange: (claimId: string) => Promise<{
9914
9956
  claimId: string;
9957
+ claimNo: string | null;
9915
9958
  type: "RETURN" | "EXCHANGE" | "CANCEL";
9916
9959
  status: "REJECTED" | "REQUESTED" | "HELD" | "COLLECTING" | "COLLECTED" | "REDELIVERING" | "APPROVED" | "COMPLETED" | "WITHDRAWN";
9917
9960
  orderId: string;
@@ -11035,6 +11078,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
11035
11078
  testPayment: boolean;
11036
11079
  pgTransactionId: string | null;
11037
11080
  attemptId: string | null;
11081
+ pgOrderId: string | null;
11038
11082
  attemptCount: number;
11039
11083
  failCode: string | null;
11040
11084
  failMessage: string | null;
@@ -11059,6 +11103,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
11059
11103
  testPayment: boolean;
11060
11104
  pgTransactionId: string | null;
11061
11105
  attemptId: string | null;
11106
+ pgOrderId: string | null;
11062
11107
  attemptCount: number;
11063
11108
  failCode: string | null;
11064
11109
  failMessage: string | null;
@@ -11069,6 +11114,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
11069
11114
  merchantId: string | null;
11070
11115
  attempts: {
11071
11116
  attemptId: string;
11117
+ pgOrderId: string | null;
11072
11118
  sequence: number;
11073
11119
  provider: "tosspayments" | "portone";
11074
11120
  status: string;
@@ -13725,7 +13771,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
13725
13771
  userId: string;
13726
13772
  name: string;
13727
13773
  email: string;
13728
- role: "OWNER" | "ADMIN" | "STAFF";
13774
+ role: "ADMIN" | "STAFF" | "OWNER";
13729
13775
  joinedAt: string;
13730
13776
  lastActiveAt: string | null;
13731
13777
  }[]>;
@@ -13850,6 +13896,22 @@ export declare function refreshUserToken(options: {
13850
13896
  fetch?: typeof globalThis.fetch;
13851
13897
  }): Promise<OAuthTokenResponse>;
13852
13898
  //#endregion
13899
+ //#region src/schemas/commerce-number.d.ts
13900
+ /**
13901
+ * 국내 쇼핑몰 번호 체계(이슈 #107) — 공개 ID(`ord_…` 등)와 따로 싣는 숫자 번호의 표기·필드.
13902
+ * 번호는 서버가 만들고 생성 후 바뀌지 않는다. 새 필드라 옛 서버 응답에는 없다 — 파싱은 null로 채운다.
13903
+ */
13904
+ /**
13905
+ * 번호 표기 — 숫자를 앞에서부터 4자리씩 하이픈으로 나눈다. 주문번호 `26100284731592` → `2610-0284-7315-92`,
13906
+ * 상품주문번호 `2610028473159201` → `2610-0284-7315-9201`. 숫자만으로 된 값이 아니면(클레임번호 `C…`) 그대로, 없으면 빈 문자열이다.
13907
+ * 화면 표기 전용이다 — API에 보낼 때는 원래 값을 쓴다(주문번호 조회는 하이픈도 받는다)
13908
+ */
13909
+ export declare function formatOrderNo(no: string | null | undefined): string;
13910
+ /** 표기 하이픈·공백을 지운 숫자 번호. 숫자가 아닌 글자가 남거나 비면 null */
13911
+ export declare function parseOrderNo(value: string): string | null;
13912
+ /** 응답 번호 필드 — 서버는 항상 싣고, 번호 체계 이전 행(백필 전)·옛 서버 응답은 null이다 */
13913
+ export declare function commerceNumberField(description: string): z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
13914
+ //#endregion
13853
13915
  //#region src/schemas/customer-delegation.d.ts
13854
13916
  export declare const customerDelegationRequestSchema: z.ZodObject<{
13855
13917
  uid: z.ZodOptional<z.ZodString>;
@@ -14092,7 +14154,7 @@ export interface PricingResult {
14092
14154
  pointAmount: number;
14093
14155
  /** 지금 쓸 수 있는 최대 적립금 — 주문서 안내값(잔액을 모두 요청했을 때의 금액). 적립금 입력이 없으면 0 */
14094
14156
  pointMaxUsable: number;
14095
- /** 요청보다 적게 썼다면 그 이유 — `MIN_PAYMENT`: 결제 금액 100원을 남기려고 줄였다 */
14157
+ /** 요청보다 적게 썼다면 그 이유 — `MIN_PAYMENT`: 남는 결제 금액이 1~99원이라 100원을 남기려고 줄였다(전액이면 0원 결제) */
14096
14158
  pointAdjustReason: "MIN_PAYMENT" | null;
14097
14159
  /** 요청했지만 쓰지 못했다면 그 이유 */
14098
14160
  pointRejectReason: PointRejectReason | null;
@@ -14126,8 +14188,10 @@ export declare function isCouponTargetLine(rule: Pick<CouponRule, "target" | "co
14126
14188
  */
14127
14189
  export declare function quotePricing(input: PricingInput): PricingResult;
14128
14190
  /**
14129
- * 사용 적립금 금액(순수) — 요청·잔액·최대 비율·「결제 금액 100원 남기기」 중 작은 값을 단위로 내린다.
14130
- * 최소 보유액·최소 사용액에 못 미치면 0이다. 결제 금액이 0원이 되는 사용(적립금 전액 결제)은 아직 받지 않는다(P4).
14191
+ * 사용 적립금 금액(순수) — 요청·잔액·최대 비율 중 작은 값을 쓴다(#93 P3·P4).
14192
+ * - 결제 금액 전체를 덮을 수 있으면 전액을 쓴다(0원 결제, 이때만 사용 단위를 보지 않는다)
14193
+ * - 그 밖에는 사용 단위로 내리고, 남는 결제 금액이 1~99원이면 적립금을 줄여 100원을 남긴다(`MIN_PAYMENT`)
14194
+ * 최소 보유액·최소 사용액에 못 미치면 0이다.
14131
14195
  */
14132
14196
  export declare function pointUseOf(points: PricingPoints | null, amounts: {
14133
14197
  productPaid: number;
@@ -14365,14 +14429,14 @@ export declare const STORE_SCOPE_RESOURCES: {
14365
14429
  };
14366
14430
  export type StoreScopeResource = keyof typeof STORE_SCOPE_RESOURCES;
14367
14431
  export declare const storeScopeResourceSchema: z.ZodEnum<{
14368
- product: "product";
14369
14432
  category: "category";
14433
+ analytics: "analytics";
14434
+ product: "product";
14370
14435
  order: "order";
14371
14436
  claim: "claim";
14372
14437
  inquiry: "inquiry";
14373
14438
  review: "review";
14374
14439
  settlement: "settlement";
14375
- analytics: "analytics";
14376
14440
  webhook: "webhook";
14377
14441
  store: "store";
14378
14442
  member: "member";
@@ -14957,6 +15021,7 @@ export type McpToolEvent = z.infer<typeof mcpToolEventSchema>;
14957
15021
  //#region src/schemas/webhook-event.d.ts
14958
15022
  export declare const orderWebhookEventDataSchema: z.ZodObject<{
14959
15023
  orderId: z.ZodString;
15024
+ orderNo: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
14960
15025
  status: z.ZodEnum<{
14961
15026
  PAID: "PAID";
14962
15027
  CANCELED: "CANCELED";
@@ -15006,6 +15071,7 @@ export type OrderWebhookEventData = z.infer<typeof orderWebhookEventDataSchema>;
15006
15071
  */
15007
15072
  export declare const orderFulfilledWebhookEventDataSchema: z.ZodObject<{
15008
15073
  orderId: z.ZodString;
15074
+ orderNo: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
15009
15075
  orderItemId: z.ZodString;
15010
15076
  status: z.ZodEnum<{
15011
15077
  PAID: "PAID";
@@ -15045,6 +15111,7 @@ export type OrderFulfilledWebhookEventData = z.infer<typeof orderFulfilledWebhoo
15045
15111
  */
15046
15112
  export declare const orderCanceledWebhookEventDataSchema: z.ZodObject<{
15047
15113
  orderId: z.ZodString;
15114
+ orderNo: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
15048
15115
  orderItemId: z.ZodString;
15049
15116
  status: z.ZodEnum<{
15050
15117
  PAID: "PAID";
@@ -15080,6 +15147,7 @@ export declare const orderCanceledWebhookEventDataSchema: z.ZodObject<{
15080
15147
  export type OrderCanceledWebhookEventData = z.infer<typeof orderCanceledWebhookEventDataSchema>;
15081
15148
  export declare const claimWebhookEventDataSchema: z.ZodObject<{
15082
15149
  claimId: z.ZodString;
15150
+ claimNo: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
15083
15151
  orderId: z.ZodString;
15084
15152
  orderItemId: z.ZodString;
15085
15153
  claimType: z.ZodEnum<{
@@ -15136,6 +15204,7 @@ export declare const orderWebhookEventSchema: z.ZodObject<{
15136
15204
  }>;
15137
15205
  data: z.ZodObject<{
15138
15206
  orderId: z.ZodString;
15207
+ orderNo: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
15139
15208
  status: z.ZodEnum<{
15140
15209
  PAID: "PAID";
15141
15210
  CANCELED: "CANCELED";
@@ -15187,6 +15256,7 @@ export declare const orderFulfilledWebhookEventSchema: z.ZodObject<{
15187
15256
  type: z.ZodLiteral<"ORDER.FULFILLED">;
15188
15257
  data: z.ZodObject<{
15189
15258
  orderId: z.ZodString;
15259
+ orderNo: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
15190
15260
  orderItemId: z.ZodString;
15191
15261
  status: z.ZodEnum<{
15192
15262
  PAID: "PAID";
@@ -15227,6 +15297,7 @@ export declare const orderCanceledWebhookEventSchema: z.ZodObject<{
15227
15297
  type: z.ZodLiteral<"ORDER.CANCELED">;
15228
15298
  data: z.ZodObject<{
15229
15299
  orderId: z.ZodString;
15300
+ orderNo: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
15230
15301
  orderItemId: z.ZodString;
15231
15302
  status: z.ZodEnum<{
15232
15303
  PAID: "PAID";
@@ -15273,6 +15344,7 @@ export declare const claimWebhookEventSchema: z.ZodObject<{
15273
15344
  }>;
15274
15345
  data: z.ZodObject<{
15275
15346
  claimId: z.ZodString;
15347
+ claimNo: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
15276
15348
  orderId: z.ZodString;
15277
15349
  orderItemId: z.ZodString;
15278
15350
  claimType: z.ZodEnum<{
@@ -15352,6 +15424,7 @@ export declare const webhookEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
15352
15424
  }>;
15353
15425
  data: z.ZodObject<{
15354
15426
  orderId: z.ZodString;
15427
+ orderNo: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
15355
15428
  status: z.ZodEnum<{
15356
15429
  PAID: "PAID";
15357
15430
  CANCELED: "CANCELED";
@@ -15402,6 +15475,7 @@ export declare const webhookEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
15402
15475
  type: z.ZodLiteral<"ORDER.FULFILLED">;
15403
15476
  data: z.ZodObject<{
15404
15477
  orderId: z.ZodString;
15478
+ orderNo: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
15405
15479
  orderItemId: z.ZodString;
15406
15480
  status: z.ZodEnum<{
15407
15481
  PAID: "PAID";
@@ -15441,6 +15515,7 @@ export declare const webhookEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
15441
15515
  type: z.ZodLiteral<"ORDER.CANCELED">;
15442
15516
  data: z.ZodObject<{
15443
15517
  orderId: z.ZodString;
15518
+ orderNo: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
15444
15519
  orderItemId: z.ZodString;
15445
15520
  status: z.ZodEnum<{
15446
15521
  PAID: "PAID";
@@ -15486,6 +15561,7 @@ export declare const webhookEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
15486
15561
  }>;
15487
15562
  data: z.ZodObject<{
15488
15563
  claimId: z.ZodString;
15564
+ claimNo: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
15489
15565
  orderId: z.ZodString;
15490
15566
  orderItemId: z.ZodString;
15491
15567
  claimType: z.ZodEnum<{