@livechat/developer-studio-api 3.4.10 → 3.4.11

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.js CHANGED
@@ -465,7 +465,7 @@ var gitHubRepositoryApi = {
465
465
  repository = response2.data;
466
466
  } else {
467
467
  const response2 = yield githubClientInstance.post(
468
- `/user/repos`,
468
+ "/user/repos",
469
469
  {
470
470
  name,
471
471
  description: name,
@@ -493,7 +493,7 @@ var gitHubRepositoryApi = {
493
493
  return repository;
494
494
  }
495
495
  const response = yield githubClientInstance.post(
496
- `/user/repos`,
496
+ "/user/repos",
497
497
  {
498
498
  name,
499
499
  description: name,
@@ -714,7 +714,7 @@ var gitHubUserApi = {
714
714
  getUser(authorization) {
715
715
  return __async(this, null, function* () {
716
716
  const { data: user } = yield githubClientInstance.get(
717
- `/user`,
717
+ "/user",
718
718
  getGithubClientConfig({
719
719
  token: authorization == null ? void 0 : authorization.appToken,
720
720
  ensureAuthorizationToken: true
@@ -812,7 +812,7 @@ var netlifyAccountApi = {
812
812
  getAccount(authorization) {
813
813
  return __async(this, null, function* () {
814
814
  const { data: accounts } = yield netlifyClientInstance.get(
815
- `/accounts`,
815
+ "/accounts",
816
816
  getNetlifyClientConfig(__spreadProps(__spreadValues({}, authorization), {
817
817
  ensureAuthorizationToken: true
818
818
  }))
@@ -1093,7 +1093,7 @@ var netlifySiteApi = {
1093
1093
  cmd: ""
1094
1094
  };
1095
1095
  const response = yield netlifyClientInstance.post(
1096
- `/sites`,
1096
+ "/sites",
1097
1097
  {
1098
1098
  name,
1099
1099
  repo: {
@@ -1140,7 +1140,7 @@ var netlifySiteApi = {
1140
1140
  cmd: ""
1141
1141
  };
1142
1142
  const response = yield netlifyClientInstance.post(
1143
- `/sites`,
1143
+ "/sites",
1144
1144
  {
1145
1145
  name,
1146
1146
  repo: {
@@ -1281,7 +1281,7 @@ function getPlanetScaleClientConfig(options = {}) {
1281
1281
  var _a;
1282
1282
  const currentHeaders = planetScaleClientInstance.defaults.headers;
1283
1283
  const config = {
1284
- authorization: (_a = options.token ? `${options.token}` : void 0) != null ? _a : currentHeaders.Authorization
1284
+ authorization: (_a = options.token ? options.token : void 0) != null ? _a : currentHeaders.Authorization
1285
1285
  };
1286
1286
  if (options.ensureAuthorizationToken && !config.authorization) {
1287
1287
  throw new UnauthorizeApiError("planetscale");
@@ -1298,7 +1298,7 @@ function initPlanetScaleClient(token) {
1298
1298
  function updatePlanetScaleClient(token) {
1299
1299
  const headers = planetScaleClientInstance.defaults.headers;
1300
1300
  if (token) {
1301
- headers.Authorization = `${token}`;
1301
+ headers.Authorization = token;
1302
1302
  } else {
1303
1303
  delete headers.Authorization;
1304
1304
  }
@@ -1434,7 +1434,7 @@ var planescaleOrganizationApi = {
1434
1434
  getOrganizations(authorization) {
1435
1435
  return __async(this, null, function* () {
1436
1436
  const response = yield planetScaleClientInstance.get(
1437
- `/v1/organizations`,
1437
+ "/v1/organizations",
1438
1438
  getPlanetScaleClientConfig(__spreadProps(__spreadValues({}, authorization), {
1439
1439
  ensureAuthorizationToken: true
1440
1440
  }))
@@ -1460,7 +1460,7 @@ var planescaleUserApi = {
1460
1460
  getUser(authorization) {
1461
1461
  return __async(this, null, function* () {
1462
1462
  const response = yield planetScaleClientInstance.get(
1463
- `/v1/user`,
1463
+ "/v1/user",
1464
1464
  getPlanetScaleClientConfig(__spreadProps(__spreadValues({}, authorization), {
1465
1465
  ensureAuthorizationToken: true
1466
1466
  }))
@@ -1953,7 +1953,7 @@ var HubspotApiError = class extends ApiErrorBase {
1953
1953
  }
1954
1954
  };
1955
1955
  var hubspotClientInstance = import_axios14.default.create({
1956
- baseURL: `https://api.hubapi.com`,
1956
+ baseURL: "https://api.hubapi.com",
1957
1957
  headers: {
1958
1958
  "Content-Type": "application/json"
1959
1959
  }
@@ -3412,7 +3412,7 @@ var textPlatformDashboardApi = {
3412
3412
  return __async(this, null, function* () {
3413
3413
  try {
3414
3414
  const response = yield textClientInstance.get(
3415
- `/platform_dashboard/credits`,
3415
+ "/platform_dashboard/credits",
3416
3416
  getTextClientConfig(authorization)
3417
3417
  );
3418
3418
  return response.data;
@@ -3428,7 +3428,7 @@ var textPlatformDashboardApi = {
3428
3428
  return __async(this, null, function* () {
3429
3429
  try {
3430
3430
  const response = yield textClientInstance.get(
3431
- `/platform_dashboard/next_payment`,
3431
+ "/platform_dashboard/next_payment",
3432
3432
  getTextClientConfig(authorization)
3433
3433
  );
3434
3434
  return response.data;
@@ -3444,7 +3444,7 @@ var textPlatformDashboardApi = {
3444
3444
  return __async(this, null, function* () {
3445
3445
  try {
3446
3446
  const response = yield textClientInstance.post(
3447
- `/platform_dashboard/credits`,
3447
+ "/platform_dashboard/credits",
3448
3448
  getTextClientConfig(authorization)
3449
3449
  );
3450
3450
  return response.data;
@@ -3480,7 +3480,7 @@ var textPlatformWorkflowsCredentialsApi = {
3480
3480
  getList(authorization) {
3481
3481
  return __async(this, null, function* () {
3482
3482
  return textClientInstance.get(
3483
- `/workflow_platform/credentials`,
3483
+ "/workflow_platform/credentials",
3484
3484
  getTextClientConfig(__spreadProps(__spreadValues({}, authorization), {
3485
3485
  ensureAuthorizationToken: true
3486
3486
  }))
@@ -3497,7 +3497,7 @@ var textPlatformWorkflowsCredentialsApi = {
3497
3497
  create(payload, authorization) {
3498
3498
  return __async(this, null, function* () {
3499
3499
  return textClientInstance.post(
3500
- `/workflow_platform/credentials`,
3500
+ "/workflow_platform/credentials",
3501
3501
  payload,
3502
3502
  getTextClientConfig(__spreadProps(__spreadValues({}, authorization), {
3503
3503
  ensureAuthorizationToken: true
@@ -3574,7 +3574,7 @@ var textPlatformWorkflowsFunctionsApi = {
3574
3574
  get(authorization) {
3575
3575
  return __async(this, null, function* () {
3576
3576
  return textClientInstance.get(
3577
- `/workflow_platform/functions`,
3577
+ "/workflow_platform/functions",
3578
3578
  getTextClientConfig(__spreadProps(__spreadValues({}, authorization), {
3579
3579
  ensureAuthorizationToken: true
3580
3580
  }))
@@ -3727,7 +3727,7 @@ var textPlatformWorkflowsApi = {
3727
3727
  validateWorkflowDefinition(payload, authorization) {
3728
3728
  return __async(this, null, function* () {
3729
3729
  yield textClientInstance.post(
3730
- `/workflow_platform/workflows/validation`,
3730
+ "/workflow_platform/workflows/validation",
3731
3731
  payload,
3732
3732
  getTextClientConfig(__spreadProps(__spreadValues({}, authorization), {
3733
3733
  ensureAuthorizationToken: true
@@ -3765,7 +3765,7 @@ var vercelDeployApi = {
3765
3765
  createDeploy(project, repoId, branch, authorization) {
3766
3766
  return __async(this, null, function* () {
3767
3767
  const response = yield vercelClientInstance.post(
3768
- `/v13/deployments`,
3768
+ "/v13/deployments",
3769
3769
  {
3770
3770
  gitSource: { type: "github", ref: branch, repoId },
3771
3771
  name: project,
@@ -3786,7 +3786,7 @@ var vercelIntegrationApi = {
3786
3786
  getGitNamespaces(authorization) {
3787
3787
  return __async(this, null, function* () {
3788
3788
  const response = yield vercelClientInstance.get(
3789
- `/v1/integrations/git-namespaces?provider=github`,
3789
+ "/v1/integrations/git-namespaces?provider=github",
3790
3790
  getVercelClientConfig(__spreadProps(__spreadValues({}, authorization), {
3791
3791
  ensureAuthorizationToken: true
3792
3792
  }))
@@ -3885,7 +3885,7 @@ var vercelProjectApi = {
3885
3885
  createProject(name, repositoryFullName, branch, authorization) {
3886
3886
  return __async(this, null, function* () {
3887
3887
  const response = yield vercelClientInstance.post(
3888
- `/v9/projects`,
3888
+ "/v9/projects",
3889
3889
  {
3890
3890
  name,
3891
3891
  gitRepository: {
@@ -4198,7 +4198,7 @@ var neonProjectApi = {
4198
4198
  createProject(projectName, databaseName, authorization) {
4199
4199
  return __async(this, null, function* () {
4200
4200
  const response = yield neonClientInstance.post(
4201
- `/projects`,
4201
+ "/projects",
4202
4202
  {
4203
4203
  project: {
4204
4204
  name: projectName,
@@ -4228,7 +4228,7 @@ var neonProjectApi = {
4228
4228
  getProjects(authorization) {
4229
4229
  return __async(this, null, function* () {
4230
4230
  const response = yield neonClientInstance.get(
4231
- `/projects`,
4231
+ "/projects",
4232
4232
  getNeonClientConfig(__spreadProps(__spreadValues({}, authorization), {
4233
4233
  ensureAuthorizationToken: true
4234
4234
  }))
@@ -4254,7 +4254,7 @@ var neonUserApi = {
4254
4254
  getUser(authorization) {
4255
4255
  return __async(this, null, function* () {
4256
4256
  const response = yield neonClientInstance.get(
4257
- `/users/me`,
4257
+ "/users/me",
4258
4258
  getNeonClientConfig(__spreadProps(__spreadValues({}, authorization), {
4259
4259
  ensureAuthorizationToken: true
4260
4260
  }))
@@ -4432,7 +4432,7 @@ var shopifyWebhooksApi = {
4432
4432
  register(webhook, authorization) {
4433
4433
  return __async(this, null, function* () {
4434
4434
  const response = yield shopifyClientInstance.post(
4435
- `/webhooks.json`,
4435
+ "/webhooks.json",
4436
4436
  {
4437
4437
  webhook
4438
4438
  },
@@ -4653,7 +4653,7 @@ var bigCommerceWebhooksApi = {
4653
4653
  list(authorization) {
4654
4654
  return __async(this, null, function* () {
4655
4655
  const response = yield bigCommerceClientInstance.get(
4656
- `/hooks`,
4656
+ "/hooks",
4657
4657
  getBigCommerceClientConfig(__spreadProps(__spreadValues({}, authorization), {
4658
4658
  ensureAuthorizationToken: true
4659
4659
  }))
@@ -4664,7 +4664,7 @@ var bigCommerceWebhooksApi = {
4664
4664
  register(webhook, authorization) {
4665
4665
  return __async(this, null, function* () {
4666
4666
  const response = yield bigCommerceClientInstance.post(
4667
- `/hooks`,
4667
+ "/hooks",
4668
4668
  webhook,
4669
4669
  getBigCommerceClientConfig(__spreadProps(__spreadValues({}, authorization), {
4670
4670
  ensureAuthorizationToken: true
@@ -4755,7 +4755,7 @@ var livechatAgentApi = {
4755
4755
  return __async(this, null, function* () {
4756
4756
  try {
4757
4757
  const response = yield livechatClientInstance.get(
4758
- `/agents/me`,
4758
+ "/agents/me",
4759
4759
  {
4760
4760
  headers: {
4761
4761
  "X-API-Version": 2
@@ -4778,7 +4778,7 @@ var livechatAgentsApi = {
4778
4778
  getAgents(authorization) {
4779
4779
  return __async(this, null, function* () {
4780
4780
  const response = yield livechatClientInstance.post(
4781
- `/v3.5/configuration/action/list_agents`,
4781
+ "/v3.5/configuration/action/list_agents",
4782
4782
  {},
4783
4783
  getLiveChatClientConfig(authorization)
4784
4784
  );
@@ -4967,7 +4967,7 @@ var livechatBotsTemplatesApi = {
4967
4967
  return __async(this, null, function* () {
4968
4968
  try {
4969
4969
  const response = yield livechatClientInstance.post(
4970
- `v3.5/configuration/action/create_bot_template`,
4970
+ "v3.5/configuration/action/create_bot_template",
4971
4971
  bot,
4972
4972
  getLiveChatClientConfig(authorization)
4973
4973
  );
@@ -4987,7 +4987,7 @@ var livechatBotsTemplatesApi = {
4987
4987
  return __async(this, null, function* () {
4988
4988
  try {
4989
4989
  const response = yield livechatClientInstance.post(
4990
- `v3.5/configuration/action/list_bot_templates`,
4990
+ "v3.5/configuration/action/list_bot_templates",
4991
4991
  {
4992
4992
  owner_client_id: clientId
4993
4993
  },
@@ -5009,7 +5009,7 @@ var livechatBotsTemplatesApi = {
5009
5009
  return __async(this, null, function* () {
5010
5010
  try {
5011
5011
  const response = yield livechatClientInstance.post(
5012
- `v3.5/configuration/action/update_bot_template`,
5012
+ "v3.5/configuration/action/update_bot_template",
5013
5013
  bot,
5014
5014
  getLiveChatClientConfig(authorization)
5015
5015
  );
@@ -5029,7 +5029,7 @@ var livechatBotsTemplatesApi = {
5029
5029
  return __async(this, null, function* () {
5030
5030
  try {
5031
5031
  const response = yield livechatClientInstance.post(
5032
- `v3.5/configuration/action/delete_bot_template`,
5032
+ "v3.5/configuration/action/delete_bot_template",
5033
5033
  bot,
5034
5034
  getLiveChatClientConfig(authorization)
5035
5035
  );
@@ -5049,7 +5049,7 @@ var livechatBotsTemplatesApi = {
5049
5049
  return __async(this, null, function* () {
5050
5050
  try {
5051
5051
  const response = yield livechatClientInstance.post(
5052
- `v3.5/configuration/action/reset_bot_template_secret`,
5052
+ "v3.5/configuration/action/reset_bot_template_secret",
5053
5053
  bot,
5054
5054
  getLiveChatClientConfig(authorization)
5055
5055
  );
@@ -5075,7 +5075,7 @@ var livechatBotsTemplatesApi = {
5075
5075
  yield Promise.all(
5076
5076
  botTemplates.map((bot) => __async(this, null, function* () {
5077
5077
  return livechatClientInstance.post(
5078
- `v3.5/configuration/action/delete_bot_template`,
5078
+ "v3.5/configuration/action/delete_bot_template",
5079
5079
  {
5080
5080
  id: bot.id,
5081
5081
  owner_client_id: clientId
@@ -5108,7 +5108,7 @@ var livechatPropertyApi = {
5108
5108
  }
5109
5109
  try {
5110
5110
  const response = yield livechatClientInstance.post(
5111
- `/v3.3/configuration/action/list_properties`,
5111
+ "/v3.3/configuration/action/list_properties",
5112
5112
  {
5113
5113
  owner_client_id: clientId
5114
5114
  },
@@ -5128,7 +5128,7 @@ var livechatPropertyApi = {
5128
5128
  return __async(this, null, function* () {
5129
5129
  try {
5130
5130
  const response = yield livechatClientInstance.post(
5131
- `/v3.3/configuration/action/register_property`,
5131
+ "/v3.3/configuration/action/register_property",
5132
5132
  {
5133
5133
  name: property.name,
5134
5134
  owner_client_id: property.owner_client_id,
@@ -5155,7 +5155,7 @@ var livechatPropertyApi = {
5155
5155
  return __async(this, null, function* () {
5156
5156
  try {
5157
5157
  const response = yield livechatClientInstance.post(
5158
- `/v3.3/configuration/action/unregister_property`,
5158
+ "/v3.3/configuration/action/unregister_property",
5159
5159
  {
5160
5160
  name: propertyId,
5161
5161
  owner_client_id: clientId
@@ -5182,7 +5182,7 @@ var livechatPropertyApi = {
5182
5182
  return __async(this, null, function* () {
5183
5183
  try {
5184
5184
  const response = yield livechatClientInstance.post(
5185
- `/v3.3/configuration/action/publish_property`,
5185
+ "/v3.3/configuration/action/publish_property",
5186
5186
  {
5187
5187
  name: propertyId,
5188
5188
  owner_client_id: clientId,
@@ -5206,7 +5206,7 @@ var livechatPropertyApi = {
5206
5206
  const response = yield Promise.all(
5207
5207
  properties.filter((property) => property.public_access).map((property) => __async(this, null, function* () {
5208
5208
  return livechatClientInstance.post(
5209
- `/v3.3/configuration/action/publish_property`,
5209
+ "/v3.3/configuration/action/publish_property",
5210
5210
  {
5211
5211
  name: property.name,
5212
5212
  owner_client_id: property.owner_client_id,
@@ -5232,7 +5232,7 @@ var livechatPropertyApi = {
5232
5232
  const response = yield Promise.all(
5233
5233
  properties.map((property) => __async(this, null, function* () {
5234
5234
  return livechatClientInstance.post(
5235
- `/v3.3/configuration/action/register_property`,
5235
+ "/v3.3/configuration/action/register_property",
5236
5236
  {
5237
5237
  name: property.name,
5238
5238
  type: property.type,
@@ -5264,7 +5264,7 @@ var livechatPropertyApi = {
5264
5264
  Object.keys(properties).map((property) => __async(this, null, function* () {
5265
5265
  if (Object.keys(properties[property]).indexOf("public_access") <= 0) {
5266
5266
  return livechatClientInstance.post(
5267
- `/v3.3/configuration/action/unregister_property`,
5267
+ "/v3.3/configuration/action/unregister_property",
5268
5268
  {
5269
5269
  name: property,
5270
5270
  owner_client_id: clientId
@@ -5287,7 +5287,7 @@ var livechatPropertyApi = {
5287
5287
  return __async(this, null, function* () {
5288
5288
  try {
5289
5289
  const response = yield livechatClientInstance.post(
5290
- `/v3.5/configuration/action/list_license_properties`,
5290
+ "/v3.5/configuration/action/list_license_properties",
5291
5291
  {
5292
5292
  namespace
5293
5293
  },
@@ -5309,7 +5309,7 @@ var livechatPropertyApi = {
5309
5309
  return __async(this, null, function* () {
5310
5310
  try {
5311
5311
  const response = yield livechatClientInstance.post(
5312
- `/v3.5/configuration/action/update_license_properties`,
5312
+ "/v3.5/configuration/action/update_license_properties",
5313
5313
  {
5314
5314
  properties: {
5315
5315
  [namespace]: property
@@ -5342,7 +5342,7 @@ var livechatWebhookApi = {
5342
5342
  }
5343
5343
  try {
5344
5344
  const response = yield livechatClientInstance.post(
5345
- `/v3.5/configuration/action/list_webhooks`,
5345
+ "/v3.5/configuration/action/list_webhooks",
5346
5346
  {
5347
5347
  owner_client_id: clientId
5348
5348
  },
@@ -5364,7 +5364,7 @@ var livechatWebhookApi = {
5364
5364
  return __async(this, null, function* () {
5365
5365
  try {
5366
5366
  const response = yield livechatClientInstance.post(
5367
- `/v3.5/configuration/action/unregister_webhook`,
5367
+ "/v3.5/configuration/action/unregister_webhook",
5368
5368
  {
5369
5369
  id: webhookId,
5370
5370
  owner_client_id: clientId
@@ -5394,7 +5394,7 @@ var livechatWebhookApi = {
5394
5394
  yield Promise.all(
5395
5395
  webhooks.map((webhook) => __async(this, null, function* () {
5396
5396
  return livechatClientInstance.post(
5397
- `/v3.5/configuration/action/unregister_webhook`,
5397
+ "/v3.5/configuration/action/unregister_webhook",
5398
5398
  {
5399
5399
  id: webhook.id,
5400
5400
  owner_client_id: clientId
@@ -5478,7 +5478,7 @@ var livechatWebhookApi = {
5478
5478
  }
5479
5479
  try {
5480
5480
  const response = yield livechatClientInstance.post(
5481
- `/v3.2/configuration/action/list_registered_webhooks`,
5481
+ "/v3.2/configuration/action/list_registered_webhooks",
5482
5482
  {},
5483
5483
  getLiveChatClientConfig(authorization)
5484
5484
  );
@@ -5498,7 +5498,7 @@ var livechatWebhookApi = {
5498
5498
  return __async(this, null, function* () {
5499
5499
  try {
5500
5500
  const response = yield livechatClientInstance.post(
5501
- `/v3.2/configuration/action/unregister_webhook`,
5501
+ "/v3.2/configuration/action/unregister_webhook",
5502
5502
  { webhook_id: id },
5503
5503
  getLiveChatClientConfig(authorization)
5504
5504
  );
@@ -5518,7 +5518,7 @@ var livechatWebhookApi = {
5518
5518
  return __async(this, null, function* () {
5519
5519
  try {
5520
5520
  const response = yield livechatClientInstance.post(
5521
- `/v3.5/configuration/action/list_webhook_names`,
5521
+ "/v3.5/configuration/action/list_webhook_names",
5522
5522
  { version },
5523
5523
  getLiveChatClientConfig(authorization)
5524
5524
  );
@@ -5555,7 +5555,7 @@ var helpdeskWebhooksApi = {
5555
5555
  list(authorization) {
5556
5556
  return __async(this, null, function* () {
5557
5557
  const response = yield helpdeskClientInstance.get(
5558
- `/webhooks`,
5558
+ "/webhooks",
5559
5559
  getHelpDeskClientConfig(authorization)
5560
5560
  );
5561
5561
  return response;
@@ -5573,7 +5573,7 @@ var helpdeskWebhooksApi = {
5573
5573
  create(payload, authorization) {
5574
5574
  return __async(this, null, function* () {
5575
5575
  const response = yield helpdeskClientInstance.post(
5576
- `/webhooks`,
5576
+ "/webhooks",
5577
5577
  payload,
5578
5578
  getHelpDeskClientConfig(authorization)
5579
5579
  );
@@ -5616,7 +5616,7 @@ var productsApi = {
5616
5616
  var platformAccountsAccountApi = {
5617
5617
  getAccounts(authorization) {
5618
5618
  return __async(this, null, function* () {
5619
- return platformAccountsClientInstance.get(`/v2/accounts`, {
5619
+ return platformAccountsClientInstance.get("/v2/accounts", {
5620
5620
  authorization,
5621
5621
  customErrorMessage: "Accounts couldn't be fetched."
5622
5622
  });
@@ -5636,7 +5636,7 @@ var platformAccountsAccountApi = {
5636
5636
  getMeAccount(authorization) {
5637
5637
  return __async(this, null, function* () {
5638
5638
  return platformAccountsClientInstance.get(
5639
- `/v2/accounts/me`,
5639
+ "/v2/accounts/me",
5640
5640
  {
5641
5641
  authorization,
5642
5642
  customErrorMessage: "Me account couldn't be fetched."
@@ -5650,7 +5650,7 @@ var platformAccountsAccountApi = {
5650
5650
  var platformAccountsClientApi = {
5651
5651
  getClients(authorization) {
5652
5652
  return __async(this, null, function* () {
5653
- return platformAccountsClientInstance.get(`/v2/clients`, {
5653
+ return platformAccountsClientInstance.get("/v2/clients", {
5654
5654
  authorization,
5655
5655
  customErrorMessage: "Clients couldn't be fetched."
5656
5656
  });
@@ -5669,7 +5669,7 @@ var platformAccountsClientApi = {
5669
5669
  },
5670
5670
  createClient(payload, authorization) {
5671
5671
  return __async(this, null, function* () {
5672
- return platformAccountsClientInstance.post(`/v2/clients`, payload, {
5672
+ return platformAccountsClientInstance.post("/v2/clients", payload, {
5673
5673
  authorization,
5674
5674
  customErrorMessage: "Client couldn't be created."
5675
5675
  });
@@ -5733,7 +5733,7 @@ var platformAccountsClientApi = {
5733
5733
  },
5734
5734
  getInfo(authorization) {
5735
5735
  return __async(this, null, function* () {
5736
- return platformAccountsClientInstance.get(`/v2/info`, {
5736
+ return platformAccountsClientInstance.get("/v2/info", {
5737
5737
  authorization,
5738
5738
  customErrorMessage: "Client info couldn't be fetched."
5739
5739
  });
@@ -5746,7 +5746,7 @@ var platformAccountsOrganizationApi = {
5746
5746
  getOrganizations(authorization) {
5747
5747
  return __async(this, null, function* () {
5748
5748
  return platformAccountsClientInstance.get(
5749
- `/v2/organizations`,
5749
+ "/v2/organizations",
5750
5750
  {
5751
5751
  authorization,
5752
5752
  customErrorMessage: "Organizations couldn't be fetched."
@@ -5757,7 +5757,7 @@ var platformAccountsOrganizationApi = {
5757
5757
  getMyOrganization(authorization) {
5758
5758
  return __async(this, null, function* () {
5759
5759
  return platformAccountsClientInstance.get(
5760
- `/v2/organizations/my`,
5760
+ "/v2/organizations/my",
5761
5761
  {
5762
5762
  authorization,
5763
5763
  customErrorMessage: "My organization couldn't be fetched."
@@ -5771,7 +5771,7 @@ var platformAccountsOrganizationApi = {
5771
5771
  var platformAccountsPersonalAccessTokenApi = {
5772
5772
  getPersonalAccessTokens(authorization) {
5773
5773
  return __async(this, null, function* () {
5774
- return platformAccountsClientInstance.get(`/v2/personal_token`, {
5774
+ return platformAccountsClientInstance.get("/v2/personal_token", {
5775
5775
  authorization,
5776
5776
  customErrorMessage: "Personal Access Tokens couldn't be fetched."
5777
5777
  });
@@ -5780,7 +5780,7 @@ var platformAccountsPersonalAccessTokenApi = {
5780
5780
  createPersonalAccessToken(name, scopes, authorization) {
5781
5781
  return __async(this, null, function* () {
5782
5782
  return platformAccountsClientInstance.post(
5783
- `/v2/personal_token`,
5783
+ "/v2/personal_token",
5784
5784
  {
5785
5785
  name,
5786
5786
  scope: scopes.map((item) => item.name).filter((el) => el).join(",")
@@ -5811,7 +5811,7 @@ var platformAccountsProductsApi = {
5811
5811
  getOrganizationProducts(authorization) {
5812
5812
  return __async(this, null, function* () {
5813
5813
  return platformAccountsClientInstance.get(
5814
- `/v2/organizations/my/products`,
5814
+ "/v2/organizations/my/products",
5815
5815
  { authorization, customErrorMessage: "Products couldn't be fetched." }
5816
5816
  );
5817
5817
  });
@@ -5819,7 +5819,7 @@ var platformAccountsProductsApi = {
5819
5819
  updateOrganizationProducts(payload, authorization) {
5820
5820
  return __async(this, null, function* () {
5821
5821
  return platformAccountsClientInstance.post(
5822
- `/v2/organizations/my/products`,
5822
+ "/v2/organizations/my/products",
5823
5823
  payload,
5824
5824
  { authorization, customErrorMessage: "Products couldn't be updated." }
5825
5825
  );
@@ -5831,7 +5831,7 @@ var platformAccountsProductsApi = {
5831
5831
  var platformAccountsScopesApi = {
5832
5832
  getScopes(authorization) {
5833
5833
  return __async(this, null, function* () {
5834
- return platformAccountsClientInstance.get(`/v2/scopes`, {
5834
+ return platformAccountsClientInstance.get("/v2/scopes", {
5835
5835
  authorization,
5836
5836
  customErrorMessage: "Scopes couldn't be fetched."
5837
5837
  });
@@ -5844,7 +5844,7 @@ var platformAccountsSessionsApi = {
5844
5844
  deleteSessions(authorization) {
5845
5845
  return __async(this, null, function* () {
5846
5846
  return platformAccountsClientInstance.delete(
5847
- `/v2/sessions`,
5847
+ "/v2/sessions",
5848
5848
  void 0,
5849
5849
  {
5850
5850
  authorization,
@@ -5867,7 +5867,7 @@ var platformAccountsTokenApi = {
5867
5867
  redirect_uri: redirectUrl
5868
5868
  });
5869
5869
  return platformAccountsClientInstance.post(
5870
- `/v2/token`,
5870
+ "/v2/token",
5871
5871
  data,
5872
5872
  {
5873
5873
  customErrorMessage: "Couldn't exchange code for token."
@@ -6177,7 +6177,7 @@ var platformDpsApplicationDisplayApi = {
6177
6177
  body,
6178
6178
  getDpsClientConfig(authorization)
6179
6179
  ).catch((error) => {
6180
- throw error.withCustomMessage(`Image couldn't be uploaded`);
6180
+ throw error.withCustomMessage("Image couldn't be uploaded");
6181
6181
  });
6182
6182
  });
6183
6183
  }
@@ -6741,7 +6741,7 @@ var platformDpsApplicationApi = {
6741
6741
  createApp(payload, authorization) {
6742
6742
  return __async(this, null, function* () {
6743
6743
  return dpsClientInstance.post(
6744
- `/v2/applications`,
6744
+ "/v2/applications",
6745
6745
  payload,
6746
6746
  getDpsClientConfig(authorization)
6747
6747
  ).then(({ data }) => data).catch((error) => {
@@ -6937,7 +6937,7 @@ var platformDpsApplicationsApi = {
6937
6937
  var platformDpsCategoriesApi = {
6938
6938
  getCategories(authorization) {
6939
6939
  return __async(this, null, function* () {
6940
- return dpsClientInstance.get(`/v2/categories`, getDpsClientConfig(authorization)).then(({ data }) => data).catch((error) => {
6940
+ return dpsClientInstance.get("/v2/categories", getDpsClientConfig(authorization)).then(({ data }) => data).catch((error) => {
6941
6941
  throw error.withCustomMessage(
6942
6942
  `Categories couldn't be fetched. [${error.message}]`
6943
6943
  );
@@ -6953,7 +6953,7 @@ var platformDpsDeveloperApi = {
6953
6953
  const { startAt, endAt, size, page } = options;
6954
6954
  const withRange = Boolean(startAt && endAt);
6955
6955
  const withPagination = Boolean(size && typeof page === "number");
6956
- let params = withRange || withPagination ? `?` : "";
6956
+ let params = withRange || withPagination ? "?" : "";
6957
6957
  if (withRange) {
6958
6958
  params += `from=${startAt}&to=${endAt}`;
6959
6959
  }
@@ -7004,7 +7004,7 @@ var platformDpsDevelopersApi = {
7004
7004
  var platformDpsLinksApi = {
7005
7005
  updateShortcuts(links, authorization) {
7006
7006
  return __async(this, null, function* () {
7007
- yield dpsClientInstance.put(`/v2/links`, links, getDpsClientConfig(authorization)).catch((error) => {
7007
+ yield dpsClientInstance.put("/v2/links", links, getDpsClientConfig(authorization)).catch((error) => {
7008
7008
  throw error.withCustomMessage(
7009
7009
  `Shortcuts couldn't be updated. [${error.message}]`
7010
7010
  );
@@ -7018,7 +7018,7 @@ var dpsResearchCustomerApi = {
7018
7018
  getResearchCustomersLicenses(authorization) {
7019
7019
  return __async(this, null, function* () {
7020
7020
  return dpsClientInstance.get(
7021
- `/v2/research/customers/licenses`,
7021
+ "/v2/research/customers/licenses",
7022
7022
  getDpsClientConfig(authorization)
7023
7023
  ).then(({ data }) => data).catch((error) => {
7024
7024
  throw error.withCustomMessage(
@@ -7030,7 +7030,7 @@ var dpsResearchCustomerApi = {
7030
7030
  getResearchCustomersBusiness(authorization) {
7031
7031
  return __async(this, null, function* () {
7032
7032
  return dpsClientInstance.get(
7033
- `/v2/research/customers/business`,
7033
+ "/v2/research/customers/business",
7034
7034
  getDpsClientConfig(authorization)
7035
7035
  ).then(({ data }) => data).catch((error) => {
7036
7036
  throw error.withCustomMessage(
@@ -7042,7 +7042,7 @@ var dpsResearchCustomerApi = {
7042
7042
  getResearchCustomersLocation(authorization) {
7043
7043
  return __async(this, null, function* () {
7044
7044
  return dpsClientInstance.get(
7045
- `/v2/research/customers/location`,
7045
+ "/v2/research/customers/location",
7046
7046
  getDpsClientConfig(authorization)
7047
7047
  ).then(({ data }) => data).catch((error) => {
7048
7048
  throw error.withCustomMessage(
@@ -7143,7 +7143,7 @@ var platformDpsUserApi = {
7143
7143
  getUser(authorization) {
7144
7144
  return __async(this, null, function* () {
7145
7145
  const response = yield dpsClientInstance.get(
7146
- `/v2/me`,
7146
+ "/v2/me",
7147
7147
  getDpsClientConfig(authorization)
7148
7148
  );
7149
7149
  return response.data;
@@ -7152,7 +7152,7 @@ var platformDpsUserApi = {
7152
7152
  getUserIntegrations(authorization) {
7153
7153
  return __async(this, null, function* () {
7154
7154
  const response = yield dpsClientInstance.get(
7155
- `/v2/me/integrations`,
7155
+ "/v2/me/integrations",
7156
7156
  getDpsClientConfig(authorization)
7157
7157
  );
7158
7158
  return response.data;
@@ -7161,7 +7161,7 @@ var platformDpsUserApi = {
7161
7161
  updateUser(user, authorization) {
7162
7162
  return __async(this, null, function* () {
7163
7163
  const { status } = yield dpsClientInstance.put(
7164
- `/v2/me`,
7164
+ "/v2/me",
7165
7165
  user,
7166
7166
  getDpsClientConfig(authorization)
7167
7167
  );
@@ -7171,7 +7171,7 @@ var platformDpsUserApi = {
7171
7171
  updateUserIntegrations(payload, authorization) {
7172
7172
  return __async(this, null, function* () {
7173
7173
  yield dpsClientInstance.patch(
7174
- `/v2/me/integrations`,
7174
+ "/v2/me/integrations",
7175
7175
  payload,
7176
7176
  getDpsClientConfig(authorization)
7177
7177
  );
@@ -7197,7 +7197,7 @@ var platformDpsUserApi = {
7197
7197
  },
7198
7198
  removeUserGitHubIntegrationByInstallationId(installationId, authorization) {
7199
7199
  return __async(this, null, function* () {
7200
- yield dpsClientInstance.delete(`/v2/me/integrations/github`, __spreadProps(__spreadValues({}, getDpsClientConfig(authorization)), {
7200
+ yield dpsClientInstance.delete("/v2/me/integrations/github", __spreadProps(__spreadValues({}, getDpsClientConfig(authorization)), {
7201
7201
  data: {
7202
7202
  githubInstallationId: installationId
7203
7203
  }
@@ -7207,7 +7207,7 @@ var platformDpsUserApi = {
7207
7207
  updateUserNetlifyIntegration(userNetlifyIntegration, authorization) {
7208
7208
  return __async(this, null, function* () {
7209
7209
  const { status } = yield dpsClientInstance.patch(
7210
- `/v2/me/integrations`,
7210
+ "/v2/me/integrations",
7211
7211
  { netlify: userNetlifyIntegration },
7212
7212
  getDpsClientConfig(authorization)
7213
7213
  );
@@ -7673,7 +7673,7 @@ var platformAdapterAppTemplatesApi = {
7673
7673
  getTemplates(authorization) {
7674
7674
  return __async(this, null, function* () {
7675
7675
  return adapterClientInstance.get(
7676
- `/console/app/templates`,
7676
+ "/console/app/templates",
7677
7677
  getAdapterClientDefaultConfig(authorization)
7678
7678
  );
7679
7679
  });
@@ -7681,7 +7681,7 @@ var platformAdapterAppTemplatesApi = {
7681
7681
  getRepositoryTemplates(authorization) {
7682
7682
  return __async(this, null, function* () {
7683
7683
  return adapterClientInstance.get(
7684
- `/console/app/templates/repository`,
7684
+ "/console/app/templates/repository",
7685
7685
  getAdapterClientDefaultConfig(authorization)
7686
7686
  );
7687
7687
  });
@@ -7722,7 +7722,7 @@ var platformAdapterAppApi = {
7722
7722
  status(sagaId, authorization) {
7723
7723
  return __async(this, null, function* () {
7724
7724
  return adapterClientInstance.get(
7725
- `/console/app/status`,
7725
+ "/console/app/status",
7726
7726
  __spreadValues({
7727
7727
  params: {
7728
7728
  sagaId
@@ -7739,7 +7739,7 @@ var platformAdapterBigCommerceApi = {
7739
7739
  subscribe(payload, authorization) {
7740
7740
  return __async(this, null, function* () {
7741
7741
  yield adapterClientInstance.post(
7742
- `/integrations/bigcommerce/events/subscribe`,
7742
+ "/integrations/bigcommerce/events/subscribe",
7743
7743
  payload,
7744
7744
  getBigCommerceClientConfig(authorization)
7745
7745
  );
@@ -7748,7 +7748,7 @@ var platformAdapterBigCommerceApi = {
7748
7748
  unsubscribe(payload, authorization) {
7749
7749
  return __async(this, null, function* () {
7750
7750
  yield adapterClientInstance.post(
7751
- `/integrations/bigcommerce/events/unsubscribe`,
7751
+ "/integrations/bigcommerce/events/unsubscribe",
7752
7752
  payload,
7753
7753
  getBigCommerceClientConfig(authorization)
7754
7754
  );
@@ -7763,7 +7763,7 @@ var platformAdapterHubspotApi = {
7763
7763
  subscribe(payload, authorization) {
7764
7764
  return __async(this, null, function* () {
7765
7765
  yield adapterClientInstance.post(
7766
- `/integrations/hubspot/events/subscribe`,
7766
+ "/integrations/hubspot/events/subscribe",
7767
7767
  payload,
7768
7768
  getHubspotClientConfig(authorization)
7769
7769
  );
@@ -7772,7 +7772,7 @@ var platformAdapterHubspotApi = {
7772
7772
  unsubscribe(payload, authorization) {
7773
7773
  return __async(this, null, function* () {
7774
7774
  yield adapterClientInstance.post(
7775
- `/integrations/hubspot/events/unsubscribe`,
7775
+ "/integrations/hubspot/events/unsubscribe",
7776
7776
  payload,
7777
7777
  getHubspotClientConfig(authorization)
7778
7778
  );
@@ -7787,7 +7787,7 @@ var platformAdapterMailchimpApi = {
7787
7787
  subscribe(payload, authorization) {
7788
7788
  return __async(this, null, function* () {
7789
7789
  yield adapterClientInstance.post(
7790
- `/integrations/mailchimp/events/subscribe`,
7790
+ "/integrations/mailchimp/events/subscribe",
7791
7791
  payload,
7792
7792
  getMailchimpClientConfig(authorization)
7793
7793
  );
@@ -7796,7 +7796,7 @@ var platformAdapterMailchimpApi = {
7796
7796
  unsubscribe(payload, authorization) {
7797
7797
  return __async(this, null, function* () {
7798
7798
  yield adapterClientInstance.post(
7799
- `/integrations/mailchimp/events/unsubscribe`,
7799
+ "/integrations/mailchimp/events/unsubscribe",
7800
7800
  payload,
7801
7801
  getMailchimpClientConfig(authorization)
7802
7802
  );
@@ -7811,7 +7811,7 @@ var platformAdapterShopifyApi = {
7811
7811
  subscribe(payload, authorization) {
7812
7812
  return __async(this, null, function* () {
7813
7813
  yield adapterClientInstance.post(
7814
- `/integrations/shopify/events/subscribe`,
7814
+ "/integrations/shopify/events/subscribe",
7815
7815
  payload,
7816
7816
  getShopifyClientConfig(authorization)
7817
7817
  );
@@ -7820,7 +7820,7 @@ var platformAdapterShopifyApi = {
7820
7820
  unsubscribe(payload, authorization) {
7821
7821
  return __async(this, null, function* () {
7822
7822
  yield adapterClientInstance.post(
7823
- `/integrations/shopify/events/unsubscribe`,
7823
+ "/integrations/shopify/events/unsubscribe",
7824
7824
  payload,
7825
7825
  getShopifyClientConfig(authorization)
7826
7826
  );
@@ -7835,7 +7835,7 @@ var platformAdapterTextApi = {
7835
7835
  subscribe(payload, authorization) {
7836
7836
  return __async(this, null, function* () {
7837
7837
  yield adapterClientInstance.post(
7838
- `/integrations/text/events/subscribe`,
7838
+ "/integrations/text/events/subscribe",
7839
7839
  payload,
7840
7840
  getTextClientConfig(authorization)
7841
7841
  );
@@ -7844,7 +7844,7 @@ var platformAdapterTextApi = {
7844
7844
  unsubscribe(payload, authorization) {
7845
7845
  return __async(this, null, function* () {
7846
7846
  yield adapterClientInstance.post(
7847
- `/integrations/text/events/unsubscribe`,
7847
+ "/integrations/text/events/unsubscribe",
7848
7848
  payload,
7849
7849
  getTextClientConfig(authorization)
7850
7850
  );
@@ -7869,7 +7869,7 @@ var platformAdapterApi = {
7869
7869
  log(payload, authorization) {
7870
7870
  return __async(this, null, function* () {
7871
7871
  return adapterClientInstance.post(
7872
- `/log`,
7872
+ "/log",
7873
7873
  payload,
7874
7874
  getAdapterClientConfig(authorization)
7875
7875
  );
@@ -7883,7 +7883,7 @@ var platformBillingAccountApi = {
7883
7883
  return __async(this, null, function* () {
7884
7884
  try {
7885
7885
  return yield billingClientInstance.get(
7886
- `/v3/account`,
7886
+ "/v3/account",
7887
7887
  getBillingClientConfig(authorization)
7888
7888
  );
7889
7889
  } catch (error) {