@shopby/shop-sdk 1.2.7 → 1.2.11

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.
@@ -1,7 +1,9 @@
1
+ import { ResponseData } from '../types/root';
2
+ import { PostFilesImagesRequest, PostFilesImagesResponse } from "../types/storage";
1
3
  declare const storage: (createOption: Function) => {
2
4
  /**
3
5
  * Storage
4
6
  */
5
- postFilesImages(request: any): any;
7
+ postFilesImages(request: PostFilesImagesRequest): Promise<ResponseData<PostFilesImagesResponse>>;
6
8
  };
7
9
  export default storage;
@@ -8,7 +8,6 @@ var storage = function (createOption) { return ({
8
8
  method: 'POST',
9
9
  url: '/files/images',
10
10
  contentType: false,
11
- processData: false,
12
11
  requestBody: requestBody,
13
12
  });
14
13
  },
@@ -1 +1 @@
1
- {"version":3,"file":"storage.js","sourceRoot":"","sources":["../../src/storage.ts"],"names":[],"mappings":"AAEA,IAAM,OAAO,GAAG,UAAC,YAAsB,IAAK,OAAA,CAAC;IAC3C;;OAEG;IACH,eAAe,EAAf,UAAgB,OAAY;QACnB,IAAA,WAAW,GAAI,OAAO,YAAX,CAAY;QAC9B,OAAO,YAAY,CAAC;YAClB,MAAM,EAAE,MAAM;YACd,GAAG,EAAE,eAAe;YACpB,WAAW,EAAE,KAAK;YAClB,WAAW,EAAE,KAAK;YAClB,WAAW,aAAA;SACZ,CAAC,CAAC;IACL,CAAC;CACF,CAAC,EAd0C,CAc1C,CAAC;AAEH,eAAe,OAAO,CAAC"}
1
+ {"version":3,"file":"storage.js","sourceRoot":"","sources":["../../src/storage.ts"],"names":[],"mappings":"AAGA,IAAM,OAAO,GAAG,UAAC,YAAsB,IAAK,OAAA,CAAC;IAC3C;;OAEG;IACH,eAAe,EAAf,UAAgB,OAA+B;QACtC,IAAA,WAAW,GAAI,OAAO,YAAX,CAAY;QAC9B,OAAO,YAAY,CAAC;YAClB,MAAM,EAAE,MAAM;YACd,GAAG,EAAE,eAAe;YACpB,WAAW,EAAE,KAAK;YAClB,WAAW,aAAA;SACZ,CAAC,CAAC;IACL,CAAC;CACF,CAAC,EAb0C,CAa1C,CAAC;AAEH,eAAe,OAAO,CAAC"}
@@ -7,9 +7,11 @@ export interface PostBoardsBoardNoArticlesRequest {
7
7
  requestBody: {
8
8
  articleTitle: string;
9
9
  articleContent: string;
10
- boardNo: string;
11
10
  guestName: string;
12
- images: any[];
11
+ images: {
12
+ originalFileName: string;
13
+ uploadedFileName: string;
14
+ }[];
13
15
  parentBoardArticleNo?: string;
14
16
  password: string;
15
17
  secreted: boolean;
@@ -143,9 +145,9 @@ export interface GetBoardsBoardNoArticlesArticleNoResponse {
143
145
  registerYmdt?: string;
144
146
  }
145
147
  export interface BoardsBoardNoArticlesArticleNoAttachments {
146
- fileName?: string;
147
- uploadedFileName?: string;
148
- downloadFileUrl?: string;
148
+ fileName: string;
149
+ uploadedFileName: string;
150
+ downloadFileUrl: string;
149
151
  }
150
152
  export interface BoardsConfigurationsResponse {
151
153
  productReviewConfig?: BoardsConfigurationsProductReviewConfig;
@@ -369,12 +371,12 @@ export interface TermsRequest extends RequestConfig {
369
371
  };
370
372
  }
371
373
  export interface TermsResponse {
372
- key?: TermsKey;
374
+ [key: string]: TermsKey;
373
375
  }
374
376
  export interface TermsKey {
375
- contents?: string;
376
- enforcementDate?: string;
377
- used?: boolean;
377
+ contents: string;
378
+ enforcementDate: string;
379
+ used: boolean;
378
380
  }
379
381
  export interface TermsTermsNo {
380
382
  contents?: string;
@@ -0,0 +1,8 @@
1
+ import { RequestConfig } from "./root";
2
+ export interface PostFilesImagesRequest extends RequestConfig {
3
+ requestBody: FormData;
4
+ }
5
+ export interface PostFilesImagesResponse {
6
+ imageUrl: string;
7
+ originName: string;
8
+ }
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=storage.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"storage.js","sourceRoot":"","sources":["../../types/storage.ts"],"names":[],"mappings":""}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shopby/shop-sdk",
3
- "version": "1.2.7",
3
+ "version": "1.2.11",
4
4
  "description": "",
5
5
  "main": "build/src/index.js",
6
6
  "types": "build/types/root.d.ts",