@elasticpath/js-sdk 20.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 +5 -2
- package/dist/index.d.ts +89 -59
- package/dist/index.esm.js +5 -2
- package/dist/index.js +5 -2
- package/package.json +1 -1
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 = "
|
|
533
|
+
var version = "22.0.0";
|
|
534
534
|
|
|
535
535
|
var LocalStorageFactory = /*#__PURE__*/function () {
|
|
536
536
|
function LocalStorageFactory() {
|
|
@@ -3357,7 +3357,10 @@ var UserAuthenticationPasswordProfileEndpoint = /*#__PURE__*/function (_CRUDExte
|
|
|
3357
3357
|
key: "Update",
|
|
3358
3358
|
value: function Update(realmId, userAuthenticationInfoId, userAuthenticationPasswordProfileId, body) {
|
|
3359
3359
|
var token = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : null;
|
|
3360
|
-
|
|
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 ? {
|
|
3362
|
+
'EP-Account-Management-Authentication-Token': accountManagementAuthenticationToken
|
|
3363
|
+
} : {});
|
|
3361
3364
|
}
|
|
3362
3365
|
}, {
|
|
3363
3366
|
key: "Delete",
|
package/dist/index.d.ts
CHANGED
|
@@ -7083,33 +7083,36 @@ interface PCMVariationsEndpoint
|
|
|
7083
7083
|
*/
|
|
7084
7084
|
|
|
7085
7085
|
interface UserAuthenticationPasswordProfileBody {
|
|
7086
|
-
|
|
7087
|
-
|
|
7088
|
-
|
|
7089
|
-
|
|
7086
|
+
type: string
|
|
7087
|
+
password_profile_id: string
|
|
7088
|
+
username: string
|
|
7089
|
+
password: string
|
|
7090
7090
|
}
|
|
7091
7091
|
|
|
7092
7092
|
interface UserAuthenticationPasswordProfileUpdateBody {
|
|
7093
|
-
|
|
7094
|
-
|
|
7095
|
-
|
|
7093
|
+
type: string
|
|
7094
|
+
username: string
|
|
7095
|
+
password: string
|
|
7096
7096
|
}
|
|
7097
7097
|
|
|
7098
|
-
interface UserAuthenticationPasswordProfile
|
|
7099
|
-
|
|
7100
|
-
|
|
7101
|
-
|
|
7102
|
-
|
|
7103
|
-
|
|
7098
|
+
interface UserAuthenticationPasswordProfile
|
|
7099
|
+
extends UserAuthenticationPasswordProfileBody,
|
|
7100
|
+
Identifiable {
|
|
7101
|
+
meta: {
|
|
7102
|
+
timestamps: {
|
|
7103
|
+
created_at: string
|
|
7104
|
+
updated_at: string
|
|
7104
7105
|
}
|
|
7105
|
-
|
|
7106
|
-
|
|
7106
|
+
}
|
|
7107
|
+
links: {}
|
|
7108
|
+
relationships: {}
|
|
7107
7109
|
}
|
|
7108
7110
|
|
|
7109
|
-
interface UserAuthenticationPasswordProfileResponse
|
|
7110
|
-
|
|
7111
|
-
|
|
7112
|
-
|
|
7111
|
+
interface UserAuthenticationPasswordProfileResponse
|
|
7112
|
+
extends Resource<UserAuthenticationPasswordProfile> {
|
|
7113
|
+
links: {
|
|
7114
|
+
self: string
|
|
7115
|
+
}
|
|
7113
7116
|
}
|
|
7114
7117
|
|
|
7115
7118
|
/**
|
|
@@ -7117,49 +7120,76 @@ interface UserAuthenticationPasswordProfileResponse extends Resource<UserAuthent
|
|
|
7117
7120
|
* DOCS: https://documentation.elasticpath.com/commerce-cloud/docs/api/single-sign-on/user-authentication-password-profiles/index.html
|
|
7118
7121
|
*/
|
|
7119
7122
|
interface UserAuthenticationPasswordProfileEndpoint {
|
|
7120
|
-
|
|
7121
|
-
|
|
7122
|
-
|
|
7123
|
-
|
|
7124
|
-
|
|
7125
|
-
|
|
7126
|
-
|
|
7127
|
-
|
|
7128
|
-
|
|
7129
|
-
|
|
7130
|
-
|
|
7131
|
-
|
|
7132
|
-
|
|
7133
|
-
|
|
7134
|
-
|
|
7123
|
+
/**
|
|
7124
|
+
* Read All User Authentication Password Info Profile
|
|
7125
|
+
* DOCS: https://documentation.elasticpath.com/commerce-cloud/docs/api/single-sign-on/user-authentication-password-profiles/get-all-user-authentication-password-profile.html
|
|
7126
|
+
* @param realmId - The ID for the authentication-realm.
|
|
7127
|
+
* @param userAuthenticationInfoId - The ID for the user authentication info.
|
|
7128
|
+
*/
|
|
7129
|
+
All(
|
|
7130
|
+
realmId: string,
|
|
7131
|
+
userAuthenticationInfoId: string,
|
|
7132
|
+
token?: string,
|
|
7133
|
+
headers?
|
|
7134
|
+
): Promise<ResourceList<UserAuthenticationPasswordProfile>>
|
|
7135
|
+
/**
|
|
7136
|
+
* Get a User Authentication Password Info Profile
|
|
7137
|
+
* DOCS: https://documentation.elasticpath.com/commerce-cloud/docs/api/single-sign-on/user-authentication-password-profiles/get-a-user-authentication-password-profile.html
|
|
7138
|
+
* @param realmId - The ID for the authentication-realm.
|
|
7139
|
+
* @param userAuthenticationInfoId - The ID for the user authentication info.
|
|
7140
|
+
* @param userAuthenticationPasswordProfileId - The ID for the user authentication password profile info.
|
|
7141
|
+
*/
|
|
7142
|
+
Get(
|
|
7143
|
+
realmId: string,
|
|
7144
|
+
userAuthenticationInfoId: string,
|
|
7145
|
+
userAuthenticationPasswordProfileId: string,
|
|
7146
|
+
token?: string
|
|
7147
|
+
): Promise<UserAuthenticationPasswordProfileResponse>
|
|
7135
7148
|
|
|
7136
|
-
|
|
7137
|
-
|
|
7138
|
-
|
|
7139
|
-
|
|
7140
|
-
|
|
7141
|
-
|
|
7142
|
-
|
|
7143
|
-
|
|
7149
|
+
/**
|
|
7150
|
+
* Create an User Authentication Password Info Profile
|
|
7151
|
+
* DOCS: https://documentation.elasticpath.com/commerce-cloud/docs/api/single-sign-on/user-authentication-password-profiles/create-a-user-authentication-password-profile.html
|
|
7152
|
+
* @param realmId - The ID for the authentication-realm.
|
|
7153
|
+
* @param userAuthenticationInfoId - The ID for the user authentication info.
|
|
7154
|
+
* @param body - The User Authentication Password Profile Info object
|
|
7155
|
+
*/
|
|
7156
|
+
Create(
|
|
7157
|
+
realmId: string,
|
|
7158
|
+
userAuthenticationInfoId: string,
|
|
7159
|
+
body: { data: UserAuthenticationPasswordProfileBody },
|
|
7160
|
+
token?: string
|
|
7161
|
+
): Promise<UserAuthenticationPasswordProfileResponse>
|
|
7144
7162
|
|
|
7145
|
-
|
|
7146
|
-
|
|
7147
|
-
|
|
7148
|
-
|
|
7149
|
-
|
|
7150
|
-
|
|
7151
|
-
|
|
7152
|
-
|
|
7153
|
-
|
|
7163
|
+
/**
|
|
7164
|
+
* Update an User Authentication Password Profile Info
|
|
7165
|
+
* DOCS: https://documentation.elasticpath.com/commerce-cloud/docs/api/single-sign-on/user-authentication-password-profiles/update-a-user-authentication-password-profile.html
|
|
7166
|
+
* @param realmId - The ID for the authentication-realm.
|
|
7167
|
+
* @param userAuthenticationInfoId - The ID for the user authentication info.
|
|
7168
|
+
* @param userAuthenticationPasswordProfileId - The ID for the user authentication password profile info.
|
|
7169
|
+
* @param body - The User Authentication Password Profile Info object
|
|
7170
|
+
*/
|
|
7171
|
+
Update(
|
|
7172
|
+
realmId: string,
|
|
7173
|
+
userAuthenticationInfoId: string,
|
|
7174
|
+
userAuthenticationPasswordProfileId: string,
|
|
7175
|
+
body: { data: UserAuthenticationPasswordProfileUpdateBody },
|
|
7176
|
+
token?: string | null,
|
|
7177
|
+
accountManagementAuthenticationToken?: string | null
|
|
7178
|
+
): Promise<UserAuthenticationPasswordProfileResponse>
|
|
7154
7179
|
|
|
7155
|
-
|
|
7156
|
-
|
|
7157
|
-
|
|
7158
|
-
|
|
7159
|
-
|
|
7160
|
-
|
|
7161
|
-
|
|
7162
|
-
|
|
7180
|
+
/**
|
|
7181
|
+
* Delete an User Authentication Password Profile Info
|
|
7182
|
+
* DOCS: https://documentation.elasticpath.com/commerce-cloud/docs/api/single-sign-on/password-profiles/delete-a-user-authentication-password-profile.html
|
|
7183
|
+
* @param realmId - The ID for the authentication-realm containing the Password profiles.
|
|
7184
|
+
* @param userAuthenticationInfoId - The ID for the user authentication info.
|
|
7185
|
+
* @param userAuthenticationPasswordProfileId - The ID for the user authentication password profile info.
|
|
7186
|
+
*/
|
|
7187
|
+
Delete(
|
|
7188
|
+
realmId: string,
|
|
7189
|
+
userAuthenticationInfoId: string,
|
|
7190
|
+
userAuthenticationPasswordProfileId: string,
|
|
7191
|
+
token?: string
|
|
7192
|
+
)
|
|
7163
7193
|
}
|
|
7164
7194
|
|
|
7165
7195
|
interface MetricsBase {
|
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 = "
|
|
522
|
+
var version = "22.0.0";
|
|
523
523
|
|
|
524
524
|
var LocalStorageFactory = /*#__PURE__*/function () {
|
|
525
525
|
function LocalStorageFactory() {
|
|
@@ -3346,7 +3346,10 @@ var UserAuthenticationPasswordProfileEndpoint = /*#__PURE__*/function (_CRUDExte
|
|
|
3346
3346
|
key: "Update",
|
|
3347
3347
|
value: function Update(realmId, userAuthenticationInfoId, userAuthenticationPasswordProfileId, body) {
|
|
3348
3348
|
var token = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : null;
|
|
3349
|
-
|
|
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 ? {
|
|
3351
|
+
'EP-Account-Management-Authentication-Token': accountManagementAuthenticationToken
|
|
3352
|
+
} : {});
|
|
3350
3353
|
}
|
|
3351
3354
|
}, {
|
|
3352
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 = "
|
|
1088
|
+
var version = "22.0.0";
|
|
1089
1089
|
|
|
1090
1090
|
var LocalStorageFactory = /*#__PURE__*/function () {
|
|
1091
1091
|
function LocalStorageFactory() {
|
|
@@ -4518,7 +4518,10 @@
|
|
|
4518
4518
|
key: "Update",
|
|
4519
4519
|
value: function Update(realmId, userAuthenticationInfoId, userAuthenticationPasswordProfileId, body) {
|
|
4520
4520
|
var token = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : null;
|
|
4521
|
-
|
|
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 ? {
|
|
4523
|
+
'EP-Account-Management-Authentication-Token': accountManagementAuthenticationToken
|
|
4524
|
+
} : {});
|
|
4522
4525
|
}
|
|
4523
4526
|
}, {
|
|
4524
4527
|
key: "Delete",
|
package/package.json
CHANGED