@coveo/platform-client 60.2.0 → 60.4.0

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.
@@ -16,15 +16,28 @@ class Properties extends Resource_js_1.default {
16
16
  return super.buildPath(route, { org: this.api.organizationId, ...queryParams });
17
17
  }
18
18
  /**
19
- * List all properties
20
- * @param params
19
+ * List all properties, optionally using filters.
20
+ * Note that `list` and `query` are equivalent, with the only difference being that `list` uses GET and `query` uses POST.
21
+ *
22
+ * @param params Optional parameters to filter the listing by.
21
23
  * @returns Promise<PageModel<PropertyModel>>
22
24
  */
23
25
  list(params) {
24
- return this.api.get(this.buildPathWithOrg(`${Properties.baseUrl}/properties/list`, params));
26
+ return this.api.get(this.buildPathWithOrg(`${Properties.baseUrl}/properties`, params));
25
27
  }
26
28
  /**
27
- * Get a property
29
+ * Query all properties, optionally using filters.
30
+ * Note that `list` and `query` are equivalent, with the only difference being that `list` uses GET and `query` uses POST.
31
+ *
32
+ * @param params Optional parameters to filter the listing by.
33
+ * @returns Promise<PageModel<PropertyModel>>
34
+ */
35
+ query(params) {
36
+ return this.api.post(this.buildPathWithOrg(`${Properties.baseUrl}/properties`), params);
37
+ }
38
+ /**
39
+ * Get a property.
40
+ *
28
41
  * @param trackingId
29
42
  * @returns Promise<PropertyModel>
30
43
  */
@@ -32,27 +45,29 @@ class Properties extends Resource_js_1.default {
32
45
  return this.api.get(this.buildPathWithOrg(`${Properties.baseUrl}/properties/${trackingId}`));
33
46
  }
34
47
  /**
35
- * Create a property
48
+ * Create a property.
49
+ *
36
50
  * @param trackingId
37
51
  * @param displayName
38
- * @returns Promise<PropertiesResponseMessage>
52
+ * @returns Promise<PropertyActionResponse>
39
53
  */
40
54
  create(trackingId, displayName) {
41
55
  return this.api.post(this.buildPathWithOrg(`${Properties.baseUrl}/properties/${trackingId}`, { displayName }));
42
56
  }
43
57
  /**
44
- * Edit a property
58
+ * Edit a property.
59
+ *
45
60
  * @param trackingId
46
61
  * @param displayName
47
- * @returns Promise<PropertiesResponseMessage>
62
+ * @returns Promise<PropertyActionResponse>
48
63
  */
49
64
  update(trackingId, displayName) {
50
65
  return this.api.put(this.buildPathWithOrg(`${Properties.baseUrl}/properties/${trackingId}`, { displayName }));
51
66
  }
52
67
  /**
53
- * Delete a property
68
+ * Delete a property.
54
69
  * @param trackingId
55
- * @returns Promise<PropertiesResponseMessage>
70
+ * @returns Promise<PropertyActionResponse>
56
71
  */
