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.
@@ -14105,80 +14105,44 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
14105
14105
 
14106
14106
 
14107
14107
 
14108
-
14109
- // Raw App Action call response (new endpoint). Not yet wired to runtime behavior.
14110
-
14111
14108
  /**
14112
14109
  * @private
14113
14110
  */
14114
14111
  function createAppActionCallApi(makeRequest, retryOptions) {
14115
14112
  return {
14116
- createWithResponse: function createWithResponse() {
14117
- var payload = {
14118
- parameters: {
14119
- recipient: 'Alice <alice@my-company.com>',
14120
- message_body: 'Hello from Bob!'
14121
- }
14122
- };
14113
+ createWithResponse: function createWithResponse(params, payload) {
14123
14114
  return makeRequest({
14124
14115
  entityType: 'AppActionCall',
14125
14116
  action: 'createWithResponse',
14126
- params: _objectSpread({
14127
- spaceId: 'space-id',
14128
- environmentId: 'environment-id',
14129
- appDefinitionId: 'app-definiton-id',
14130
- appActionId: 'app-action-id'
14131
- }, retryOptions),
14117
+ params: _objectSpread(_objectSpread({}, params), retryOptions),
14132
14118
  payload: payload
14133
14119
  }).then(function (data) {
14134
14120
  return wrapAppActionCallResponse(makeRequest, data);
14135
14121
  });
14136
14122
  },
14137
- getCallDetails: function getCallDetails() {
14123
+ getCallDetails: function getCallDetails(params) {
14138
14124
  return makeRequest({
14139
14125
  entityType: 'AppActionCall',
14140
14126
  action: 'getCallDetails',
14141
- params: {
14142
- spaceId: 'space-id',
14143
- environmentId: 'environment-id',
14144
- callId: 'call-id',
14145
- appActionId: 'app-action-id'
14146
- }
14127
+ params: params
14147
14128
  }).then(function (data) {
14148
14129
  return wrapAppActionCallResponse(makeRequest, data);
14149
14130
  });
14150
14131
  },
14151
- get: function get() {
14132
+ get: function get(params) {
14152
14133
  return makeRequest({
14153
14134
  entityType: 'AppActionCall',
14154
14135
  action: 'get',
14155
- params: {
14156
- spaceId: 'space-id',
14157
- environmentId: 'environment-id',
14158
- appDefinitionId: 'app-definiton-id',
14159
- appActionId: 'app-action-id',
14160
- callId: 'call-id'
14161
- }
14136
+ params: params
14162
14137
  }).then(function (data) {
14163
14138
  return wrapAppActionCall(makeRequest, data);
14164
14139
  });
14165
14140
  },
14166
- createWithResult: function createWithResult() {
14167
- var payload = {
14168
- parameters: {
14169
- recipient: 'Alice <alice@my-company.com>',
14170
- message_body: 'Hello from Bob!'
14171
- }
14172
- };
14141
+ createWithResult: function createWithResult(params, payload) {
14173
14142
  return makeRequest({
14174
14143
  entityType: 'AppActionCall',
14175
14144
  action: 'createWithResult',
14176
- params: _objectSpread({
14177
- spaceId: 'space-id',
14178
- environmentId: 'environment-id',
14179
- appDefinitionId: 'app-definiton-id',
14180
- appActionId: 'app-action-id'
14181
- }, retryOptions),
14145
+ params: _objectSpread(_objectSpread({}, params), retryOptions),
14182
14146
  payload: payload
14183
14147
  }).then(function (data) {
14184
14148
  return wrapAppActionCall(makeRequest, data);
@@ -29453,7 +29417,7 @@ function createClient(params) {
29453
29417
  var opts = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
29454
29418
  var sdkMain = opts.type === 'plain' ? 'contentful-management-plain.js' : 'contentful-management.js';
29455
29419
  var userAgent = (0,contentful_sdk_core__WEBPACK_IMPORTED_MODULE_0__.getUserAgentHeader)(// @ts-expect-error
29456
- "".concat(sdkMain, "/").concat("11.57.2"), params.application, params.integration, params.feature);
29420
+ "".concat(sdkMain, "/").concat("11.57.3"), params.application, params.integration, params.feature);
29457
29421
  var adapter = (0,_create_adapter__WEBPACK_IMPORTED_MODULE_1__.createAdapter)(_objectSpread(_objectSpread({}, params), {}, {
29458
29422
  userAgent: userAgent
29459
29423
  }));