@elasticpath/js-sdk 21.0.0 → 22.0.0

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.cjs.js CHANGED
@@ -530,7 +530,7 @@ if (!globalThis.fetch) {
530
530
  globalThis.Response = fetch$1.Response;
531
531
  }
532
532
 
533
- var version = "21.0.0";
533
+ var version = "22.0.0";
534
534
 
535
535
  var LocalStorageFactory = /*#__PURE__*/function () {
536
536
  function LocalStorageFactory() {
@@ -3355,11 +3355,12 @@ var UserAuthenticationPasswordProfileEndpoint = /*#__PURE__*/function (_CRUDExte
3355
3355
  }
3356
3356
  }, {
3357
3357
  key: "Update",
3358
- value: function Update(realmId, userAuthenticationInfoId, userAuthenticationPasswordProfileId, body, accountManagementAuthenticationToken) {
3359
- var token = arguments.length > 5 && arguments[5] !== undefined ? arguments[5] : null;
3360
- return this.request.send("".concat(this.endpoint.replace('{{realmId}}', realmId).replace('{{userAuthenticationInfoId}}', userAuthenticationInfoId), "/").concat(userAuthenticationPasswordProfileId), 'PUT', body.data, token, this, true, 'v2', {
3358
+ value: function Update(realmId, userAuthenticationInfoId, userAuthenticationPasswordProfileId, body) {
3359
+ var token = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : null;
3360
+ var accountManagementAuthenticationToken = arguments.length > 5 && arguments[5] !== undefined ? arguments[5] : null;
3361
+ return this.request.send("".concat(this.endpoint.replace('{{realmId}}', realmId).replace('{{userAuthenticationInfoId}}', userAuthenticationInfoId), "/").concat(userAuthenticationPasswordProfileId), 'PUT', body.data, token, this, true, 'v2', accountManagementAuthenticationToken ? {
3361
3362
  'EP-Account-Management-Authentication-Token': accountManagementAuthenticationToken
3362
- });
3363
+ } : {});
3363
3364
  }
3364
3365
  }, {
3365
3366
  key: "Delete",
package/dist/index.d.ts CHANGED
@@ -7173,8 +7173,8 @@ interface UserAuthenticationPasswordProfileEndpoint {
7173
7173
  userAuthenticationInfoId: string,
7174
7174
  userAuthenticationPasswordProfileId: string,
7175
7175
  body: { data: UserAuthenticationPasswordProfileUpdateBody },
7176
- accountManagementAuthenticationToken: string,
7177
- token?: string
7176
+ token?: string | null,
7177
+ accountManagementAuthenticationToken?: string | null
7178
7178
  ): Promise<UserAuthenticationPasswordProfileResponse>
7179
7179
 
7180
7180
  /**
package/dist/index.esm.js CHANGED
@@ -519,7 +519,7 @@ if (!globalThis.fetch) {
519
519
  globalThis.Response = Response;
520
520
  }
521
521
 
522
- var version = "21.0.0";
522
+ var version = "22.0.0";
523
523
 
524
524
  var LocalStorageFactory = /*#__PURE__*/function () {
525
525
  function LocalStorageFactory() {
@@ -3344,11 +3344,12 @@ var UserAuthenticationPasswordProfileEndpoint = /*#__PURE__*/function (_CRUDExte
3344
3344
  }
3345
3345
  }, {
3346
3346
  key: "Update",
3347
- value: function Update(realmId, userAuthenticationInfoId, userAuthenticationPasswordProfileId, body, accountManagementAuthenticationToken) {
3348
- var token = arguments.length > 5 && arguments[5] !== undefined ? arguments[5] : null;
3349
- return this.request.send("".concat(this.endpoint.replace('{{realmId}}', realmId).replace('{{userAuthenticationInfoId}}', userAuthenticationInfoId), "/").concat(userAuthenticationPasswordProfileId), 'PUT', body.data, token, this, true, 'v2', {
3347
+ value: function Update(realmId, userAuthenticationInfoId, userAuthenticationPasswordProfileId, body) {
3348
+ var token = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : null;
3349
+ var accountManagementAuthenticationToken = arguments.length > 5 && arguments[5] !== undefined ? arguments[5] : null;
3350
+ return this.request.send("".concat(this.endpoint.replace('{{realmId}}', realmId).replace('{{userAuthenticationInfoId}}', userAuthenticationInfoId), "/").concat(userAuthenticationPasswordProfileId), 'PUT', body.data, token, this, true, 'v2', accountManagementAuthenticationToken ? {
3350
3351
  'EP-Account-Management-Authentication-Token': accountManagementAuthenticationToken
3351
- });
3352
+ } : {});
3352
3353
  }
3353
3354
  }, {
3354
3355
  key: "Delete",
package/dist/index.js CHANGED
@@ -1085,7 +1085,7 @@
1085
1085
  globalThis.Response = browserPonyfill.exports.Response;
1086
1086
  }
1087
1087
 
1088
- var version = "21.0.0";
1088
+ var version = "22.0.0";
1089
1089
 
1090
1090
  var LocalStorageFactory = /*#__PURE__*/function () {
1091
1091
  function LocalStorageFactory() {
@@ -4516,11 +4516,12 @@
4516
4516
  }
4517
4517
  }, {
4518
4518
  key: "Update",
4519
- value: function Update(realmId, userAuthenticationInfoId, userAuthenticationPasswordProfileId, body, accountManagementAuthenticationToken) {
4520
- var token = arguments.length > 5 && arguments[5] !== undefined ? arguments[5] : null;
4521
- return this.request.send("".concat(this.endpoint.replace('{{realmId}}', realmId).replace('{{userAuthenticationInfoId}}', userAuthenticationInfoId), "/").concat(userAuthenticationPasswordProfileId), 'PUT', body.data, token, this, true, 'v2', {
4519
+ value: function Update(realmId, userAuthenticationInfoId, userAuthenticationPasswordProfileId, body) {
4520
+ var token = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : null;
4521
+ var accountManagementAuthenticationToken = arguments.length > 5 && arguments[5] !== undefined ? arguments[5] : null;
4522
+ return this.request.send("".concat(this.endpoint.replace('{{realmId}}', realmId).replace('{{userAuthenticationInfoId}}', userAuthenticationInfoId), "/").concat(userAuthenticationPasswordProfileId), 'PUT', body.data, token, this, true, 'v2', accountManagementAuthenticationToken ? {
4522
4523
  'EP-Account-Management-Authentication-Token': accountManagementAuthenticationToken
4523
- });
4524
+ } : {});
4524
4525
  }
4525
4526
  }, {
4526
4527
  key: "Delete",
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@elasticpath/js-sdk",
3
3
  "description": "SDK for the Elastic Path eCommerce API",
4
- "version": "21.0.0",
4
+ "version": "22.0.0",
5
5
  "homepage": "https://github.com/elasticpath/js-sdk",
6
6
  "author": "Elastic Path (https://elasticpath.com/)",
7
7
  "files": [