57
72
  delete(trackingId) {
58
73
  return this.api.delete(this.buildPathWithOrg(`${Properties.baseUrl}/properties/${trackingId}`));
@@ -1 +1 @@
1
- {"version":3,"file":"Properties.js","sourceRoot":"","sources":["../../../../../src/resources/AnalyticsAdmin/Properties/Properties.ts"],"names":[],"mappings":";;;AAAA,4EAAyC;AACzC,6EAAsC;AAItC,MAAqB,UAAW,SAAQ,qBAAQ;IAC5C,MAAM,CAAC,OAAO,GAAG,uBAAuB,oBAAG,CAAC,cAAc,oBAAoB,CAAC;IAC/E;;;;;;OAMG;IACO,gBAAgB,CAAC,KAAa,EAAE,WAAoB;QAC1D,OAAO,KAAK,CAAC,SAAS,CAAC,KAAK,EAAE,EAAC,GAAG,EAAE,IAAI,CAAC,GAAG,CAAC,cAAc,EAAE,GAAG,WAAW,EAAC,CAAC,CAAC;IAClF,CAAC;IAED;;;;OAIG;IACH,IAAI,CAAC,MAA6B;QAC9B,OAAO,IAAI,CAAC,GAAG,CAAC,GAAG,CACf,IAAI,CAAC,gBAAgB,CAAC,GAAG,UAAU,CAAC,OAAO,kBAAkB,EAAE,MAAM,CAAC,CACzE,CAAC;IACN,CAAC;IAED;;;;OAIG;IACH,GAAG,CAAC,UAAkB;QAClB,OAAO,IAAI,CAAC,GAAG,CAAC,GAAG,CAAgB,IAAI,CAAC,gBAAgB,CAAC,GAAG,UAAU,CAAC,OAAO,eAAe,UAAU,EAAE,CAAC,CAAC,CAAC;IAChH,CAAC;IAED;;;;;OAKG;IACH,MAAM,CAAC,UAAkB,EAAE,WAAmB;QAC1C,OAAO,IAAI,CAAC,GAAG,CAAC,IAAI,CAChB,IAAI,CAAC,gBAAgB,CAAC,GAAG,UAAU,CAAC,OAAO,eAAe,UAAU,EAAE,EAAE,EAAC,WAAW,EAAC,CAAC,CACzF,CAAC;IACN,CAAC;IAED;;;;;OAKG;IACH,MAAM,CAAC,UAAkB,EAAE,WAAmB;QAC1C,OAAO,IAAI,CAAC,GAAG,CAAC,GAAG,CACf,IAAI,CAAC,gBAAgB,CAAC,GAAG,UAAU,CAAC,OAAO,eAAe,UAAU,EAAE,EAAE,EAAC,WAAW,EAAC,CAAC,CACzF,CAAC;IACN,CAAC;IAED;;;;OAIG;IACH,MAAM,CAAC,UAAkB;QACrB,OAAO,IAAI,CAAC,GAAG,CAAC,MAAM,CAClB,IAAI,CAAC,gBAAgB,CAAC,GAAG,UAAU,CAAC,OAAO,eAAe,UAAU,EAAE,CAAC,CAC1E,CAAC;IACN,CAAC;;AAlEL,6BAmEC"}
1
+ {"version":3,"file":"Properties.js","sourceRoot":"","sources":["../../../../../src/resources/AnalyticsAdmin/Properties/Properties.ts"],"names":[],"mappings":";;;AAAA,4EAAyC;AACzC,6EAAsC;AAItC,MAAqB,UAAW,SAAQ,qBAAQ;IAC5C,MAAM,CAAC,OAAO,GAAG,uBAAuB,oBAAG,CAAC,cAAc,oBAAoB,CAAC;IAC/E;;;;;;OAMG;IACO,gBAAgB,CAAC,KAAa,EAAE,WAAoB;QAC1D,OAAO,KAAK,CAAC,SAAS,CAAC,KAAK,EAAE,EAAC,GAAG,EAAE,IAAI,CAAC,GAAG,CAAC,cAAc,EAAE,GAAG,WAAW,EAAC,CAAC,CAAC;IAClF,CAAC;IAED;;;;;;OAMG;IACH,IAAI,CAAC,MAA8B;QAC/B,OAAO,IAAI,CAAC,GAAG,CAAC,GAAG,CACf,IAAI,CAAC,gBAAgB,CAAC,GAAG,UAAU,CAAC,OAAO,aAAa,EAAE,MAAM,CAAC,CACpE,CAAC;IACN,CAAC;IAED;;;;;;OAMG;IACH,KAAK,CAAC,MAA8B;QAChC,OAAO,IAAI,CAAC,GAAG,CAAC,IAAI,CAChB,IAAI,CAAC,gBAAgB,CAAC,GAAG,UAAU,CAAC,OAAO,aAAa,CAAC,EACzD,MAAM,CACT,CAAC;IACN,CAAC;IAED;;;;;OAKG;IACH,GAAG,CAAC,UAAkB;QAClB,OAAO,IAAI,CAAC,GAAG,CAAC,GAAG,CAAgB,IAAI,CAAC,gBAAgB,CAAC,GAAG,UAAU,CAAC,OAAO,eAAe,UAAU,EAAE,CAAC,CAAC,CAAC;IAChH,CAAC;IAED;;;;;;OAMG;IACH,MAAM,CAAC,UAAkB,EAAE,WAAmB;QAC1C,OAAO,IAAI,CAAC,GAAG,CAAC,IAAI,CAChB,IAAI,CAAC,gBAAgB,CAAC,GAAG,UAAU,CAAC,OAAO,eAAe,UAAU,EAAE,EAAE,EAAC,WAAW,EAAC,CAAC,CACzF,CAAC;IACN,CAAC;IAED;;;;;;OAMG;IACH,MAAM,CAAC,UAAkB,EAAE,WAAmB;QAC1C,OAAO,IAAI,CAAC,GAAG,CAAC,GAAG,CACf,IAAI,CAAC,gBAAgB,CAAC,GAAG,UAAU,CAAC,OAAO,eAAe,UAAU,EAAE,EAAE,EAAC,WAAW,EAAC,CAAC,CACzF,CAAC;IACN,CAAC;IAED;;;;OAIG;IACH,MAAM,CAAC,UAAkB;QACrB,OAAO,IAAI,CAAC,GAAG,CAAC,MAAM,CAClB,IAAI,CAAC,gBAAgB,CAAC,GAAG,UAAU,CAAC,OAAO,eAAe,UAAU,EAAE,CAAC,CAC1E,CAAC;IACN,CAAC;;AArFL,6BAsFC"}
@@ -15,6 +15,7 @@ exports.projectResourceTypes = [
15
15
  'CASE_ASSIST',
16
16
  'CRAWLING_MODULE',
17
17
  'EXTENSION',
18
+ 'FIELD',
18
19
  'IN_PRODUCT_EXPERIENCE',
19
20
  'INSIGHT_PANEL',
20
21
  'ML_MODEL',
@@ -23,6 +24,8 @@ exports.projectResourceTypes = [
23
24
  'SEARCH_PAGE',
24
25
  'SECURITY_PROVIDER',
25
26
  'SOURCE',
27
+ 'STOREFRONT_ASSOCIATION',
28
+ 'TRACKING_ID',
26
29
  'UA_REPORT',
27
30
  ];
28
31
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"ProjectInterfaces.js","sourceRoot":"","sources":["../../../../src/resources/Projects/ProjectInterfaces.ts"],"names":[],"mappings":";;;AAGA,IAAY,aAOX;AAPD,WAAY,aAAa;IACrB,8BAAa,CAAA;IACb,yCAAwB,CAAA;IACxB,6CAA4B,CAAA;IAC5B,yCAAwB,CAAA;IACxB,6CAA4B,CAAA;IAC5B,oDAAmC,CAAA;AACvC,CAAC,EAPW,aAAa,6BAAb,aAAa,QAOxB;AAEY,QAAA,oBAAoB,GAAG;IAChC,SAAS;IACT,aAAa;IACb,iBAAiB;IACjB,WAAW;IACX,uBAAuB;IACvB,eAAe;IACf,UAAU;IACV,gBAAgB;IAChB,YAAY;IACZ,aAAa;IACb,mBAAmB;IACnB,QAAQ;IACR,WAAW;CACd,CAAC;AAIF;;GAEG;AACH,IAAY,WAYX;AAZD,WAAY,WAAW;IACnB,iDAAkC,CAAA;IAClC,oCAAqB,CAAA;IACrB,mDAAoC,CAAA;IACpC,qDAAsC,CAAA;IACtC,sDAAuC,CAAA;IACvC,oCAAqB,CAAA;IACrB,oDAAqC,CAAA;IACrC,sDAAuC,CAAA;IACvC,8BAAe,CAAA;IACf,uDAAwC,CAAA;IACxC,+CAAgC,CAAA;AACpC,CAAC,EAZW,WAAW,2BAAX,WAAW,QAYtB"}
1
+ {"version":3,"file":"ProjectInterfaces.js","sourceRoot":"","sources":["../../../../src/resources/Projects/ProjectInterfaces.ts"],"names":[],"mappings":";;;AAGA,IAAY,aAOX;AAPD,WAAY,aAAa;IACrB,8BAAa,CAAA;IACb,yCAAwB,CAAA;IACxB,6CAA4B,CAAA;IAC5B,yCAAwB,CAAA;IACxB,6CAA4B,CAAA;IAC5B,oDAAmC,CAAA;AACvC,CAAC,EAPW,aAAa,6BAAb,aAAa,QAOxB;AAEY,QAAA,oBAAoB,GAAG;IAChC,SAAS;IACT,aAAa;IACb,iBAAiB;IACjB,WAAW;IACX,OAAO;IACP,uBAAuB;IACvB,eAAe;IACf,UAAU;IACV,gBAAgB;IAChB,YAAY;IACZ,aAAa;IACb,mBAAmB;IACnB,QAAQ;IACR,wBAAwB;IACxB,aAAa;IACb,WAAW;CACd,CAAC;AAIF;;GAEG;AACH,IAAY,WAYX;AAZD,WAAY,WAAW;IACnB,iDAAkC,CAAA;IAClC,oCAAqB,CAAA;IACrB,mDAAoC,CAAA;IACpC,qDAAsC,CAAA;IACtC,sDAAuC,CAAA;IACvC,oCAAqB,CAAA;IACrB,oDAAqC,CAAA;IACrC,sDAAuC,CAAA;IACvC,8BAAe,CAAA;IACf,uDAAwC,CAAA;IACxC,+CAAgC,CAAA;AACpC,CAAC,EAZW,WAAW,2BAAX,WAAW,QAYtB"}
@@ -13,15 +13,28 @@ export default class Properties extends Resource {
13
13
  return super.buildPath(route, { org: this.api.organizationId, ...queryParams });
14
14
  }
15
15
  /**
16
- * List all properties
17
- * @param params
16
+ * List all properties, optionally using filters.
17
+ * Note that `list` and `query` are equivalent, with the only difference being that `list` uses GET and `query` uses POST.
18
+ *
19
+ * @param params Optional parameters to filter the listing by.
18
20
  * @returns Promise<PageModel<PropertyModel>>
19
21
  */
20
22
  list(params) {
21
- return this.api.get(this.buildPathWithOrg(`${Properties.baseUrl}/properties/list`, params));
23
+ return this.api.get(this.buildPathWithOrg(`${Properties.baseUrl}/properties`, params));
22
24
  }
23
25
  /**
24
- * Get a property
26
+ * Query all properties, optionally using filters.
27
+ * Note that `list` and `query` are equivalent, with the only difference being that `list` uses GET and `query` uses POST.
28
+ *
29
+ * @param params Optional parameters to filter the listing by.
30
+ * @returns Promise<PageModel<PropertyModel>>
31
+ */
32
+ query(params) {
33
+ return this.api.post(this.buildPathWithOrg(`${Properties.baseUrl}/properties`), params);
34
+ }
35
+ /**
36
+ * Get a property.
37
+ *
25
38
  * @param trackingId
26
39
  * @returns Promise<PropertyModel>
27
40
  */
@@ -29,27 +42,29 @@ export default class Properties extends Resource {
29
42
  return this.api.get(this.buildPathWithOrg(`${Properties.baseUrl}/properties/${trackingId}`));
30
43
  }
31
44
  /**
32
- * Create a property
45
+ * Create a property.
46
+ *
33
47
  * @param trackingId
34
48
  * @param displayName
35
- * @returns Promise<PropertiesResponseMessage>
49
+ * @returns Promise<PropertyActionResponse>
36
50
  */
37
51
  create(trackingId, displayName) {
38
52
  return this.api.post(this.buildPathWithOrg(`${Properties.baseUrl}/properties/${trackingId}`, { displayName }));
39
53
  }
40
54
  /**
41
- * Edit a property
55
+ * Edit a property.
56
+ *
42
57
  * @param trackingId
43
58
  * @param displayName
44
- * @returns Promise<PropertiesResponseMessage>
59
+ * @returns Promise<PropertyActionResponse>
45
60
  */
46
61
  update(trackingId, displayName) {
47
62
  return this.api.put(this.buildPathWithOrg(`${Properties.baseUrl}/properties/${trackingId}`, { displayName }));
48
63
  }
49
64
  /**
50
- * Delete a property
65
+ * Delete a property.
51
66
  * @param trackingId
52
- * @returns Promise<PropertiesResponseMessage>
67
+ * @returns Promise<PropertyActionResponse>
53
68
  */
54
69
  delete(trackingId) {
55
70
  return this.api.delete(this.buildPathWithOrg(`${Properties.baseUrl}/properties/${trackingId}`));
@@ -1 +1 @@
1
- {"version":3,"file":"Properties.js","sourceRoot":"","sources":["../../../../../src/resources/AnalyticsAdmin/Properties/Properties.ts"],"names":[],"mappings":"AAAA,OAAO,QAAQ,MAAM,mBAAmB,CAAC;AACzC,OAAO,GAAG,MAAM,qBAAqB,CAAC;AAItC,MAAM,CAAC,OAAO,OAAO,UAAW,SAAQ,QAAQ;IAC5C,MAAM,CAAC,OAAO,GAAG,uBAAuB,GAAG,CAAC,cAAc,oBAAoB,CAAC;IAC/E;;;;;;OAMG;IACO,gBAAgB,CAAC,KAAa,EAAE,WAAoB;QAC1D,OAAO,KAAK,CAAC,SAAS,CAAC,KAAK,EAAE,EAAC,GAAG,EAAE,IAAI,CAAC,GAAG,CAAC,cAAc,EAAE,GAAG,WAAW,EAAC,CAAC,CAAC;IAClF,CAAC;IAED;;;;OAIG;IACH,IAAI,CAAC,MAA6B;QAC9B,OAAO,IAAI,CAAC,GAAG,CAAC,GAAG,CACf,IAAI,CAAC,gBAAgB,CAAC,GAAG,UAAU,CAAC,OAAO,kBAAkB,EAAE,MAAM,CAAC,CACzE,CAAC;IACN,CAAC;IAED;;;;OAIG;IACH,GAAG,CAAC,UAAkB;QAClB,OAAO,IAAI,CAAC,GAAG,CAAC,GAAG,CAAgB,IAAI,CAAC,gBAAgB,CAAC,GAAG,UAAU,CAAC,OAAO,eAAe,UAAU,EAAE,CAAC,CAAC,CAAC;IAChH,CAAC;IAED;;;;;OAKG;IACH,MAAM,CAAC,UAAkB,EAAE,WAAmB;QAC1C,OAAO,IAAI,CAAC,GAAG,CAAC,IAAI,CAChB,IAAI,CAAC,gBAAgB,CAAC,GAAG,UAAU,CAAC,OAAO,eAAe,UAAU,EAAE,EAAE,EAAC,WAAW,EAAC,CAAC,CACzF,CAAC;IACN,CAAC;IAED;;;;;OAKG;IACH,MAAM,CAAC,UAAkB,EAAE,WAAmB;QAC1C,OAAO,IAAI,CAAC,GAAG,CAAC,GAAG,CACf,IAAI,CAAC,gBAAgB,CAAC,GAAG,UAAU,CAAC,OAAO,eAAe,UAAU,EAAE,EAAE,EAAC,WAAW,EAAC,CAAC,CACzF,CAAC;IACN,CAAC;IAED;;;;OAIG;IACH,MAAM,CAAC,UAAkB;QACrB,OAAO,IAAI,CAAC,GAAG,CAAC,MAAM,CAClB,IAAI,CAAC,gBAAgB,CAAC,GAAG,UAAU,CAAC,OAAO,eAAe,UAAU,EAAE,CAAC,CAC1E,CAAC;IACN,CAAC"}
1
+ {"version":3,"file":"Properties.js","sourceRoot":"","sources":["../../../../../src/resources/AnalyticsAdmin/Properties/Properties.ts"],"names":[],"mappings":"AAAA,OAAO,QAAQ,MAAM,mBAAmB,CAAC;AACzC,OAAO,GAAG,MAAM,qBAAqB,CAAC;AAItC,MAAM,CAAC,OAAO,OAAO,UAAW,SAAQ,QAAQ;IAC5C,MAAM,CAAC,OAAO,GAAG,uBAAuB,GAAG,CAAC,cAAc,oBAAoB,CAAC;IAC/E;;;;;;OAMG;IACO,gBAAgB,CAAC,KAAa,EAAE,WAAoB;QAC1D,OAAO,KAAK,CAAC,SAAS,CAAC,KAAK,EAAE,EAAC,GAAG,EAAE,IAAI,CAAC,GAAG,CAAC,cAAc,EAAE,GAAG,WAAW,EAAC,CAAC,CAAC;IAClF,CAAC;IAED;;;;;;OAMG;IACH,IAAI,CAAC,MAA8B;QAC/B,OAAO,IAAI,CAAC,GAAG,CAAC,GAAG,CACf,IAAI,CAAC,gBAAgB,CAAC,GAAG,UAAU,CAAC,OAAO,aAAa,EAAE,MAAM,CAAC,CACpE,CAAC;IACN,CAAC;IAED;;;;;;OAMG;IACH,KAAK,CAAC,MAA8B;QAChC,OAAO,IAAI,CAAC,GAAG,CAAC,IAAI,CAChB,IAAI,CAAC,gBAAgB,CAAC,GAAG,UAAU,CAAC,OAAO,aAAa,CAAC,EACzD,MAAM,CACT,CAAC;IACN,CAAC;IAED;;;;;OAKG;IACH,GAAG,CAAC,UAAkB;QAClB,OAAO,IAAI,CAAC,GAAG,CAAC,GAAG,CAAgB,IAAI,CAAC,gBAAgB,CAAC,GAAG,UAAU,CAAC,OAAO,eAAe,UAAU,EAAE,CAAC,CAAC,CAAC;IAChH,CAAC;IAED;;;;;;OAMG;IACH,MAAM,CAAC,UAAkB,EAAE,WAAmB;QAC1C,OAAO,IAAI,CAAC,GAAG,CAAC,IAAI,CAChB,IAAI,CAAC,gBAAgB,CAAC,GAAG,UAAU,CAAC,OAAO,eAAe,UAAU,EAAE,EAAE,EAAC,WAAW,EAAC,CAAC,CACzF,CAAC;IACN,CAAC;IAED;;;;;;OAMG;IACH,MAAM,CAAC,UAAkB,EAAE,WAAmB;QAC1C,OAAO,IAAI,CAAC,GAAG,CAAC,GAAG,CACf,IAAI,CAAC,gBAAgB,CAAC,GAAG,UAAU,CAAC,OAAO,eAAe,UAAU,EAAE,EAAE,EAAC,WAAW,EAAC,CAAC,CACzF,CAAC;IACN,CAAC;IAED;;;;OAIG;IACH,MAAM,CAAC,UAAkB;QACrB,OAAO,IAAI,CAAC,GAAG,CAAC,MAAM,CAClB,IAAI,CAAC,gBAAgB,CAAC,GAAG,UAAU,CAAC,OAAO,eAAe,UAAU,EAAE,CAAC,CAC1E,CAAC;IACN,CAAC"}
@@ -12,6 +12,7 @@ export const projectResourceTypes = [
12
12
  'CASE_ASSIST',
13
13
  'CRAWLING_MODULE',
14
14
  'EXTENSION',
15
+ 'FIELD',
15
16
  'IN_PRODUCT_EXPERIENCE',
16
17
  'INSIGHT_PANEL',
17
18
  'ML_MODEL',
@@ -20,6 +21,8 @@ export const projectResourceTypes = [
20
21
  'SEARCH_PAGE',
21
22
  'SECURITY_PROVIDER',
22
23
  'SOURCE',
24
+ 'STOREFRONT_ASSOCIATION',
25
+ 'TRACKING_ID',
23
26
  'UA_REPORT',
24
27
  ];
25
28
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"ProjectInterfaces.js","sourceRoot":"","sources":["../../../../src/resources/Projects/ProjectInterfaces.ts"],"names":[],"mappings":"AAGA,MAAM,CAAN,IAAY,aAOX;AAPD,WAAY,aAAa;IACrB,8BAAa,CAAA;IACb,yCAAwB,CAAA;IACxB,6CAA4B,CAAA;IAC5B,yCAAwB,CAAA;IACxB,6CAA4B,CAAA;IAC5B,oDAAmC,CAAA;AACvC,CAAC,EAPW,aAAa,KAAb,aAAa,QAOxB;AAED,MAAM,CAAC,MAAM,oBAAoB,GAAG;IAChC,SAAS;IACT,aAAa;IACb,iBAAiB;IACjB,WAAW;IACX,uBAAuB;IACvB,eAAe;IACf,UAAU;IACV,gBAAgB;IAChB,YAAY;IACZ,aAAa;IACb,mBAAmB;IACnB,QAAQ;IACR,WAAW;CACd,CAAC;AAIF;;GAEG;AACH,MAAM,CAAN,IAAY,WAYX;AAZD,WAAY,WAAW;IACnB,iDAAkC,CAAA;IAClC,oCAAqB,CAAA;IACrB,mDAAoC,CAAA;IACpC,qDAAsC,CAAA;IACtC,sDAAuC,CAAA;IACvC,oCAAqB,CAAA;IACrB,oDAAqC,CAAA;IACrC,sDAAuC,CAAA;IACvC,8BAAe,CAAA;IACf,uDAAwC,CAAA;IACxC,+CAAgC,CAAA;AACpC,CAAC,EAZW,WAAW,KAAX,WAAW,QAYtB"}
1
+ {"version":3,"file":"ProjectInterfaces.js","sourceRoot":"","sources":["../../../../src/resources/Projects/ProjectInterfaces.ts"],"names":[],"mappings":"AAGA,MAAM,CAAN,IAAY,aAOX;AAPD,WAAY,aAAa;IACrB,8BAAa,CAAA;IACb,yCAAwB,CAAA;IACxB,6CAA4B,CAAA;IAC5B,yCAAwB,CAAA;IACxB,6CAA4B,CAAA;IAC5B,oDAAmC,CAAA;AACvC,CAAC,EAPW,aAAa,KAAb,aAAa,QAOxB;AAED,MAAM,CAAC,MAAM,oBAAoB,GAAG;IAChC,SAAS;IACT,aAAa;IACb,iBAAiB;IACjB,WAAW;IACX,OAAO;IACP,uBAAuB;IACvB,eAAe;IACf,UAAU;IACV,gBAAgB;IAChB,YAAY;IACZ,aAAa;IACb,mBAAmB;IACnB,QAAQ;IACR,wBAAwB;IACxB,aAAa;IACb,WAAW;CACd,CAAC;AAIF;;GAEG;AACH,MAAM,CAAN,IAAY,WAYX;AAZD,WAAY,WAAW;IACnB,iDAAkC,CAAA;IAClC,oCAAqB,CAAA;IACrB,mDAAoC,CAAA;IACpC,qDAAsC,CAAA;IACtC,sDAAuC,CAAA;IACvC,oCAAqB,CAAA;IACrB,oDAAqC,CAAA;IACrC,sDAAuC,CAAA;IACvC,8BAAe,CAAA;IACf,uDAAwC,CAAA;IACxC,+CAAgC,CAAA;AACpC,CAAC,EAZW,WAAW,KAAX,WAAW,QAYtB"}
@@ -1,6 +1,6 @@
1
1
  import Resource from '../../Resource.js';
2
2
  import { PageModel } from '../../BaseInterfaces.js';
3
- import { ListPropertiesParams, PropertiesResponseMessage, PropertyModel } from './PropertiesInterfaces.js';
3
+ import { ListPropertiesRequest, PropertyActionResponse, PropertyModel } from './PropertiesInterfaces.js';
4
4
  export default class Properties extends Resource {
5
5
  static baseUrl: string;
6
6
  /**
@@ -12,35 +12,48 @@ export default class Properties extends Resource {
12
12
  */
13
13
  protected buildPathWithOrg(route: string, queryParams?: object): string;
14
14
  /**
15
- * List all properties
16
- * @param params
15
+ * List all properties, optionally using filters.
16
+ * Note that `list` and `query` are equivalent, with the only difference being that `list` uses GET and `query` uses POST.
17
+ *
18
+ * @param params Optional parameters to filter the listing by.
17
19
  * @returns Promise<PageModel<PropertyModel>>
18
20
  */
19
- list(params?: ListPropertiesParams): Promise<PageModel<PropertyModel>>;
21
+ list(params?: ListPropertiesRequest): Promise<PageModel<PropertyModel>>;
20
22
  /**
21
- * Get a property
23
+ * Query all properties, optionally using filters.
24
+ * Note that `list` and `query` are equivalent, with the only difference being that `list` uses GET and `query` uses POST.
25
+ *
26
+ * @param params Optional parameters to filter the listing by.
27
+ * @returns Promise<PageModel<PropertyModel>>
28
+ */
29
+ query(params?: ListPropertiesRequest): Promise<PageModel<PropertyModel>>;
30
+ /**
31
+ * Get a property.
32
+ *
22
33
  * @param trackingId
23
34
  * @returns Promise<PropertyModel>
24
35
  */
25
36
  get(trackingId: string): Promise<PropertyModel>;
26
37
  /**
27
- * Create a property
38
+ * Create a property.
39
+ *
28
40
  * @param trackingId
29
41
  * @param displayName
30
- * @returns Promise<PropertiesResponseMessage>
42
+ * @returns Promise<PropertyActionResponse>
31
43
  */
32
- create(trackingId: string, displayName: string): Promise<PropertiesResponseMessage>;
44
+ create(trackingId: string, displayName: string): Promise<PropertyActionResponse>;
33
45
  /**
34
- * Edit a property
46
+ * Edit a property.
47
+ *
35
48
  * @param trackingId
36
49
  * @param displayName
37
- * @returns Promise<PropertiesResponseMessage>
50
+ * @returns Promise<PropertyActionResponse>
38
51
  */
39
- update(trackingId: string, displayName: string): Promise<PropertiesResponseMessage>;
52
+ update(trackingId: string, displayName: string): Promise<PropertyActionResponse>;
40
53
  /**
41
- * Delete a property
54
+ * Delete a property.
42
55
  * @param trackingId
43
- * @returns Promise<PropertiesResponseMessage>
56
+ * @returns Promise<PropertyActionResponse>
44
57
  */
45
- delete(trackingId: string): Promise<PropertiesResponseMessage>;
58
+ delete(trackingId: string): Promise<PropertyActionResponse>;
46
59
  }
@@ -1,12 +1,57 @@
1
1
  import { Paginated } from '../../BaseInterfaces.js';
2
2
  export interface PropertyModel {
3
- trackingId: string | null;
3
+ /**
4
+ * The Organization ID that owns the property.
5
+ */
6
+ organizationId: string;
7
+ /**
8
+ * The string used to represent the tracking ID when sending a event request.
9
+ */
10
+ trackingId: string;
11
+ /**
12
+ * The name used for the property in the UI.
13
+ */
4
14
  displayName: string;
15
+ /**
16
+ * Optional list of project identifiers the property is mapped to.
17
+ * Project IDs are only included on request.
18
+ */
19
+ projectIds?: string[] | null;
5
20
  }
6
- export interface PropertiesResponseMessage {
21
+ export interface PropertyActionResponse {
22
+ /**
23
+ * A message detailing the result of the requested operation.
24
+ */
7
25
  message: string;
8
26
  }
9
- export interface ListPropertiesParams extends Paginated {
10
- filter?: string;
27
+ export interface ListPropertiesRequest extends Paginated {
28
+ /**
29
+ * Whether the default property should be included.
30
+ */
11
31
  includeDefault?: boolean;
32
+ /**
33
+ * Optional filter on tracking id or display name.
34
+ */
35
+ filter?: string;
36
+ /**
37
+ * Optional filter on project id, requiring the view projects privilege.
38
+ */
39
+ projectId?: string;
40
+ /**
41
+ * Whether the projectIds of properties should be included.
42
+ * The default value is based on whether a `projectId` is specified:
43
+ * this property defaults to `false`, unless a `projectId` is specified.
44
+ */
45
+ includeProjectIds?: boolean;
46
+ /**
47
+ * Optional filter on a list of tracking IDs (exact case-sensitive match).
48
+ * When specified, it is recommended to use the `query` (POST) method over the `list` (GET) method,
49
+ * especially if the list of tracking IDs may have many entries.
50
+ * Note that if this is an empty array, the result will always be empty.
51
+ */
52
+ trackingIds?: string[];
12
53
  }
54
+ /** @deprecated Deprecated alias for `ListPropertiesRequest`. */
55
+ export type ListPropertiesParams = ListPropertiesRequest;
56
+ /** @deprecated Deprecated alias for `PropertyActionResponse`. */
57
+ export type PropertiesResponseMessage = PropertyActionResponse;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@coveo/platform-client",
3
- "version": "60.2.0",
3
+ "version": "60.4.0",
4
4
  "description": "",
5
5
  "type": "module",
6
6
  "exports": {