@sp-api-sdk/aplus-content-api-2020-11-01 3.1.19 → 3.1.20

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.
@@ -80,7 +80,7 @@ const AplusContentApiAxiosParamCreator = function (configuration) {
80
80
  // verify required parameter 'includedDataSet' is not null or undefined
81
81
  (0, common_1.assertParamExists)('getContentDocument', 'includedDataSet', includedDataSet);
82
82
  const localVarPath = `/aplus/2020-11-01/contentDocuments/{contentReferenceKey}`
83
- .replace(`{${"contentReferenceKey"}}`, encodeURIComponent(String(contentReferenceKey)));
83
+ .replace('{contentReferenceKey}', encodeURIComponent(String(contentReferenceKey)));
84
84
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
85
85
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
86
86
  let baseOptions;
@@ -121,7 +121,7 @@ const AplusContentApiAxiosParamCreator = function (configuration) {
121
121
  // verify required parameter 'marketplaceId' is not null or undefined
122
122
  (0, common_1.assertParamExists)('listContentDocumentAsinRelations', 'marketplaceId', marketplaceId);
123
123
  const localVarPath = `/aplus/2020-11-01/contentDocuments/{contentReferenceKey}/asins`
124
- .replace(`{${"contentReferenceKey"}}`, encodeURIComponent(String(contentReferenceKey)));
124
+ .replace('{contentReferenceKey}', encodeURIComponent(String(contentReferenceKey)));
125
125
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
126
126
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
127
127
  let baseOptions;
@@ -165,7 +165,7 @@ const AplusContentApiAxiosParamCreator = function (configuration) {
165
165
  // verify required parameter 'marketplaceId' is not null or undefined
166
166
  (0, common_1.assertParamExists)('postContentDocumentApprovalSubmission', 'marketplaceId', marketplaceId);
167
167
  const localVarPath = `/aplus/2020-11-01/contentDocuments/{contentReferenceKey}/approvalSubmissions`
168
- .replace(`{${"contentReferenceKey"}}`, encodeURIComponent(String(contentReferenceKey)));
168
+ .replace('{contentReferenceKey}', encodeURIComponent(String(contentReferenceKey)));
169
169
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
170
170
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
171
171
  let baseOptions;
@@ -203,7 +203,7 @@ const AplusContentApiAxiosParamCreator = function (configuration) {
203
203
  // verify required parameter 'postContentDocumentAsinRelationsRequest' is not null or undefined
204
204
  (0, common_1.assertParamExists)('postContentDocumentAsinRelations', 'postContentDocumentAsinRelationsRequest', postContentDocumentAsinRelationsRequest);
205
205
  const localVarPath = `/aplus/2020-11-01/contentDocuments/{contentReferenceKey}/asins`
206
- .replace(`{${"contentReferenceKey"}}`, encodeURIComponent(String(contentReferenceKey)));
206
+ .replace('{contentReferenceKey}', encodeURIComponent(String(contentReferenceKey)));
207
207
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
208
208
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
209
209
  let baseOptions;
@@ -240,7 +240,7 @@ const AplusContentApiAxiosParamCreator = function (configuration) {
240
240
  // verify required parameter 'marketplaceId' is not null or undefined
241
241
  (0, common_1.assertParamExists)('postContentDocumentSuspendSubmission', 'marketplaceId', marketplaceId);
242
242
  const localVarPath = `/aplus/2020-11-01/contentDocuments/{contentReferenceKey}/suspendSubmissions`
243
- .replace(`{${"contentReferenceKey"}}`, encodeURIComponent(String(contentReferenceKey)));
243
+ .replace('{contentReferenceKey}', encodeURIComponent(String(contentReferenceKey)));
244
244
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
245
245
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
246
246
  let baseOptions;
@@ -354,7 +354,7 @@ const AplusContentApiAxiosParamCreator = function (configuration) {
354
354
  // verify required parameter 'postContentDocumentRequest' is not null or undefined
355
355
  (0, common_1.assertParamExists)('updateContentDocument', 'postContentDocumentRequest', postContentDocumentRequest);
356
356
  const localVarPath = `/aplus/2020-11-01/contentDocuments/{contentReferenceKey}`
357
- .replace(`{${"contentReferenceKey"}}`, encodeURIComponent(String(contentReferenceKey)));
357
+ .replace('{contentReferenceKey}', encodeURIComponent(String(contentReferenceKey)));
358
358
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
359
359
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
360
360
  let baseOptions;
@@ -765,8 +765,8 @@ class AplusContentApi extends base_1.BaseAPI {
765
765
  exports.AplusContentApi = AplusContentApi;
766
766
  exports.GetContentDocumentIncludedDataSetEnum = {
767
767
  Contents: 'CONTENTS',
768
- Metadata: 'METADATA'
768
+ Metadata: 'METADATA',
769
769
  };
770
770
  exports.ListContentDocumentAsinRelationsIncludedDataSetEnum = {
771
- Metadata: 'METADATA'
771
+ Metadata: 'METADATA',
772
772
  };
@@ -91,8 +91,8 @@ class Configuration {
91
91
  * @return True if the given MIME is JSON, false otherwise.
92
92
  */
93
93
  isJsonMime(mime) {
94
- const jsonMime = new RegExp('^(application\/json|[^;/ \t]+\/[^;/ \t]+[+]json)[ \t]*(;.*)?$', 'i');
95
- return mime !== null && (jsonMime.test(mime) || mime.toLowerCase() === 'application/json-patch+json');
94
+ const jsonMime = /^(application\/json|[^;/ \t]+\/[^;/ \t]+[+]json)[ \t]*(;.*)?$/i;
95
+ return mime !== null && jsonMime.test(mime);
96
96
  }
97
97
  }
98
98
  exports.Configuration = Configuration;
@@ -21,5 +21,5 @@ exports.AsinBadge = {
21
21
  BrandNotEligible: 'BRAND_NOT_ELIGIBLE',
22
22
  CatalogNotFound: 'CATALOG_NOT_FOUND',
23
23
  ContentNotPublished: 'CONTENT_NOT_PUBLISHED',
24
- ContentPublished: 'CONTENT_PUBLISHED'
24
+ ContentPublished: 'CONTENT_PUBLISHED',
25
25
  };
@@ -19,5 +19,5 @@ exports.ColorType = void 0;
19
19
  */
20
20
  exports.ColorType = {
21
21
  Dark: 'DARK',
22
- Light: 'LIGHT'
22
+ Light: 'LIGHT',
23
23
  };
@@ -22,5 +22,5 @@ exports.ContentBadge = {
22
22
  Generated: 'GENERATED',
23
23
  Launchpad: 'LAUNCHPAD',
24
24
  Premium: 'PREMIUM',
25
- Standard: 'STANDARD'
25
+ Standard: 'STANDARD',
26
26
  };
@@ -32,5 +32,5 @@ exports.ContentModuleType = {
32
32
  StandardSingleSideImage: 'STANDARD_SINGLE_SIDE_IMAGE',
33
33
  StandardTechSpecs: 'STANDARD_TECH_SPECS',
34
34
  StandardText: 'STANDARD_TEXT',
35
- StandardThreeImageText: 'STANDARD_THREE_IMAGE_TEXT'
35
+ StandardThreeImageText: 'STANDARD_THREE_IMAGE_TEXT',
36
36
  };
@@ -21,5 +21,5 @@ exports.ContentStatus = {
21
21
  Approved: 'APPROVED',
22
22
  Draft: 'DRAFT',
23
23
  Rejected: 'REJECTED',
24
- Submitted: 'SUBMITTED'
24
+ Submitted: 'SUBMITTED',
25
25
  };
@@ -19,5 +19,5 @@ exports.ContentType = void 0;
19
19
  */
20
20
  exports.ContentType = {
21
21
  Ebc: 'EBC',
22
- Emc: 'EMC'
22
+ Emc: 'EMC',
23
23
  };
@@ -25,5 +25,5 @@ exports.DecoratorType = {
25
25
  StyleItalic: 'STYLE_ITALIC',
26
26
  StyleLinebreak: 'STYLE_LINEBREAK',
27
27
  StyleParagraph: 'STYLE_PARAGRAPH',
28
- StyleUnderline: 'STYLE_UNDERLINE'
28
+ StyleUnderline: 'STYLE_UNDERLINE',
29
29
  };
@@ -19,5 +19,5 @@ exports.PositionType = void 0;
19
19
  */
20
20
  exports.PositionType = {
21
21
  Left: 'LEFT',
22
- Right: 'RIGHT'
22
+ Right: 'RIGHT',
23
23
  };
@@ -74,7 +74,7 @@ export const AplusContentApiAxiosParamCreator = function (configuration) {
74
74
  // verify required parameter 'includedDataSet' is not null or undefined
75
75
  assertParamExists('getContentDocument', 'includedDataSet', includedDataSet);
76
76
  const localVarPath = `/aplus/2020-11-01/contentDocuments/{contentReferenceKey}`
77
- .replace(`{${"contentReferenceKey"}}`, encodeURIComponent(String(contentReferenceKey)));
77
+ .replace('{contentReferenceKey}', encodeURIComponent(String(contentReferenceKey)));
78
78
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
79
79
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
80
80
  let baseOptions;
@@ -115,7 +115,7 @@ export const AplusContentApiAxiosParamCreator = function (configuration) {
115
115
  // verify required parameter 'marketplaceId' is not null or undefined
116
116
  assertParamExists('listContentDocumentAsinRelations', 'marketplaceId', marketplaceId);
117
117
  const localVarPath = `/aplus/2020-11-01/contentDocuments/{contentReferenceKey}/asins`
118
- .replace(`{${"contentReferenceKey"}}`, encodeURIComponent(String(contentReferenceKey)));
118
+ .replace('{contentReferenceKey}', encodeURIComponent(String(contentReferenceKey)));
119
119
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
120
120
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
121
121
  let baseOptions;
@@ -159,7 +159,7 @@ export const AplusContentApiAxiosParamCreator = function (configuration) {
159
159
  // verify required parameter 'marketplaceId' is not null or undefined
160
160
  assertParamExists('postContentDocumentApprovalSubmission', 'marketplaceId', marketplaceId);
161
161
  const localVarPath = `/aplus/2020-11-01/contentDocuments/{contentReferenceKey}/approvalSubmissions`
162
- .replace(`{${"contentReferenceKey"}}`, encodeURIComponent(String(contentReferenceKey)));
162
+ .replace('{contentReferenceKey}', encodeURIComponent(String(contentReferenceKey)));
163
163
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
164
164
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
165
165
  let baseOptions;
@@ -197,7 +197,7 @@ export const AplusContentApiAxiosParamCreator = function (configuration) {
197
197
  // verify required parameter 'postContentDocumentAsinRelationsRequest' is not null or undefined
198
198
  assertParamExists('postContentDocumentAsinRelations', 'postContentDocumentAsinRelationsRequest', postContentDocumentAsinRelationsRequest);
199
199
  const localVarPath = `/aplus/2020-11-01/contentDocuments/{contentReferenceKey}/asins`
200
- .replace(`{${"contentReferenceKey"}}`, encodeURIComponent(String(contentReferenceKey)));
200
+ .replace('{contentReferenceKey}', encodeURIComponent(String(contentReferenceKey)));
201
201
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
202
202
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
203
203
  let baseOptions;
@@ -234,7 +234,7 @@ export const AplusContentApiAxiosParamCreator = function (configuration) {
234
234
  // verify required parameter 'marketplaceId' is not null or undefined
235
235
  assertParamExists('postContentDocumentSuspendSubmission', 'marketplaceId', marketplaceId);
236
236
  const localVarPath = `/aplus/2020-11-01/contentDocuments/{contentReferenceKey}/suspendSubmissions`
237
- .replace(`{${"contentReferenceKey"}}`, encodeURIComponent(String(contentReferenceKey)));
237
+ .replace('{contentReferenceKey}', encodeURIComponent(String(contentReferenceKey)));
238
238
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
239
239
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
240
240
  let baseOptions;
@@ -348,7 +348,7 @@ export const AplusContentApiAxiosParamCreator = function (configuration) {
348
348
  // verify required parameter 'postContentDocumentRequest' is not null or undefined
349
349
  assertParamExists('updateContentDocument', 'postContentDocumentRequest', postContentDocumentRequest);
350
350
  const localVarPath = `/aplus/2020-11-01/contentDocuments/{contentReferenceKey}`
351
- .replace(`{${"contentReferenceKey"}}`, encodeURIComponent(String(contentReferenceKey)));
351
+ .replace('{contentReferenceKey}', encodeURIComponent(String(contentReferenceKey)));
352
352
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
353
353
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
354
354
  let baseOptions;
@@ -755,8 +755,8 @@ export class AplusContentApi extends BaseAPI {
755
755
  }
756
756
  export const GetContentDocumentIncludedDataSetEnum = {
757
757
  Contents: 'CONTENTS',
758
- Metadata: 'METADATA'
758
+ Metadata: 'METADATA',
759
759
  };
760
760
  export const ListContentDocumentAsinRelationsIncludedDataSetEnum = {
761
- Metadata: 'METADATA'
761
+ Metadata: 'METADATA',
762
762
  };
@@ -88,7 +88,7 @@ export class Configuration {
88
88
  * @return True if the given MIME is JSON, false otherwise.
89
89
  */
90
90
  isJsonMime(mime) {
91
- const jsonMime = new RegExp('^(application\/json|[^;/ \t]+\/[^;/ \t]+[+]json)[ \t]*(;.*)?$', 'i');
92
- return mime !== null && (jsonMime.test(mime) || mime.toLowerCase() === 'application/json-patch+json');
91
+ const jsonMime = /^(application\/json|[^;/ \t]+\/[^;/ \t]+[+]json)[ \t]*(;.*)?$/i;
92
+ return mime !== null && jsonMime.test(mime);
93
93
  }
94
94
  }
@@ -18,5 +18,5 @@ export const AsinBadge = {
18
18
  BrandNotEligible: 'BRAND_NOT_ELIGIBLE',
19
19
  CatalogNotFound: 'CATALOG_NOT_FOUND',
20
20
  ContentNotPublished: 'CONTENT_NOT_PUBLISHED',
21
- ContentPublished: 'CONTENT_PUBLISHED'
21
+ ContentPublished: 'CONTENT_PUBLISHED',
22
22
  };
@@ -16,5 +16,5 @@
16
16
  */
17
17
  export const ColorType = {
18
18
  Dark: 'DARK',
19
- Light: 'LIGHT'
19
+ Light: 'LIGHT',
20
20
  };
@@ -19,5 +19,5 @@ export const ContentBadge = {
19
19
  Generated: 'GENERATED',
20
20
  Launchpad: 'LAUNCHPAD',
21
21
  Premium: 'PREMIUM',
22
- Standard: 'STANDARD'
22
+ Standard: 'STANDARD',
23
23
  };
@@ -29,5 +29,5 @@ export const ContentModuleType = {
29
29
  StandardSingleSideImage: 'STANDARD_SINGLE_SIDE_IMAGE',
30
30
  StandardTechSpecs: 'STANDARD_TECH_SPECS',
31
31
  StandardText: 'STANDARD_TEXT',
32
- StandardThreeImageText: 'STANDARD_THREE_IMAGE_TEXT'
32
+ StandardThreeImageText: 'STANDARD_THREE_IMAGE_TEXT',
33
33
  };
@@ -18,5 +18,5 @@ export const ContentStatus = {
18
18
  Approved: 'APPROVED',
19
19
  Draft: 'DRAFT',
20
20
  Rejected: 'REJECTED',
21
- Submitted: 'SUBMITTED'
21
+ Submitted: 'SUBMITTED',
22
22
  };
@@ -16,5 +16,5 @@
16
16
  */
17
17
  export const ContentType = {
18
18
  Ebc: 'EBC',
19
- Emc: 'EMC'
19
+ Emc: 'EMC',
20
20
  };
@@ -22,5 +22,5 @@ export const DecoratorType = {
22
22
  StyleItalic: 'STYLE_ITALIC',
23
23
  StyleLinebreak: 'STYLE_LINEBREAK',
24
24
  StyleParagraph: 'STYLE_PARAGRAPH',
25
- StyleUnderline: 'STYLE_UNDERLINE'
25
+ StyleUnderline: 'STYLE_UNDERLINE',
26
26
  };
@@ -16,5 +16,5 @@
16
16
  */
17
17
  export const PositionType = {
18
18
  Left: 'LEFT',
19
- Right: 'RIGHT'
19
+ Right: 'RIGHT',
20
20
  };
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@sp-api-sdk/aplus-content-api-2020-11-01",
3
3
  "author": "Bertrand Marron <bertrand@bizon.solutions>",
4
4
  "description": "Use the A+ Content API to build applications that help selling partners add rich marketing content to their Amazon product detail pages. Selling partners can use A+ content to share their brand and product story, which helps buyers make informed purchasing decisions. Selling partners use content modules to add images and text.",
5
- "version": "3.1.19",
5
+ "version": "3.1.20",
6
6
  "main": "dist/cjs/index.js",
7
7
  "module": "dist/es/index.js",
8
8
  "types": "dist/types/index.d.ts",
@@ -18,8 +18,8 @@
18
18
  "dist/**/*.d.ts"
19
19
  ],
20
20
  "dependencies": {
21
- "@sp-api-sdk/common": "2.1.30",
22
- "axios": "^1.13.6"
21
+ "@sp-api-sdk/common": "2.1.31",
22
+ "axios": "^1.15.2"
23
23
  },
24
24
  "repository": {
25
25
  "type": "git",
@@ -40,5 +40,5 @@
40
40
  "sp sdk",
41
41
  "aplus content api"
42
42
  ],
43
- "gitHead": "ed62de76baf24107227aacb576cd494b2ecbf0b5"
43
+ "gitHead": "cc3ed7e58346bf7a4110ed8f1353aae840f294e2"
44
44
  }