ebay-api 9.4.0 → 9.4.1
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/README.md +1 -1
- package/dist/api/apiFactory.js +5 -5
- package/dist/api/restful/buy/browse/index.js +9 -9
- package/dist/api/restful/buy/deal/index.js +3 -3
- package/dist/api/restful/buy/feed/index.js +4 -4
- package/dist/api/restful/buy/marketing/index.js +3 -3
- package/dist/api/restful/buy/marketplaceInsights/index.d.ts +1 -1
- package/dist/api/restful/buy/marketplaceInsights/index.js +3 -3
- package/dist/api/restful/buy/order/index.js +3 -3
- package/dist/api/restful/commerce/catalog/index.js +4 -4
- package/dist/api/restful/commerce/charity/index.js +2 -2
- package/dist/api/restful/commerce/identity/index.js +1 -1
- package/dist/api/restful/commerce/message/index.js +6 -6
- package/dist/api/restful/commerce/notification/index.js +7 -7
- package/dist/api/restful/commerce/taxonomy/index.d.ts +1 -1
- package/dist/api/restful/commerce/taxonomy/index.js +4 -3
- package/dist/api/restful/commerce/translation/index.js +1 -1
- package/dist/api/restful/developer/analytics/index.js +2 -2
- package/dist/api/restful/developer/keyManagement/index.js +2 -2
- package/dist/api/restful/index.js +1 -1
- package/dist/api/restful/postOrder/cancellation/index.js +3 -3
- package/dist/api/restful/postOrder/case/index.js +1 -1
- package/dist/api/restful/postOrder/inquiry/index.js +3 -3
- package/dist/api/restful/postOrder/return/index.js +7 -7
- package/dist/api/restful/sell/account/v1.js +21 -21
- package/dist/api/restful/sell/account/v2.js +1 -1
- package/dist/api/restful/sell/analytics/index.js +2 -2
- package/dist/api/restful/sell/compliance/index.js +3 -3
- package/dist/api/restful/sell/feed/index.d.ts +3 -3
- package/dist/api/restful/sell/feed/index.js +16 -16
- package/dist/api/restful/sell/finances/index.d.ts +3 -3
- package/dist/api/restful/sell/finances/index.js +14 -14
- package/dist/api/restful/sell/fulfillment/index.d.ts +1 -1
- package/dist/api/restful/sell/fulfillment/index.js +4 -4
- package/dist/api/restful/sell/inventory/index.d.ts +3 -3
- package/dist/api/restful/sell/inventory/index.js +22 -22
- package/dist/api/restful/sell/listing/index.js +1 -1
- package/dist/api/restful/sell/logistics/index.js +2 -2
- package/dist/api/restful/sell/marketing/index.js +21 -21
- package/dist/api/restful/sell/negotiation/index.js +2 -2
- package/dist/api/restful/sell/recommendation/index.js +1 -1
- package/dist/api/traditional/XMLRequest.d.ts +1 -3
- package/dist/api/traditional/XMLRequest.js +2 -4
- package/dist/auth/oAuth2.js +1 -1
- package/dist/ebay-api.min.mjs +1 -1
- package/dist/errors/index.js +2 -2
- package/dist/types/restful/specs/buy_browse_v1_oas3.d.ts +561 -111
- package/dist/types/restful/specs/buy_deal_v1_oas3.d.ts +171 -30
- package/dist/types/restful/specs/buy_feed_v1_beta_oas3.d.ts +200 -28
- package/dist/types/restful/specs/buy_marketing_v1_beta_oas3.d.ts +114 -20
- package/dist/types/restful/specs/buy_marketplace_insights_v1_beta_oas3.d.ts +52 -17
- package/dist/types/restful/specs/buy_offer_v1_beta_oas3.d.ts +84 -12
- package/dist/types/restful/specs/buy_order_v1_beta_oas3.d.ts +1478 -179
- package/dist/types/restful/specs/cancellation_oas3.d.ts +179 -9
- package/dist/types/restful/specs/case_oas3.d.ts +173 -9
- package/dist/types/restful/specs/commerce_catalog_v1_beta_oas3.d.ts +323 -75
- package/dist/types/restful/specs/commerce_charity_v1_oas3.d.ts +110 -13
- package/dist/types/restful/specs/commerce_identity_v1_oas3.d.ts +39 -6
- package/dist/types/restful/specs/commerce_media_v1_beta_oas3.d.ts +150 -23
- package/dist/types/restful/specs/commerce_notification_v1_oas3.d.ts +623 -72
- package/dist/types/restful/specs/commerce_taxonomy_v1_oas3.d.ts +339 -45
- package/dist/types/restful/specs/commerce_translation_v1_beta_oas3.d.ts +40 -8
- package/dist/types/restful/specs/developer_analytics_v1_beta_oas3.d.ts +67 -11
- package/dist/types/restful/specs/developer_key_management_v1_oas3.d.ts +134 -18
- package/dist/types/restful/specs/inquiry_oas3.d.ts +271 -13
- package/dist/types/restful/specs/return_oas3.d.ts +761 -35
- package/dist/types/restful/specs/sell_account_v1_oas3.d.ts +1503 -187
- package/dist/types/restful/specs/sell_account_v2_oas3.d.ts +155 -21
- package/dist/types/restful/specs/sell_analytics_v1_oas3.d.ts +174 -32
- package/dist/types/restful/specs/sell_compliance_v1_oas3.d.ts +128 -21
- package/dist/types/restful/specs/sell_feed_v1_oas3.d.ts +880 -103
- package/dist/types/restful/specs/sell_finances_v1_oas3.d.ts +261 -28
- package/dist/types/restful/specs/sell_fulfillment_v1_oas3.d.ts +618 -98
- package/dist/types/restful/specs/sell_inventory_v1_oas3.d.ts +1257 -210
- package/dist/types/restful/specs/sell_listing_v1_beta_oas3.d.ts +38 -9
- package/dist/types/restful/specs/sell_logistics_v1_oas3.d.ts +255 -36
- package/dist/types/restful/specs/sell_marketing_v1_oas3.d.ts +3201 -435
- package/dist/types/restful/specs/sell_metadata_v1_oas3.d.ts +361 -63
- package/dist/types/restful/specs/sell_negotiation_v1_oas3.d.ts +82 -14
- package/dist/types/restful/specs/sell_recommendation_v1_oas3.d.ts +43 -10
- package/lib/api/apiFactory.js +4 -4
- package/lib/api/restful/buy/browse/index.js +9 -9
- package/lib/api/restful/buy/deal/index.js +3 -3
- package/lib/api/restful/buy/feed/index.js +4 -4
- package/lib/api/restful/buy/marketing/index.js +3 -3
- package/lib/api/restful/buy/marketplaceInsights/index.d.ts +1 -1
- package/lib/api/restful/buy/marketplaceInsights/index.js +3 -3
- package/lib/api/restful/buy/order/index.js +3 -3
- package/lib/api/restful/commerce/catalog/index.js +4 -4
- package/lib/api/restful/commerce/charity/index.js +2 -2
- package/lib/api/restful/commerce/identity/index.js +1 -1
- package/lib/api/restful/commerce/message/index.js +6 -6
- package/lib/api/restful/commerce/notification/index.js +7 -7
- package/lib/api/restful/commerce/taxonomy/index.d.ts +1 -1
- package/lib/api/restful/commerce/taxonomy/index.js +4 -3
- package/lib/api/restful/commerce/translation/index.js +1 -1
- package/lib/api/restful/developer/analytics/index.js +2 -2
- package/lib/api/restful/developer/keyManagement/index.js +2 -2
- package/lib/api/restful/index.js +1 -1
- package/lib/api/restful/postOrder/cancellation/index.js +3 -3
- package/lib/api/restful/postOrder/case/index.js +1 -1
- package/lib/api/restful/postOrder/inquiry/index.js +3 -3
- package/lib/api/restful/postOrder/return/index.js +7 -7
- package/lib/api/restful/sell/account/v1.js +21 -21
- package/lib/api/restful/sell/account/v2.js +1 -1
- package/lib/api/restful/sell/analytics/index.js +2 -2
- package/lib/api/restful/sell/compliance/index.js +3 -3
- package/lib/api/restful/sell/feed/index.d.ts +3 -3
- package/lib/api/restful/sell/feed/index.js +16 -16
- package/lib/api/restful/sell/finances/index.d.ts +3 -3
- package/lib/api/restful/sell/finances/index.js +14 -14
- package/lib/api/restful/sell/fulfillment/index.d.ts +1 -1
- package/lib/api/restful/sell/fulfillment/index.js +4 -4
- package/lib/api/restful/sell/inventory/index.d.ts +3 -3
- package/lib/api/restful/sell/inventory/index.js +22 -22
- package/lib/api/restful/sell/listing/index.js +1 -1
- package/lib/api/restful/sell/logistics/index.js +2 -2
- package/lib/api/restful/sell/marketing/index.js +21 -21
- package/lib/api/restful/sell/negotiation/index.js +2 -2
- package/lib/api/restful/sell/recommendation/index.js +1 -1
- package/lib/api/traditional/XMLRequest.d.ts +1 -3
- package/lib/api/traditional/XMLRequest.js +2 -4
- package/lib/auth/oAuth2.js +1 -1
- package/lib/ebay-api.min.js +2 -2
- package/lib/errors/index.js +2 -2
- package/lib/types/restful/specs/buy_browse_v1_oas3.d.ts +561 -111
- package/lib/types/restful/specs/buy_deal_v1_oas3.d.ts +171 -30
- package/lib/types/restful/specs/buy_feed_v1_beta_oas3.d.ts +200 -28
- package/lib/types/restful/specs/buy_marketing_v1_beta_oas3.d.ts +114 -20
- package/lib/types/restful/specs/buy_marketplace_insights_v1_beta_oas3.d.ts +52 -17
- package/lib/types/restful/specs/buy_offer_v1_beta_oas3.d.ts +84 -12
- package/lib/types/restful/specs/buy_order_v1_beta_oas3.d.ts +1478 -179
- package/lib/types/restful/specs/cancellation_oas3.d.ts +179 -9
- package/lib/types/restful/specs/case_oas3.d.ts +173 -9
- package/lib/types/restful/specs/commerce_catalog_v1_beta_oas3.d.ts +323 -75
- package/lib/types/restful/specs/commerce_charity_v1_oas3.d.ts +110 -13
- package/lib/types/restful/specs/commerce_identity_v1_oas3.d.ts +39 -6
- package/lib/types/restful/specs/commerce_media_v1_beta_oas3.d.ts +150 -23
- package/lib/types/restful/specs/commerce_notification_v1_oas3.d.ts +623 -72
- package/lib/types/restful/specs/commerce_taxonomy_v1_oas3.d.ts +339 -45
- package/lib/types/restful/specs/commerce_translation_v1_beta_oas3.d.ts +40 -8
- package/lib/types/restful/specs/developer_analytics_v1_beta_oas3.d.ts +67 -11
- package/lib/types/restful/specs/developer_key_management_v1_oas3.d.ts +134 -18
- package/lib/types/restful/specs/inquiry_oas3.d.ts +271 -13
- package/lib/types/restful/specs/return_oas3.d.ts +761 -35
- package/lib/types/restful/specs/sell_account_v1_oas3.d.ts +1503 -187
- package/lib/types/restful/specs/sell_account_v2_oas3.d.ts +155 -21
- package/lib/types/restful/specs/sell_analytics_v1_oas3.d.ts +174 -32
- package/lib/types/restful/specs/sell_compliance_v1_oas3.d.ts +128 -21
- package/lib/types/restful/specs/sell_feed_v1_oas3.d.ts +880 -103
- package/lib/types/restful/specs/sell_finances_v1_oas3.d.ts +261 -28
- package/lib/types/restful/specs/sell_fulfillment_v1_oas3.d.ts +618 -98
- package/lib/types/restful/specs/sell_inventory_v1_oas3.d.ts +1257 -210
- package/lib/types/restful/specs/sell_listing_v1_beta_oas3.d.ts +38 -9
- package/lib/types/restful/specs/sell_logistics_v1_oas3.d.ts +255 -36
- package/lib/types/restful/specs/sell_marketing_v1_oas3.d.ts +3201 -435
- package/lib/types/restful/specs/sell_metadata_v1_oas3.d.ts +361 -63
- package/lib/types/restful/specs/sell_negotiation_v1_oas3.d.ts +82 -14
- package/lib/types/restful/specs/sell_recommendation_v1_oas3.d.ts +43 -10
- package/package.json +10 -9
|
@@ -40,7 +40,7 @@ class Marketing extends Restful {
|
|
|
40
40
|
return this.post(`/ad_campaign/${campaignId}/launch`);
|
|
41
41
|
}
|
|
42
42
|
setupQuickCampaign(body) {
|
|
43
|
-
return this.post(
|
|
43
|
+
return this.post('/ad_campaign/setup_quick_campaign', body);
|
|
44
44
|
}
|
|
45
45
|
getAds(campaignId, { limit, listingIds, offset } = {}) {
|
|
46
46
|
campaignId = encodeURIComponent(campaignId);
|
|
@@ -127,7 +127,7 @@ class Marketing extends Restful {
|
|
|
127
127
|
return this.post(`/ad_campaign/${campaignId}/clone`, body);
|
|
128
128
|
}
|
|
129
129
|
getCampaigns({ campaignName, campaignStatus, endDateRange, limit, offset, startDateRange } = {}) {
|
|
130
|
-
return this.get(
|
|
130
|
+
return this.get('/ad_campaign', {
|
|
131
131
|
params: {
|
|
132
132
|
campaign_name: campaignName,
|
|
133
133
|
campaign_status: campaignStatus,
|
|
@@ -143,7 +143,7 @@ class Marketing extends Restful {
|
|
|
143
143
|
return this.get(`/ad_campaign/${campaignId}`);
|
|
144
144
|
}
|
|
145
145
|
createCampaign(body) {
|
|
146
|
-
return this.post(
|
|
146
|
+
return this.post('/ad_campaign', body);
|
|
147
147
|
}
|
|
148
148
|
deleteCampaign(campaignId) {
|
|
149
149
|
campaignId = encodeURIComponent(campaignId);
|
|
@@ -154,7 +154,7 @@ class Marketing extends Restful {
|
|
|
154
154
|
return this.post(`/ad_campaign/${campaignId}/end`);
|
|
155
155
|
}
|
|
156
156
|
findCampaignByAdReference({ inventoryReferenceId, inventoryReferenceType, listingId } = {}) {
|
|
157
|
-
return this.get(
|
|
157
|
+
return this.get('/ad_campaign/find_campaign_by_ad_reference', {
|
|
158
158
|
params: {
|
|
159
159
|
inventory_reference_id: inventoryReferenceId,
|
|
160
160
|
inventory_reference_type: inventoryReferenceType,
|
|
@@ -163,7 +163,7 @@ class Marketing extends Restful {
|
|
|
163
163
|
});
|
|
164
164
|
}
|
|
165
165
|
getCampaignByName(campaignName) {
|
|
166
|
-
return this.get(
|
|
166
|
+
return this.get('/ad_campaign/get_campaign_by_name', {
|
|
167
167
|
params: {
|
|
168
168
|
campaign_name: campaignName
|
|
169
169
|
}
|
|
@@ -233,13 +233,13 @@ class Marketing extends Restful {
|
|
|
233
233
|
return this.put(`/ad_campaign/${campaignId}/keyword/${keywordId}`, body);
|
|
234
234
|
}
|
|
235
235
|
bulkCreateNegativeKeyword(body) {
|
|
236
|
-
return this.post(
|
|
236
|
+
return this.post('/bulk_create_negative_keyword', body);
|
|
237
237
|
}
|
|
238
238
|
bulkUpdateNegativeKeyword(body) {
|
|
239
|
-
return this.post(
|
|
239
|
+
return this.post('/bulk_update_negative_keyword', body);
|
|
240
240
|
}
|
|
241
241
|
getNegativeKeywords({ adGroupIds, campaignIds, limit, negativeKeywordStatus, offset } = {}) {
|
|
242
|
-
return this.get(
|
|
242
|
+
return this.get('/negative_keyword', {
|
|
243
243
|
params: {
|
|
244
244
|
ad_group_ids: adGroupIds,
|
|
245
245
|
campaign_ids: campaignIds, limit,
|
|
@@ -248,7 +248,7 @@ class Marketing extends Restful {
|
|
|
248
248
|
});
|
|
249
249
|
}
|
|
250
250
|
createNegativeKeyword(body) {
|
|
251
|
-
return this.post(
|
|
251
|
+
return this.post('/negative_keyword', body);
|
|
252
252
|
}
|
|
253
253
|
getNegativeKeyword(negativeKeywordId) {
|
|
254
254
|
negativeKeywordId = encodeURIComponent(negativeKeywordId);
|
|
@@ -263,14 +263,14 @@ class Marketing extends Restful {
|
|
|
263
263
|
return this.get(`/ad_report/${reportId}`);
|
|
264
264
|
}
|
|
265
265
|
getReportMetadata() {
|
|
266
|
-
return this.get(
|
|
266
|
+
return this.get('/ad_report_metadata');
|
|
267
267
|
}
|
|
268
268
|
getReportMetadataForReportType(reportType) {
|
|
269
269
|
reportType = encodeURIComponent(reportType);
|
|
270
270
|
return this.get(`/ad_report_metadata/${reportType}`);
|
|
271
271
|
}
|
|
272
272
|
getReportTasks({ limit, offset, reportTaskStatuses } = {}) {
|
|
273
|
-
return this.get(
|
|
273
|
+
return this.get('/ad_report_task', {
|
|
274
274
|
params: {
|
|
275
275
|
limit,
|
|
276
276
|
offset,
|
|
@@ -283,14 +283,14 @@ class Marketing extends Restful {
|
|
|
283
283
|
return this.get(`/ad_report_task/${reportTaskId}`);
|
|
284
284
|
}
|
|
285
285
|
createReportTask(body) {
|
|
286
|
-
return this.post(
|
|
286
|
+
return this.post('/ad_report_task', body);
|
|
287
287
|
}
|
|
288
288
|
deleteReportTask(reportTaskId) {
|
|
289
289
|
reportTaskId = encodeURIComponent(reportTaskId);
|
|
290
290
|
return this.delete(`/ad_report_task/${reportTaskId}`);
|
|
291
291
|
}
|
|
292
292
|
createItemPriceMarkdownPromotion(body) {
|
|
293
|
-
return this.post(
|
|
293
|
+
return this.post('/item_price_markdown', body);
|
|
294
294
|
}
|
|
295
295
|
updateItemPriceMarkdownPromotion(promotionId, body) {
|
|
296
296
|
promotionId = encodeURIComponent(promotionId);
|
|
@@ -305,7 +305,7 @@ class Marketing extends Restful {
|
|
|
305
305
|
return this.get(`/item_price_markdown/${promotionId}`);
|
|
306
306
|
}
|
|
307
307
|
createItemPromotion(body) {
|
|
308
|
-
return this.post(
|
|
308
|
+
return this.post('/item_promotion', body);
|
|
309
309
|
}
|
|
310
310
|
updateItemPromotion(promotionId, body) {
|
|
311
311
|
promotionId = encodeURIComponent(promotionId);
|
|
@@ -332,7 +332,7 @@ class Marketing extends Restful {
|
|
|
332
332
|
});
|
|
333
333
|
}
|
|
334
334
|
getPromotions(marketplaceId, { limit, offset, promotionStatus, promotionType, q, sort } = {}) {
|
|
335
|
-
return this.get(
|
|
335
|
+
return this.get('/promotion', {
|
|
336
336
|
params: {
|
|
337
337
|
marketplace_id: marketplaceId,
|
|
338
338
|
limit,
|
|
@@ -353,7 +353,7 @@ class Marketing extends Restful {
|
|
|
353
353
|
return this.post(`/promotion/${id}/resume`);
|
|
354
354
|
}
|
|
355
355
|
getPromotionReports(marketplaceId, { limit, offset, promotionStatus, promotionType, q } = {}) {
|
|
356
|
-
return this.get(
|
|
356
|
+
return this.get('/promotion_report', {
|
|
357
357
|
params: {
|
|
358
358
|
marketplace_id: marketplaceId,
|
|
359
359
|
limit,
|
|
@@ -365,7 +365,7 @@ class Marketing extends Restful {
|
|
|
365
365
|
});
|
|
366
366
|
}
|
|
367
367
|
getPromotionSummaryReport(marketplaceId) {
|
|
368
|
-
return this.get(
|
|
368
|
+
return this.get('/promotion_summary_report', {
|
|
369
369
|
params: {
|
|
370
370
|
marketplace_id: marketplaceId
|
|
371
371
|
}
|
|
@@ -376,7 +376,7 @@ class Marketing extends Restful {
|
|
|
376
376
|
return this.get(`/email_campaign/${emailCampaignId}`);
|
|
377
377
|
}
|
|
378
378
|
getEmailCampaigns({ limit, q, offset, sort } = {}) {
|
|
379
|
-
return this.get(
|
|
379
|
+
return this.get('/email_campaign', {
|
|
380
380
|
params: {
|
|
381
381
|
limit,
|
|
382
382
|
offset,
|
|
@@ -386,7 +386,7 @@ class Marketing extends Restful {
|
|
|
386
386
|
});
|
|
387
387
|
}
|
|
388
388
|
createEmailCampaign(body) {
|
|
389
|
-
return this.post(
|
|
389
|
+
return this.post('/email_campaign', body);
|
|
390
390
|
}
|
|
391
391
|
updateEmailCampaign(emailCampaignId, body) {
|
|
392
392
|
emailCampaignId = encodeURIComponent(emailCampaignId);
|
|
@@ -401,11 +401,11 @@ class Marketing extends Restful {
|
|
|
401
401
|
return this.get(`/email_campaign/${emailCampaignId}/email_preview`);
|
|
402
402
|
}
|
|
403
403
|
getAudiences() {
|
|
404
|
-
return this.get(
|
|
404
|
+
return this.get('/email_campaign/audience');
|
|
405
405
|
}
|
|
406
406
|
;
|
|
407
407
|
getEmailReport(startDate, endDate) {
|
|
408
|
-
return this.get(
|
|
408
|
+
return this.get('/email_campaign/report', {
|
|
409
409
|
params: {
|
|
410
410
|
startDate,
|
|
411
411
|
endDate
|
|
@@ -4,7 +4,7 @@ class Negotiation extends Restful {
|
|
|
4
4
|
return '/sell/negotiation/v1';
|
|
5
5
|
}
|
|
6
6
|
findEligibleItems({ limit, offset } = {}) {
|
|
7
|
-
return this.get(
|
|
7
|
+
return this.get('/find_eligible_items', {
|
|
8
8
|
params: {
|
|
9
9
|
limit,
|
|
10
10
|
offset
|
|
@@ -12,7 +12,7 @@ class Negotiation extends Restful {
|
|
|
12
12
|
});
|
|
13
13
|
}
|
|
14
14
|
sendOfferToInterestedBuyers(data) {
|
|
15
|
-
return this.post(
|
|
15
|
+
return this.post('/send_offer_to_interested_buyers', data);
|
|
16
16
|
}
|
|
17
17
|
}
|
|
18
18
|
Negotiation.id = 'Negotiation';
|
|
@@ -6,8 +6,6 @@ export declare const defaultXmlBuilderOptions: {
|
|
|
6
6
|
attributeNamePrefix: string;
|
|
7
7
|
textNodeName: string;
|
|
8
8
|
ignoreAttributes: boolean;
|
|
9
|
-
cdataTagName: string;
|
|
10
|
-
cdataPositionChar: string;
|
|
11
9
|
format: boolean;
|
|
12
10
|
indentBy: string;
|
|
13
11
|
suppressEmptyNode: boolean;
|
|
@@ -18,7 +16,7 @@ export declare const defaultXML2JSONParseOptions: {
|
|
|
18
16
|
textNodeName: string;
|
|
19
17
|
ignoreAttributes: boolean;
|
|
20
18
|
parseAttributeValue: boolean;
|
|
21
|
-
|
|
19
|
+
parseTagValue: boolean;
|
|
22
20
|
numberParseOptions: {
|
|
23
21
|
hex: boolean;
|
|
24
22
|
leadingZeros: boolean;
|
|
@@ -6,8 +6,6 @@ export const defaultXmlBuilderOptions = {
|
|
|
6
6
|
attributeNamePrefix: '@_',
|
|
7
7
|
textNodeName: '#value',
|
|
8
8
|
ignoreAttributes: false,
|
|
9
|
-
cdataTagName: '__cdata',
|
|
10
|
-
cdataPositionChar: '\\c',
|
|
11
9
|
format: false,
|
|
12
10
|
indentBy: ' ',
|
|
13
11
|
suppressEmptyNode: false,
|
|
@@ -18,7 +16,7 @@ export const defaultXML2JSONParseOptions = {
|
|
|
18
16
|
textNodeName: 'value',
|
|
19
17
|
ignoreAttributes: false,
|
|
20
18
|
parseAttributeValue: true,
|
|
21
|
-
|
|
19
|
+
parseTagValue: true,
|
|
22
20
|
numberParseOptions: {
|
|
23
21
|
hex: false,
|
|
24
22
|
leadingZeros: false
|
|
@@ -70,7 +68,7 @@ export default class XMLRequest {
|
|
|
70
68
|
getHeaders() {
|
|
71
69
|
return {
|
|
72
70
|
...defaultHeaders,
|
|
73
|
-
...this.config.headers
|
|
71
|
+
...this.config.headers
|
|
74
72
|
};
|
|
75
73
|
}
|
|
76
74
|
toJSON(xml) {
|
package/dist/auth/oAuth2.js
CHANGED
|
@@ -69,7 +69,7 @@ class OAuth2 extends Base {
|
|
|
69
69
|
try {
|
|
70
70
|
const response = await this.req.postForm(this.identityEndpoint, {
|
|
71
71
|
scope: this.scope.join(' '),
|
|
72
|
-
grant_type: 'client_credentials'
|
|
72
|
+
grant_type: 'client_credentials'
|
|
73
73
|
}, {
|
|
74
74
|
auth: {
|
|
75
75
|
username: this.config.appId,
|