@livechat/developer-studio-api 3.1.58 → 3.1.60

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.d.mts CHANGED
@@ -400,6 +400,7 @@ interface GetTextPlatformDashboardReportParams {
400
400
  interface WorkflowsDto {
401
401
  id: string;
402
402
  version: number;
403
+ name: string;
403
404
  description: string;
404
405
  active: boolean;
405
406
  trigger_type: WorkflowTriggerType;
@@ -409,15 +410,15 @@ interface WorkflowsDto {
409
410
  interface WorkflowDto {
410
411
  id: string;
411
412
  version: number;
412
- name?: string;
413
+ name: string;
413
414
  description: string;
414
415
  active: boolean;
415
416
  created_at: string;
416
417
  updated_at: string;
417
418
  created_by: string;
418
419
  tags: string[];
419
- trigger: WorkflowTriggerDto;
420
420
  definition: WorkflowDefinitionDto;
421
+ trigger?: WorkflowTriggerDto;
421
422
  }
422
423
  type WorkflowTriggerType = "manual_only" | "recurring" | "one_time" | "webhook";
423
424
  type WorkflowTriggerDto = {
@@ -517,9 +518,9 @@ interface WorkflowDefinitionsQueryParams {
517
518
  };
518
519
  }
519
520
  interface UpsertWorkflowPayload {
520
- name?: string;
521
+ name: string;
521
522
  description: string;
522
- trigger: WorkflowTriggerDto;
523
+ trigger?: WorkflowTriggerDto;
523
524
  definition: WorkflowDefinitionDto;
524
525
  }
525
526
  interface WorkflowExecution {
@@ -542,10 +543,9 @@ type Credential = {
542
543
  description: string;
543
544
  provider: string;
544
545
  } & ({
545
- type: "header_auth";
546
+ type: "api_key";
546
547
  data: {
547
- name: string;
548
- value: string;
548
+ api_key: string;
549
549
  };
550
550
  } | {
551
551
  type: "basic_auth";
package/dist/index.d.ts CHANGED
@@ -400,6 +400,7 @@ interface GetTextPlatformDashboardReportParams {
400
400
  interface WorkflowsDto {
401
401
  id: string;
402
402
  version: number;
403
+ name: string;
403
404
  description: string;
404
405
  active: boolean;
405
406
  trigger_type: WorkflowTriggerType;
@@ -409,15 +410,15 @@ interface WorkflowsDto {
409
410
  interface WorkflowDto {
410
411
  id: string;
411
412
  version: number;
412
- name?: string;
413
+ name: string;
413
414
  description: string;
414
415
  active: boolean;
415
416
  created_at: string;
416
417
  updated_at: string;
417
418
  created_by: string;
418
419
  tags: string[];
419
- trigger: WorkflowTriggerDto;
420
420
  definition: WorkflowDefinitionDto;
421
+ trigger?: WorkflowTriggerDto;
421
422
  }
422
423
  type WorkflowTriggerType = "manual_only" | "recurring" | "one_time" | "webhook";
423
424
  type WorkflowTriggerDto = {
@@ -517,9 +518,9 @@ interface WorkflowDefinitionsQueryParams {
517
518
  };
518
519
  }
519
520
  interface UpsertWorkflowPayload {
520
- name?: string;
521
+ name: string;
521
522
  description: string;
522
- trigger: WorkflowTriggerDto;
523
+ trigger?: WorkflowTriggerDto;
523
524
  definition: WorkflowDefinitionDto;
524
525
  }
525
526
  interface WorkflowExecution {
@@ -542,10 +543,9 @@ type Credential = {
542
543
  description: string;
543
544
  provider: string;
544
545
  } & ({
545
- type: "header_auth";
546
+ type: "api_key";
546
547
  data: {
547
- name: string;
548
- value: string;
548
+ api_key: string;
549
549
  };
550
550
  } | {
551
551
  type: "basic_auth";
package/dist/index.js CHANGED
@@ -6665,7 +6665,7 @@ var platformDpsApplicationsUsageApi = {
6665
6665
  params += from ? `&from=${from}` : "";
6666
6666
  params += to ? `&to=${to}` : "";
6667
6667
  const singleResponse = yield platformDpsClientInstance.get(
6668
- `/v2/applications/usage/developer?${params}`,
6668
+ `/v2/applications/usage/organization?${params}`,
6669
6669
  getPlatformDpsClientConfig(authorization)
6670
6670
  );
6671
6671
  return singleResponse.data;
package/dist/index.mjs CHANGED
@@ -6512,7 +6512,7 @@ var platformDpsApplicationsUsageApi = {
6512
6512
  params += from ? `&from=${from}` : "";
6513
6513
  params += to ? `&to=${to}` : "";
6514
6514
  const singleResponse = yield platformDpsClientInstance.get(
6515
- `/v2/applications/usage/developer?${params}`,
6515
+ `/v2/applications/usage/organization?${params}`,
6516
6516
  getPlatformDpsClientConfig(authorization)
6517
6517
  );
6518
6518
  return singleResponse.data;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@livechat/developer-studio-api",
3
- "version": "3.1.58",
3
+ "version": "3.1.60",
4
4
  "description": "This project is API for LiveChat Developer Studio.",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",
@@ -20,8 +20,8 @@
20
20
  "@types/node": "^17.0.12",
21
21
  "tsup": "^7.1.0",
22
22
  "typescript": "^5.1.6",
23
- "eslint-config-custom": "0.0.8",
24
23
  "tsconfig": "0.0.1",
24
+ "eslint-config-custom": "0.0.8",
25
25
  "utils": "0.0.4"
26
26
  },
27
27
  "scripts": {