contentful-management 11.57.2 → 11.57.3
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/contentful-management.browser.js +9 -45
- package/dist/contentful-management.browser.js.map +1 -1
- package/dist/contentful-management.browser.min.js +1 -1
- package/dist/contentful-management.node.js +9 -45
- package/dist/contentful-management.node.js.map +1 -1
- package/dist/contentful-management.node.min.js +1 -1
- package/dist/es-modules/contentful-management.js +1 -1
- package/dist/es-modules/entities/app-action-call.js +8 -44
- package/dist/typings/entities/app-action-call.d.ts +5 -5
- package/package.json +1 -1
|
@@ -13637,74 +13637,38 @@ function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e =
|
|
|
13637
13637
|
|
|
13638
13638
|
|
|
13639
13639
|
|
|
13640
|
-
|
|
13641
|
-
// Raw App Action call response (new endpoint). Not yet wired to runtime behavior.
|
|
13642
|
-
|
|
13643
13640
|
/**
|
|
13644
13641
|
* @private
|
|
13645
13642
|
*/
|
|
13646
13643
|
function createAppActionCallApi(makeRequest, retryOptions) {
|
|
13647
13644
|
return {
|
|
13648
|
-
createWithResponse: function () {
|
|
13649
|
-
const payload = {
|
|
13650
|
-
parameters: {
|
|
13651
|
-
recipient: 'Alice <alice@my-company.com>',
|
|
13652
|
-
message_body: 'Hello from Bob!'
|
|
13653
|
-
}
|
|
13654
|
-
};
|
|
13645
|
+
createWithResponse: function (params, payload) {
|
|
13655
13646
|
return makeRequest({
|
|
13656
13647
|
entityType: 'AppActionCall',
|
|
13657
13648
|
action: 'createWithResponse',
|
|
13658
|
-
params: _objectSpread({
|
|
13659
|
-
spaceId: 'space-id',
|
|
13660
|
-
environmentId: 'environment-id',
|
|
13661
|
-
appDefinitionId: 'app-definiton-id',
|
|
13662
|
-
appActionId: 'app-action-id'
|
|
13663
|
-
}, retryOptions),
|
|
13649
|
+
params: _objectSpread(_objectSpread({}, params), retryOptions),
|
|
13664
13650
|
payload: payload
|
|
13665
13651
|
}).then(data => wrapAppActionCallResponse(makeRequest, data));
|
|
13666
13652
|
},
|
|
13667
|
-
getCallDetails: function getCallDetails() {
|
|
13653
|
+
getCallDetails: function getCallDetails(params) {
|
|
13668
13654
|
return makeRequest({
|
|
13669
13655
|
entityType: 'AppActionCall',
|
|
13670
13656
|
action: 'getCallDetails',
|
|
13671
|
-
params
|
|
13672
|
-
spaceId: 'space-id',
|
|
13673
|
-
environmentId: 'environment-id',
|
|
13674
|
-
callId: 'call-id',
|
|
13675
|
-
appActionId: 'app-action-id'
|
|
13676
|
-
}
|
|
13657
|
+
params
|
|
13677
13658
|
}).then(data => wrapAppActionCallResponse(makeRequest, data));
|
|
13678
13659
|
},
|
|
13679
|
-
get: function get() {
|
|
13660
|
+
get: function get(params) {
|
|
13680
13661
|
return makeRequest({
|
|
13681
13662
|
entityType: 'AppActionCall',
|
|
13682
13663
|
action: 'get',
|
|
13683
|
-
params
|
|
13684
|
-
spaceId: 'space-id',
|
|
13685
|
-
environmentId: 'environment-id',
|
|
13686
|
-
appDefinitionId: 'app-definiton-id',
|
|
13687
|
-
appActionId: 'app-action-id',
|
|
13688
|
-
callId: 'call-id'
|
|
13689
|
-
}
|
|
13664
|
+
params
|
|
13690
13665
|
}).then(data => wrapAppActionCall(makeRequest, data));
|
|
13691
13666
|
},
|
|
13692
|
-
createWithResult: function () {
|
|
13693
|
-
const payload = {
|
|
13694
|
-
parameters: {
|
|
13695
|
-
recipient: 'Alice <alice@my-company.com>',
|
|
13696
|
-
message_body: 'Hello from Bob!'
|
|
13697
|
-
}
|
|
13698
|
-
};
|
|
13667
|
+
createWithResult: function (params, payload) {
|
|
13699
13668
|
return makeRequest({
|
|
13700
13669
|
entityType: 'AppActionCall',
|
|
13701
13670
|
action: 'createWithResult',
|
|
13702
|
-
params: _objectSpread({
|
|
13703
|
-
spaceId: 'space-id',
|
|
13704
|
-
environmentId: 'environment-id',
|
|
13705
|
-
appDefinitionId: 'app-definiton-id',
|
|
13706
|
-
appActionId: 'app-action-id'
|
|
13707
|
-
}, retryOptions),
|
|
13671
|
+
params: _objectSpread(_objectSpread({}, params), retryOptions),
|
|
13708
13672
|
payload: payload
|
|
13709
13673
|
}).then(data => wrapAppActionCall(makeRequest, data));
|
|
13710
13674
|
}
|
|
@@ -33001,7 +32965,7 @@ function createClient(params, opts = {}) {
|
|
|
33001
32965
|
const sdkMain = opts.type === 'plain' ? 'contentful-management-plain.js' : 'contentful-management.js';
|
|
33002
32966
|
const userAgent = (0,contentful_sdk_core__WEBPACK_IMPORTED_MODULE_0__.getUserAgentHeader)(
|
|
33003
32967
|
// @ts-expect-error
|
|
33004
|
-
`${sdkMain}/${"11.57.
|
|
32968
|
+
`${sdkMain}/${"11.57.3"}`, params.application, params.integration, params.feature);
|
|
33005
32969
|
const adapter = (0,_create_adapter__WEBPACK_IMPORTED_MODULE_1__.createAdapter)(_objectSpread(_objectSpread({}, params), {}, {
|
|
33006
32970
|
userAgent
|
|
33007
32971
|
}));
|