@epilot/entity-client 4.33.2 → 4.33.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.
Files changed (2) hide show
  1. package/dist/openapi.d.ts +198 -47
  2. package/package.json +1 -1
package/dist/openapi.d.ts CHANGED
@@ -2488,6 +2488,11 @@ declare namespace Components {
2488
2488
  * https://docs.epilot.io/docs/pricing/entities
2489
2489
  */
2490
2490
  docs_url?: string; // uri
2491
+ /**
2492
+ * example:
2493
+ * customer_relations
2494
+ */
2495
+ category?: "customer_relations" | "sales" | "product_hub" | "contracts" | "journeys" | "messaging" | "system";
2491
2496
  /**
2492
2497
  * example:
2493
2498
  * false
@@ -2857,6 +2862,11 @@ declare namespace Components {
2857
2862
  * https://docs.epilot.io/docs/pricing/entities
2858
2863
  */
2859
2864
  docs_url?: string; // uri
2865
+ /**
2866
+ * example:
2867
+ * customer_relations
2868
+ */
2869
+ category?: "customer_relations" | "sales" | "product_hub" | "contracts" | "journeys" | "messaging" | "system";
2860
2870
  /**
2861
2871
  * example:
2862
2872
  * false
@@ -5480,8 +5490,18 @@ declare namespace Components {
5480
5490
  * taxonomy-slug:classification-slug
5481
5491
  */
5482
5492
  ClassificationId[];
5493
+ /**
5494
+ * Color of the classification
5495
+ * example:
5496
+ * #FF5733
5497
+ */
5498
+ color?: string;
5483
5499
  created_at?: string; // date-time
5484
5500
  updated_at?: string; // date-time
5501
+ /**
5502
+ * Archived classification are not visible in the UI
5503
+ */
5504
+ archived?: boolean;
5485
5505
  type?: "purpose";
5486
5506
  }
5487
5507
  /**
@@ -7065,20 +7085,60 @@ declare namespace Components {
7065
7085
  */
7066
7086
  enabled_locations?: TaxonomyLocationId[];
7067
7087
  }
7088
+ /**
7089
+ * example:
7090
+ * {
7091
+ * "job_id": "123e4567-e89b-12d3-a456-426614174000",
7092
+ * "status": "PENDING",
7093
+ * "action_type": "MOVE_LABELS",
7094
+ * "created_by": 10598,
7095
+ * "created_at": "2024-01-01T00:00:00.000Z",
7096
+ * "updated_at": "2024-01-01T00:00:00.000Z",
7097
+ * "org": 66,
7098
+ * "progress": 0.5
7099
+ * }
7100
+ */
7068
7101
  export interface TaxonomyBulkJob {
7069
7102
  job_id?: string; // uuid
7070
- status?: /* The status of the bulk job */ TaxonomyBulkJobStatus;
7071
- type?: TaxonomyBulkJobType;
7103
+ job_status?: /* The status of the bulk job */ TaxonomyBulkJobStatus;
7104
+ action_type?: TaxonomyBulkJobActionType;
7105
+ request?: {
7106
+ target_taxonomy?: /**
7107
+ * URL-friendly name for taxonomy
7108
+ * example:
7109
+ * purpose
7110
+ */
7111
+ TaxonomySlug;
7112
+ classification_ids?: /**
7113
+ * example:
7114
+ * taxonomy-slug:classification-slug
7115
+ */
7116
+ ClassificationId[];
7117
+ };
7118
+ output?: {
7119
+ target_entities?: EntityId /* uuid */[];
7120
+ affected_entities?: EntityId /* uuid */[];
7121
+ failures_count?: number;
7122
+ failed_entities?: EntityId /* uuid */[];
7123
+ };
7124
+ created_by?: string;
7125
+ created_at?: string; // date-time
7126
+ updated_at?: string; // date-time
7127
+ org?: string;
7128
+ /**
7129
+ * Progress of the job on a scale of 0 to 1
7130
+ */
7131
+ progress?: number;
7072
7132
  }
7133
+ export type TaxonomyBulkJobActionType = "MOVE_CLASSIFICATIONS" | "DELETE_CLASSIFICATIONS";
7073
7134
  /**
7074
7135
  * The status of the bulk job
7075
7136
  */
7076
- export type TaxonomyBulkJobStatus = "PENDING" | "FAILED" | "COMPLETED";
7137
+ export type TaxonomyBulkJobStatus = "PENDING" | "FAILED" | "COMPLETED" | "CANCELLED";
7077
7138
  export interface TaxonomyBulkJobTriggerResponse {
7078
7139
  job_id?: string; // uuid
7079
7140
  status?: /* The status of the bulk job */ TaxonomyBulkJobStatus;
7080
7141
  }
7081
- export type TaxonomyBulkJobType = "MOVE_LABELS" | "DELETE_LABELS";
7082
7142
  export interface TaxonomyClassification {
7083
7143
  id?: /**
7084
7144
  * example:
@@ -7101,8 +7161,18 @@ declare namespace Components {
7101
7161
  * taxonomy-slug:classification-slug
7102
7162
  */
7103
7163
  ClassificationId[];
7164
+ /**
7165
+ * Color of the classification
7166
+ * example:
7167
+ * #FF5733
7168
+ */
7169
+ color?: string;
7104
7170
  created_at?: string; // date-time
7105
7171
  updated_at?: string; // date-time
7172
+ /**
7173
+ * Archived classification are not visible in the UI
7174
+ */
7175
+ archived?: boolean;
7106
7176
  /**
7107
7177
  * Manifest ID used to create/update the taxonomy classification
7108
7178
  */
@@ -7489,13 +7559,11 @@ declare namespace Paths {
7489
7559
  }
7490
7560
  }
7491
7561
  namespace BulkDeleteClassifications {
7492
- namespace Parameters {
7493
- export type Permanent = boolean;
7494
- }
7495
- export interface QueryParameters {
7496
- permanent?: Parameters.Permanent;
7497
- }
7498
7562
  export interface RequestBody {
7563
+ /**
7564
+ * Job ID for tracking the status of a bulk operation request
7565
+ */
7566
+ job_id?: string;
7499
7567
  classification_ids?: /**
7500
7568
  * example:
7501
7569
  * taxonomy-slug:classification-slug
@@ -7507,18 +7575,20 @@ declare namespace Paths {
7507
7575
  }
7508
7576
  }
7509
7577
  namespace BulkMoveClassifications {
7510
- namespace Parameters {
7511
- export type TargetTaxonomy = /**
7578
+ export interface RequestBody {
7579
+ /**
7580
+ * Job ID for tracking the status of a bulk operation request
7581
+ */
7582
+ job_id?: string;
7583
+ /**
7584
+ * The target taxonomy to which the classifications will be moved
7585
+ */
7586
+ target_taxonomy?: /**
7512
7587
  * URL-friendly name for taxonomy
7513
7588
  * example:
7514
7589
  * purpose
7515
7590
  */
7516
7591
  Components.Schemas.TaxonomySlug;
7517
- }
7518
- export interface QueryParameters {
7519
- target_taxonomy?: Parameters.TargetTaxonomy;
7520
- }
7521
- export interface RequestBody {
7522
7592
  classification_ids?: /**
7523
7593
  * example:
7524
7594
  * taxonomy-slug:classification-slug
@@ -8184,17 +8254,6 @@ declare namespace Paths {
8184
8254
  Components.Schemas.EntityItem;
8185
8255
  }
8186
8256
  }
8187
- namespace GetJobs {
8188
- namespace Parameters {
8189
- export type Status = /* The status of the bulk job */ Components.Schemas.TaxonomyBulkJobStatus;
8190
- }
8191
- export interface QueryParameters {
8192
- status?: Parameters.Status;
8193
- }
8194
- namespace Responses {
8195
- export type $200 = Components.Schemas.TaxonomyBulkJob[];
8196
- }
8197
- }
8198
8257
  namespace GetJsonSchema {
8199
8258
  namespace Parameters {
8200
8259
  export type Slug = /**
@@ -8852,6 +8911,54 @@ declare namespace Paths {
8852
8911
  export type $200 = Components.Schemas.Taxonomy;
8853
8912
  }
8854
8913
  }
8914
+ namespace GetTaxonomyBulkActionJobById {
8915
+ namespace Parameters {
8916
+ export type JobId = string;
8917
+ }
8918
+ export interface PathParameters {
8919
+ job_id?: Parameters.JobId;
8920
+ }
8921
+ namespace Responses {
8922
+ export type $200 = /**
8923
+ * example:
8924
+ * {
8925
+ * "job_id": "123e4567-e89b-12d3-a456-426614174000",
8926
+ * "status": "PENDING",
8927
+ * "action_type": "MOVE_LABELS",
8928
+ * "created_by": 10598,
8929
+ * "created_at": "2024-01-01T00:00:00.000Z",
8930
+ * "updated_at": "2024-01-01T00:00:00.000Z",
8931
+ * "org": 66,
8932
+ * "progress": 0.5
8933
+ * }
8934
+ */
8935
+ Components.Schemas.TaxonomyBulkJob[];
8936
+ }
8937
+ }
8938
+ namespace GetTaxonomyBulkActionJobs {
8939
+ namespace Parameters {
8940
+ export type Status = /* The status of the bulk job */ Components.Schemas.TaxonomyBulkJobStatus;
8941
+ }
8942
+ export interface QueryParameters {
8943
+ status?: Parameters.Status;
8944
+ }
8945
+ namespace Responses {
8946
+ export type $200 = /**
8947
+ * example:
8948
+ * {
8949
+ * "job_id": "123e4567-e89b-12d3-a456-426614174000",
8950
+ * "status": "PENDING",
8951
+ * "action_type": "MOVE_LABELS",
8952
+ * "created_by": 10598,
8953
+ * "created_at": "2024-01-01T00:00:00.000Z",
8954
+ * "updated_at": "2024-01-01T00:00:00.000Z",
8955
+ * "org": 66,
8956
+ * "progress": 0.5
8957
+ * }
8958
+ */
8959
+ Components.Schemas.TaxonomyBulkJob[];
8960
+ }
8961
+ }
8855
8962
  namespace GetTaxonomyClassification {
8856
8963
  namespace Parameters {
8857
8964
  export type ClassificationSlug = string;
@@ -9338,6 +9445,11 @@ declare namespace Paths {
9338
9445
  }
9339
9446
  namespace TaxonomiesClassificationsSearch {
9340
9447
  namespace Parameters {
9448
+ /**
9449
+ * example:
9450
+ * false
9451
+ */
9452
+ export type Archived = boolean;
9341
9453
  /**
9342
9454
  * example:
9343
9455
  * sales
@@ -9352,6 +9464,11 @@ declare namespace Paths {
9352
9464
  * sales
9353
9465
  */
9354
9466
  Parameters.Query;
9467
+ archived?: /**
9468
+ * example:
9469
+ * false
9470
+ */
9471
+ Parameters.Archived;
9355
9472
  }
9356
9473
  export interface RequestBody {
9357
9474
  classificationIds?: /**
@@ -10683,15 +10800,30 @@ export interface OperationMethods {
10683
10800
  config?: AxiosRequestConfig
10684
10801
  ): OperationResponse<Paths.ListTaxonomyClassificationsForSchema.Responses.$200>
10685
10802
  /**
10686
- * getJobs - getJobs
10803
+ * getTaxonomyBulkActionJobs - getTaxonomyBulkActionJobs
10804
+ *
10805
+ * Gets bulk actions jobs by job status:
10806
+ * - <undefined> = all active jobs
10807
+ * - PENDING = all active jobs
10808
+ * - FAILED = all failed jobs
10809
+ * - COMPLETED = all completed jobs
10687
10810
  *
10688
- * Gets bulk jobs by job status
10689
10811
  */
10690
- 'getJobs'(
10691
- parameters?: Parameters<Paths.GetJobs.QueryParameters> | null,
10812
+ 'getTaxonomyBulkActionJobs'(
10813
+ parameters?: Parameters<Paths.GetTaxonomyBulkActionJobs.QueryParameters> | null,
10692
10814
  data?: any,
10693
10815
  config?: AxiosRequestConfig
10694
- ): OperationResponse<Paths.GetJobs.Responses.$200>
10816
+ ): OperationResponse<Paths.GetTaxonomyBulkActionJobs.Responses.$200>
10817
+ /**
10818
+ * getTaxonomyBulkActionJobById - getTaxonomyBulkActionJobById
10819
+ *
10820
+ * Gets a bulk action job by job id
10821
+ */
10822
+ 'getTaxonomyBulkActionJobById'(
10823
+ parameters?: Parameters<Paths.GetTaxonomyBulkActionJobById.PathParameters> | null,
10824
+ data?: any,
10825
+ config?: AxiosRequestConfig
10826
+ ): OperationResponse<Paths.GetTaxonomyBulkActionJobById.Responses.$200>
10695
10827
  /**
10696
10828
  * bulkMoveClassifications - bulkMoveClassifications
10697
10829
  *
@@ -10700,19 +10832,20 @@ export interface OperationMethods {
10700
10832
  *
10701
10833
  */
10702
10834
  'bulkMoveClassifications'(
10703
- parameters?: Parameters<Paths.BulkMoveClassifications.QueryParameters> | null,
10835
+ parameters?: Parameters<UnknownParamsObject> | null,
10704
10836
  data?: Paths.BulkMoveClassifications.RequestBody,
10705
10837
  config?: AxiosRequestConfig
10706
10838
  ): OperationResponse<Paths.BulkMoveClassifications.Responses.$200>
10707
10839
  /**
10708
10840
  * bulkDeleteClassifications - bulkDeleteClassifications
10709
10841
  *
10710
- * Archives or permanently deletes taxonomy classifications. When permanent is true, the classifications are deleted through a bulk
10711
- * async operation which also deletes all references of the deleted classifications from the entities referencing them.
10842
+ * Permanently deletes taxonomy classifications. The classifications are deleted through a bulk
10843
+ * async operation which also deletes all references of the deleted classifications from the entities
10844
+ * referencing them.
10712
10845
  *
10713
10846
  */
10714
10847
  'bulkDeleteClassifications'(
10715
- parameters?: Parameters<Paths.BulkDeleteClassifications.QueryParameters> | null,
10848
+ parameters?: Parameters<UnknownParamsObject> | null,
10716
10849
  data?: Paths.BulkDeleteClassifications.RequestBody,
10717
10850
  config?: AxiosRequestConfig
10718
10851
  ): OperationResponse<Paths.BulkDeleteClassifications.Responses.$200>
@@ -11747,17 +11880,34 @@ export interface PathsDictionary {
11747
11880
  config?: AxiosRequestConfig
11748
11881
  ): OperationResponse<Paths.ListTaxonomyClassificationsForSchema.Responses.$200>
11749
11882
  }
11750
- ['/v1/entity/taxonomies/jobs']: {
11883
+ ['/v1/entity/taxonomies/bulk-jobs']: {
11884
+ /**
11885
+ * getTaxonomyBulkActionJobs - getTaxonomyBulkActionJobs
11886
+ *
11887
+ * Gets bulk actions jobs by job status:
11888
+ * - <undefined> = all active jobs
11889
+ * - PENDING = all active jobs
11890
+ * - FAILED = all failed jobs
11891
+ * - COMPLETED = all completed jobs
11892
+ *
11893
+ */
11894
+ 'get'(
11895
+ parameters?: Parameters<Paths.GetTaxonomyBulkActionJobs.QueryParameters> | null,
11896
+ data?: any,
11897
+ config?: AxiosRequestConfig
11898
+ ): OperationResponse<Paths.GetTaxonomyBulkActionJobs.Responses.$200>
11899
+ }
11900
+ ['/v1/entity/taxonomies/bulk-jobs/{job_id}']: {
11751
11901
  /**
11752
- * getJobs - getJobs
11902
+ * getTaxonomyBulkActionJobById - getTaxonomyBulkActionJobById
11753
11903
  *
11754
- * Gets bulk jobs by job status
11904
+ * Gets a bulk action job by job id
11755
11905
  */
11756
11906
  'get'(
11757
- parameters?: Parameters<Paths.GetJobs.QueryParameters> | null,
11907
+ parameters?: Parameters<Paths.GetTaxonomyBulkActionJobById.PathParameters> | null,
11758
11908
  data?: any,
11759
11909
  config?: AxiosRequestConfig
11760
- ): OperationResponse<Paths.GetJobs.Responses.$200>
11910
+ ): OperationResponse<Paths.GetTaxonomyBulkActionJobById.Responses.$200>
11761
11911
  }
11762
11912
  ['/v1/entity/taxonomies/classifications:move']: {
11763
11913
  /**
@@ -11768,7 +11918,7 @@ export interface PathsDictionary {
11768
11918
  *
11769
11919
  */
11770
11920
  'post'(
11771
- parameters?: Parameters<Paths.BulkMoveClassifications.QueryParameters> | null,
11921
+ parameters?: Parameters<UnknownParamsObject> | null,
11772
11922
  data?: Paths.BulkMoveClassifications.RequestBody,
11773
11923
  config?: AxiosRequestConfig
11774
11924
  ): OperationResponse<Paths.BulkMoveClassifications.Responses.$200>
@@ -11777,12 +11927,13 @@ export interface PathsDictionary {
11777
11927
  /**
11778
11928
  * bulkDeleteClassifications - bulkDeleteClassifications
11779
11929
  *
11780
- * Archives or permanently deletes taxonomy classifications. When permanent is true, the classifications are deleted through a bulk
11781
- * async operation which also deletes all references of the deleted classifications from the entities referencing them.
11930
+ * Permanently deletes taxonomy classifications. The classifications are deleted through a bulk
11931
+ * async operation which also deletes all references of the deleted classifications from the entities
11932
+ * referencing them.
11782
11933
  *
11783
11934
  */
11784
11935
  'post'(
11785
- parameters?: Parameters<Paths.BulkDeleteClassifications.QueryParameters> | null,
11936
+ parameters?: Parameters<UnknownParamsObject> | null,
11786
11937
  data?: Paths.BulkDeleteClassifications.RequestBody,
11787
11938
  config?: AxiosRequestConfig
11788
11939
  ): OperationResponse<Paths.BulkDeleteClassifications.Responses.$200>
@@ -12070,9 +12221,9 @@ export type SummaryField = Components.Schemas.SummaryField;
12070
12221
  export type TagsAttribute = Components.Schemas.TagsAttribute;
12071
12222
  export type Taxonomy = Components.Schemas.Taxonomy;
12072
12223
  export type TaxonomyBulkJob = Components.Schemas.TaxonomyBulkJob;
12224
+ export type TaxonomyBulkJobActionType = Components.Schemas.TaxonomyBulkJobActionType;
12073
12225
  export type TaxonomyBulkJobStatus = Components.Schemas.TaxonomyBulkJobStatus;
12074
12226
  export type TaxonomyBulkJobTriggerResponse = Components.Schemas.TaxonomyBulkJobTriggerResponse;
12075
- export type TaxonomyBulkJobType = Components.Schemas.TaxonomyBulkJobType;
12076
12227
  export type TaxonomyClassification = Components.Schemas.TaxonomyClassification;
12077
12228
  export type TaxonomyLocationId = Components.Schemas.TaxonomyLocationId;
12078
12229
  export type TaxonomySlug = Components.Schemas.TaxonomySlug;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@epilot/entity-client",
3
- "version": "4.33.2",
3
+ "version": "4.33.3",
4
4
  "description": "JavaScript client library for the epilot Core Entity API",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",