@wix/crm 1.0.79 → 1.0.81
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/build/cjs/context.d.ts +5 -0
- package/build/cjs/context.js +32 -0
- package/build/cjs/context.js.map +1 -0
- package/build/cjs/index.d.ts +1 -1
- package/build/cjs/index.js +7 -3
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +1 -1
- package/build/cjs/index.typings.js +7 -3
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +1 -1
- package/build/cjs/meta.js +7 -3
- package/build/cjs/meta.js.map +1 -1
- package/build/cjs/src/contacts-v4-contact.context.d.ts +9 -0
- package/build/cjs/src/contacts-v4-contact.context.js +82 -0
- package/build/cjs/src/contacts-v4-contact.context.js.map +1 -0
- package/build/cjs/src/contacts-v4-contact.http.d.ts +20 -94
- package/build/cjs/src/contacts-v4-contact.http.js +211 -249
- package/build/cjs/src/contacts-v4-contact.http.js.map +1 -1
- package/build/cjs/src/contacts-v4-contact.meta.d.ts +1 -1
- package/build/cjs/src/contacts-v4-contact.meta.js +5 -1
- package/build/cjs/src/contacts-v4-contact.meta.js.map +1 -1
- package/build/cjs/src/contacts-v4-contact.public.d.ts +6 -6
- package/build/cjs/src/contacts-v4-contact.public.js +5 -2
- package/build/cjs/src/contacts-v4-contact.public.js.map +1 -1
- package/build/cjs/src/contacts-v4-contact.types.d.ts +265 -5
- package/build/cjs/src/contacts-v4-contact.types.js +40 -19
- package/build/cjs/src/contacts-v4-contact.types.js.map +1 -1
- package/build/cjs/src/contacts-v4-contact.universal.d.ts +221 -155
- package/build/cjs/src/contacts-v4-contact.universal.js +140 -168
- package/build/cjs/src/contacts-v4-contact.universal.js.map +1 -1
- package/build/cjs/src/contacts-v4-extended-field.context.d.ts +7 -0
- package/build/cjs/src/contacts-v4-extended-field.context.js +60 -0
- package/build/cjs/src/contacts-v4-extended-field.context.js.map +1 -0
- package/build/cjs/src/contacts-v4-extended-field.http.d.ts +7 -14
- package/build/cjs/src/contacts-v4-extended-field.http.js +60 -70
- package/build/cjs/src/contacts-v4-extended-field.http.js.map +1 -1
- package/build/cjs/src/contacts-v4-extended-field.meta.d.ts +1 -1
- package/build/cjs/src/contacts-v4-extended-field.meta.js +5 -1
- package/build/cjs/src/contacts-v4-extended-field.meta.js.map +1 -1
- package/build/cjs/src/contacts-v4-extended-field.public.d.ts +1 -1
- package/build/cjs/src/contacts-v4-extended-field.types.d.ts +68 -1
- package/build/cjs/src/contacts-v4-extended-field.types.js +3 -3
- package/build/cjs/src/contacts-v4-extended-field.types.js.map +1 -1
- package/build/cjs/src/contacts-v4-extended-field.universal.d.ts +104 -30
- package/build/cjs/src/contacts-v4-extended-field.universal.js +58 -51
- package/build/cjs/src/contacts-v4-extended-field.universal.js.map +1 -1
- package/build/cjs/src/contacts-v4-label.context.d.ts +7 -0
- package/build/cjs/src/contacts-v4-label.context.js +60 -0
- package/build/cjs/src/contacts-v4-label.context.js.map +1 -0
- package/build/cjs/src/contacts-v4-label.http.d.ts +13 -14
- package/build/cjs/src/contacts-v4-label.http.js +66 -72
- package/build/cjs/src/contacts-v4-label.http.js.map +1 -1
- package/build/cjs/src/contacts-v4-label.meta.d.ts +1 -1
- package/build/cjs/src/contacts-v4-label.meta.js +5 -1
- package/build/cjs/src/contacts-v4-label.meta.js.map +1 -1
- package/build/cjs/src/contacts-v4-label.public.d.ts +5 -5
- package/build/cjs/src/contacts-v4-label.types.d.ts +76 -9
- package/build/cjs/src/contacts-v4-label.types.js +2 -2
- package/build/cjs/src/contacts-v4-label.types.js.map +1 -1
- package/build/cjs/src/contacts-v4-label.universal.d.ts +113 -40
- package/build/cjs/src/contacts-v4-label.universal.js +72 -62
- package/build/cjs/src/contacts-v4-label.universal.js.map +1 -1
- package/build/cjs/src/contacts-v4-submit-contact.context.d.ts +3 -0
- package/build/cjs/src/contacts-v4-submit-contact.context.js +16 -0
- package/build/cjs/src/contacts-v4-submit-contact.context.js.map +1 -0
- package/build/cjs/src/contacts-v4-submit-contact.http.js +20 -34
- package/build/cjs/src/contacts-v4-submit-contact.http.js.map +1 -1
- package/build/cjs/src/contacts-v4-submit-contact.meta.d.ts +1 -1
- package/build/cjs/src/contacts-v4-submit-contact.meta.js +5 -1
- package/build/cjs/src/contacts-v4-submit-contact.meta.js.map +1 -1
- package/build/cjs/src/contacts-v4-submit-contact.public.d.ts +2 -2
- package/build/cjs/src/contacts-v4-submit-contact.types.d.ts +8 -3
- package/build/cjs/src/contacts-v4-submit-contact.types.js +9 -9
- package/build/cjs/src/contacts-v4-submit-contact.types.js.map +1 -1
- package/build/cjs/src/contacts-v4-submit-contact.universal.d.ts +8 -9
- package/build/cjs/src/contacts-v4-submit-contact.universal.js +25 -28
- package/build/cjs/src/contacts-v4-submit-contact.universal.js.map +1 -1
- package/build/cjs/src/crm-tasks-v2-task.context.d.ts +9 -0
- package/build/cjs/src/crm-tasks-v2-task.context.js +82 -0
- package/build/cjs/src/crm-tasks-v2-task.context.js.map +1 -0
- package/build/cjs/src/crm-tasks-v2-task.http.d.ts +60 -0
- package/build/cjs/src/crm-tasks-v2-task.http.js +268 -0
- package/build/cjs/src/crm-tasks-v2-task.http.js.map +1 -0
- package/build/cjs/src/crm-tasks-v2-task.meta.d.ts +27 -0
- package/build/cjs/src/crm-tasks-v2-task.meta.js +161 -0
- package/build/cjs/src/crm-tasks-v2-task.meta.js.map +1 -0
- package/build/cjs/src/crm-tasks-v2-task.public.d.ts +29 -0
- package/build/cjs/src/crm-tasks-v2-task.public.js +53 -0
- package/build/cjs/src/crm-tasks-v2-task.public.js.map +1 -0
- package/build/cjs/src/crm-tasks-v2-task.types.d.ts +430 -0
- package/build/cjs/src/crm-tasks-v2-task.types.js +29 -0
- package/build/cjs/src/crm-tasks-v2-task.types.js.map +1 -0
- package/build/cjs/src/crm-tasks-v2-task.universal.d.ts +665 -0
- package/build/cjs/src/crm-tasks-v2-task.universal.js +515 -0
- package/build/cjs/src/crm-tasks-v2-task.universal.js.map +1 -0
- package/build/cjs/src/ping-notifications-v3-notification.public.d.ts +1 -1
- package/build/cjs/src/ping-notifications-v3-notification.types.js +1 -1
- package/build/cjs/src/ping-notifications-v3-notification.types.js.map +1 -1
- package/build/cjs/src/ping-notifications-v3-notification.universal.js +6 -2
- package/build/cjs/src/ping-notifications-v3-notification.universal.js.map +1 -1
- package/build/es/context.d.ts +5 -0
- package/build/es/context.js +6 -0
- package/build/es/context.js.map +1 -0
- package/build/es/index.d.ts +1 -1
- package/build/es/index.js +1 -1
- package/build/es/index.js.map +1 -1
- package/build/es/index.typings.d.ts +1 -1
- package/build/es/index.typings.js +1 -1
- package/build/es/index.typings.js.map +1 -1
- package/build/es/meta.d.ts +1 -1
- package/build/es/meta.js +1 -1
- package/build/es/meta.js.map +1 -1
- package/build/es/src/contacts-v4-contact.context.d.ts +9 -0
- package/build/es/src/contacts-v4-contact.context.js +72 -0
- package/build/es/src/contacts-v4-contact.context.js.map +1 -0
- package/build/es/src/contacts-v4-contact.http.d.ts +20 -94
- package/build/es/src/contacts-v4-contact.http.js +211 -249
- package/build/es/src/contacts-v4-contact.http.js.map +1 -1
- package/build/es/src/contacts-v4-contact.meta.d.ts +1 -1
- package/build/es/src/contacts-v4-contact.public.d.ts +6 -6
- package/build/es/src/contacts-v4-contact.public.js +2 -2
- package/build/es/src/contacts-v4-contact.public.js.map +1 -1
- package/build/es/src/contacts-v4-contact.types.d.ts +265 -5
- package/build/es/src/contacts-v4-contact.types.js +21 -0
- package/build/es/src/contacts-v4-contact.types.js.map +1 -1
- package/build/es/src/contacts-v4-contact.universal.d.ts +221 -155
- package/build/es/src/contacts-v4-contact.universal.js +117 -149
- package/build/es/src/contacts-v4-contact.universal.js.map +1 -1
- package/build/es/src/contacts-v4-extended-field.context.d.ts +7 -0
- package/build/es/src/contacts-v4-extended-field.context.js +52 -0
- package/build/es/src/contacts-v4-extended-field.context.js.map +1 -0
- package/build/es/src/contacts-v4-extended-field.http.d.ts +7 -14
- package/build/es/src/contacts-v4-extended-field.http.js +60 -70
- package/build/es/src/contacts-v4-extended-field.http.js.map +1 -1
- package/build/es/src/contacts-v4-extended-field.meta.d.ts +1 -1
- package/build/es/src/contacts-v4-extended-field.public.d.ts +1 -1
- package/build/es/src/contacts-v4-extended-field.types.d.ts +68 -1
- package/build/es/src/contacts-v4-extended-field.universal.d.ts +104 -30
- package/build/es/src/contacts-v4-extended-field.universal.js +49 -46
- package/build/es/src/contacts-v4-extended-field.universal.js.map +1 -1
- package/build/es/src/contacts-v4-label.context.d.ts +7 -0
- package/build/es/src/contacts-v4-label.context.js +52 -0
- package/build/es/src/contacts-v4-label.context.js.map +1 -0
- package/build/es/src/contacts-v4-label.http.d.ts +13 -14
- package/build/es/src/contacts-v4-label.http.js +66 -72
- package/build/es/src/contacts-v4-label.http.js.map +1 -1
- package/build/es/src/contacts-v4-label.meta.d.ts +1 -1
- package/build/es/src/contacts-v4-label.public.d.ts +5 -5
- package/build/es/src/contacts-v4-label.types.d.ts +76 -9
- package/build/es/src/contacts-v4-label.universal.d.ts +113 -40
- package/build/es/src/contacts-v4-label.universal.js +64 -58
- package/build/es/src/contacts-v4-label.universal.js.map +1 -1
- package/build/es/src/contacts-v4-submit-contact.context.d.ts +3 -0
- package/build/es/src/contacts-v4-submit-contact.context.js +12 -0
- package/build/es/src/contacts-v4-submit-contact.context.js.map +1 -0
- package/build/es/src/contacts-v4-submit-contact.http.js +20 -34
- package/build/es/src/contacts-v4-submit-contact.http.js.map +1 -1
- package/build/es/src/contacts-v4-submit-contact.meta.d.ts +1 -1
- package/build/es/src/contacts-v4-submit-contact.public.d.ts +2 -2
- package/build/es/src/contacts-v4-submit-contact.types.d.ts +8 -3
- package/build/es/src/contacts-v4-submit-contact.types.js.map +1 -1
- package/build/es/src/contacts-v4-submit-contact.universal.d.ts +8 -9
- package/build/es/src/contacts-v4-submit-contact.universal.js +11 -18
- package/build/es/src/contacts-v4-submit-contact.universal.js.map +1 -1
- package/build/es/src/crm-tasks-v2-task.context.d.ts +9 -0
- package/build/es/src/crm-tasks-v2-task.context.js +72 -0
- package/build/es/src/crm-tasks-v2-task.context.js.map +1 -0
- package/build/es/src/crm-tasks-v2-task.http.d.ts +60 -0
- package/build/es/src/crm-tasks-v2-task.http.js +258 -0
- package/build/es/src/crm-tasks-v2-task.http.js.map +1 -0
- package/build/es/src/crm-tasks-v2-task.meta.d.ts +27 -0
- package/build/es/src/crm-tasks-v2-task.meta.js +128 -0
- package/build/es/src/crm-tasks-v2-task.meta.js.map +1 -0
- package/build/es/src/crm-tasks-v2-task.public.d.ts +29 -0
- package/build/es/src/crm-tasks-v2-task.public.js +39 -0
- package/build/es/src/crm-tasks-v2-task.public.js.map +1 -0
- package/build/es/src/crm-tasks-v2-task.types.d.ts +430 -0
- package/build/es/src/crm-tasks-v2-task.types.js +26 -0
- package/build/es/src/crm-tasks-v2-task.types.js.map +1 -0
- package/build/es/src/crm-tasks-v2-task.universal.d.ts +665 -0
- package/build/es/src/crm-tasks-v2-task.universal.js +482 -0
- package/build/es/src/crm-tasks-v2-task.universal.js.map +1 -0
- package/build/es/src/ping-notifications-v3-notification.public.d.ts +1 -1
- package/build/es/src/ping-notifications-v3-notification.universal.js.map +1 -1
- package/context/package.json +6 -0
- package/package.json +12 -6
- package/build/cjs/src/crm-tasks-v1-task.http.d.ts +0 -43
- package/build/cjs/src/crm-tasks-v1-task.http.js +0 -215
- package/build/cjs/src/crm-tasks-v1-task.http.js.map +0 -1
- package/build/cjs/src/crm-tasks-v1-task.meta.d.ts +0 -25
- package/build/cjs/src/crm-tasks-v1-task.meta.js +0 -119
- package/build/cjs/src/crm-tasks-v1-task.meta.js.map +0 -1
- package/build/cjs/src/crm-tasks-v1-task.public.d.ts +0 -12
- package/build/cjs/src/crm-tasks-v1-task.public.js +0 -40
- package/build/cjs/src/crm-tasks-v1-task.public.js.map +0 -1
- package/build/cjs/src/crm-tasks-v1-task.types.d.ts +0 -269
- package/build/cjs/src/crm-tasks-v1-task.types.js +0 -21
- package/build/cjs/src/crm-tasks-v1-task.types.js.map +0 -1
- package/build/cjs/src/crm-tasks-v1-task.universal.d.ts +0 -350
- package/build/cjs/src/crm-tasks-v1-task.universal.js +0 -361
- package/build/cjs/src/crm-tasks-v1-task.universal.js.map +0 -1
- package/build/es/src/crm-tasks-v1-task.http.d.ts +0 -43
- package/build/es/src/crm-tasks-v1-task.http.js +0 -207
- package/build/es/src/crm-tasks-v1-task.http.js.map +0 -1
- package/build/es/src/crm-tasks-v1-task.meta.d.ts +0 -25
- package/build/es/src/crm-tasks-v1-task.meta.js +0 -92
- package/build/es/src/crm-tasks-v1-task.meta.js.map +0 -1
- package/build/es/src/crm-tasks-v1-task.public.d.ts +0 -12
- package/build/es/src/crm-tasks-v1-task.public.js +0 -29
- package/build/es/src/crm-tasks-v1-task.public.js.map +0 -1
- package/build/es/src/crm-tasks-v1-task.types.d.ts +0 -269
- package/build/es/src/crm-tasks-v1-task.types.js +0 -18
- package/build/es/src/crm-tasks-v1-task.types.js.map +0 -1
- package/build/es/src/crm-tasks-v1-task.universal.d.ts +0 -350
- package/build/es/src/crm-tasks-v1-task.universal.js +0 -334
- package/build/es/src/crm-tasks-v1-task.universal.js.map +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"contacts-v4-label.context.js","sourceRoot":"","sources":["../../../src/contacts-v4-label.context.ts"],"names":[],"mappings":";;;AAAA,yEAMoC;AAG7B,MAAM,iBAAiB,GAE1B,CAAC,GAAG,IAAS,EAAE,EAAE;IACnB,mBAAmB;IACnB,IAAI,CAAC,UAAU,CAAC,eAAe,EAAE,CAAC;QAChC,MAAM,IAAI,KAAK,CACb,gGAAgG,CACjG,CAAC;IACJ,CAAC;IACD,mBAAmB;IACnB,OAAO,UAAU,CAAC,eAAe;SAC9B,cAAc,CAAC,4CAAuB,CAAC;SACvC,KAAK,CAAC,SAAS,EAAE,IAAI,CAAC,CAAC;AAC5B,CAAC,CAAC;AAbW,QAAA,iB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D,mBAAmB;IACnB,OAAO,UAAU,CAAC,eAAe;SAC9B,cAAc,CAAC,sCAAiB,CAAC;SACjC,KAAK,CAAC,SAAS,EAAE,IAAI,CAAC,CAAC;AAC5B,CAAC,CAAC;AAbW,QAAA,WAAW,eAatB"}
|
|
@@ -7,10 +7,8 @@ import { DeleteLabelRequest, DeleteLabelResponse, FindOrCreateLabelRequest, Find
|
|
|
7
7
|
*
|
|
8
8
|
* Successful calls to `findOrCreateLabel()` always returns a label, which can be passed to subsequent function calls.
|
|
9
9
|
*
|
|
10
|
-
* To find an existing label without potentially creating a new one, use
|
|
10
|
+
* To find an existing label without potentially creating a new one, use `getLabel()` or `queryLabels()`.
|
|
11
11
|
*
|
|
12
|
-
* > **Note:**
|
|
13
|
-
* > Only visitors with **Manage Contacts** permissions can run this function.
|
|
14
12
|
*
|
|
15
13
|
*/
|
|
16
14
|
export declare function findOrCreateLabel(payload: FindOrCreateLabelRequest): RequestOptionsFactory<FindOrCreateLabelResponse & FindOrCreateLabelResponseNonNullableFields>;
|
|
@@ -20,35 +18,36 @@ export declare function findOrCreateLabel(payload: FindOrCreateLabelRequest): Re
|
|
|
20
18
|
* The `getLabel()` function returns a Promise that resolves when the specified label is retrieved.
|
|
21
19
|
*/
|
|
22
20
|
export declare function getLabel(payload: GetLabelRequest): RequestOptionsFactory<GetLabelResponse & GetLabelResponseNonNullableFields>;
|
|
23
|
-
/**
|
|
21
|
+
/**
|
|
22
|
+
* Renames a label.
|
|
23
|
+
*
|
|
24
|
+
* The `renameLabel()` function returns a Promise that resolves when the specified label's display name is changed.
|
|
25
|
+
*
|
|
26
|
+
*/
|
|
24
27
|
export declare function updateLabel(payload: UpdateLabelRequest): RequestOptionsFactory<UpdateLabelResponse & UpdateLabelResponseNonNullableFields>;
|
|
25
28
|
/**
|
|
26
29
|
* Deletes a label from the site and removes it from contacts it applies to.
|
|
27
30
|
*
|
|
28
31
|
* The `deleteLabel()` function returns a Promise that resolves when the specified label is deleted.
|
|
29
32
|
*
|
|
30
|
-
* > **Note:**
|
|
31
|
-
* > Only visitors with **Manage Contacts** permissions can run this function.
|
|
32
33
|
*
|
|
33
34
|
*/
|
|
34
35
|
export declare function deleteLabel(payload: DeleteLabelRequest): RequestOptionsFactory<DeleteLabelResponse>;
|
|
35
36
|
/**
|
|
36
37
|
* Creates a query to retrieve a list of labels.
|
|
37
38
|
*
|
|
38
|
-
* The `queryLabels()` function builds a query to retrieve a list of labels and returns a
|
|
39
|
+
* The `queryLabels()` function builds a query to retrieve a list of labels and returns a `LabelsQueryBuilder` object.
|
|
39
40
|
*
|
|
40
|
-
* The returned object contains the query definition, which is used to run the query using the
|
|
41
|
+
* The returned object contains the query definition, which is used to run the query using the `find()` function.
|
|
41
42
|
*
|
|
42
43
|
* You can refine the query by chaining `LabelsQueryBuilder` functions onto the query. `LabelsQueryBuilder` functions enable you to filter, sort, and control the results that `queryLabels()` returns.
|
|
43
44
|
*
|
|
44
45
|
* `queryLabels()` runs with the following `LabelsQueryBuilder` defaults, which you can override:
|
|
45
|
-
* -
|
|
46
|
-
* -
|
|
47
|
-
* -
|
|
48
|
-
*
|
|
49
|
-
* >**Note:** Only visitors with **Manage Contacts** permissions can query labels.
|
|
46
|
+
* - `skip(0)`
|
|
47
|
+
* - `limit(50)`
|
|
48
|
+
* - `descending('_createdDate')`
|
|
50
49
|
*
|
|
51
|
-
* The following `LabelsQueryBuilder` functions are supported for `queryLabels()`. For a full description of the `Labels` object, see the object returned for the
|
|
50
|
+
* The following `LabelsQueryBuilder` functions are supported for `queryLabels()`. For a full description of the `Labels` object, see the object returned for the `items` property in `LabelsQueryResult`.
|
|
52
51
|
*
|
|
53
52
|
*
|
|
54
53
|
*/
|
|
@@ -2,22 +2,10 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.queryLabels = exports.deleteLabel = exports.updateLabel = exports.getLabel = exports.findOrCreateLabel = void 0;
|
|
4
4
|
const metro_runtime_1 = require("@wix/metro-runtime");
|
|
5
|
-
const
|
|
5
|
+
const timestamp_1 = require("@wix/sdk-runtime/transformations/timestamp");
|
|
6
|
+
const timestamp_2 = require("@wix/sdk-runtime/transformations/timestamp");
|
|
7
|
+
const transform_paths_1 = require("@wix/sdk-runtime/transformations/transform-paths");
|
|
6
8
|
const metro_runtime_2 = require("@wix/metro-runtime");
|
|
7
|
-
const _contactLabel = {
|
|
8
|
-
createdDate: 'google.protobuf.Timestamp',
|
|
9
|
-
updatedDate: 'google.protobuf.Timestamp',
|
|
10
|
-
};
|
|
11
|
-
const _deleteLabelRequest = {};
|
|
12
|
-
const _deleteLabelResponse = {};
|
|
13
|
-
const _findOrCreateLabelRequest = {};
|
|
14
|
-
const _findOrCreateLabelResponse = { label: '_contactLabel' };
|
|
15
|
-
const _getLabelRequest = {};
|
|
16
|
-
const _getLabelResponse = { label: '_contactLabel' };
|
|
17
|
-
const _queryLabelsRequest = {};
|
|
18
|
-
const _queryLabelsResponse = { labels: '_contactLabel' };
|
|
19
|
-
const _updateLabelRequest = { label: '_contactLabel' };
|
|
20
|
-
const _updateLabelResponse = { label: '_contactLabel' };
|
|
21
9
|
function resolveComWixpressContactsLabelsV4ContactLabelsServiceV4Url(opts) {
|
|
22
10
|
const domainToMappings = {
|
|
23
11
|
'api._api_base_domain_': [
|
|
@@ -72,34 +60,34 @@ function resolveComWixpressContactsLabelsV4ContactLabelsServiceV4Url(opts) {
|
|
|
72
60
|
*
|
|
73
61
|
* Successful calls to `findOrCreateLabel()` always returns a label, which can be passed to subsequent function calls.
|
|
74
62
|
*
|
|
75
|
-
* To find an existing label without potentially creating a new one, use
|
|
63
|
+
* To find an existing label without potentially creating a new one, use `getLabel()` or `queryLabels()`.
|
|
76
64
|
*
|
|
77
|
-
* > **Note:**
|
|
78
|
-
* > Only visitors with **Manage Contacts** permissions can run this function.
|
|
79
65
|
*
|
|
80
66
|
*/
|
|
81
67
|
function findOrCreateLabel(payload) {
|
|
82
|
-
const { toJSON: toReq, fromJSON: fromReq } = (0, ambassador_1.serializer)(_findOrCreateLabelRequest, {});
|
|
83
|
-
const { fromJSON: fromRes } = (0, ambassador_1.serializer)(_findOrCreateLabelResponse, {
|
|
84
|
-
_contactLabel,
|
|
85
|
-
});
|
|
86
68
|
function __findOrCreateLabel({ host }) {
|
|
87
|
-
const serializedData = toReq(payload);
|
|
88
69
|
const metadata = {
|
|
89
70
|
entityFqdn: 'wix.contacts.v4.label',
|
|
90
71
|
method: 'POST',
|
|
91
72
|
methodFqn: 'com.wixpress.contacts.labels.v4.ContactLabelsServiceV4.FindOrCreateLabel',
|
|
92
73
|
url: resolveComWixpressContactsLabelsV4ContactLabelsServiceV4Url({
|
|
93
74
|
protoPath: '/v4/labels',
|
|
94
|
-
data:
|
|
75
|
+
data: payload,
|
|
95
76
|
host,
|
|
96
77
|
}),
|
|
97
|
-
data:
|
|
98
|
-
transformResponse:
|
|
78
|
+
data: payload,
|
|
79
|
+
transformResponse: (payload) => (0, transform_paths_1.transformPaths)(payload, [
|
|
80
|
+
{
|
|
81
|
+
transformFn: timestamp_2.transformRESTTimestampToSDKTimestamp,
|
|
82
|
+
paths: [
|
|
83
|
+
{ path: 'label.createdDate' },
|
|
84
|
+
{ path: 'label.updatedDate' },
|
|
85
|
+
],
|
|
86
|
+
},
|
|
87
|
+
]),
|
|
99
88
|
};
|
|
100
89
|
return metadata;
|
|
101
90
|
}
|
|
102
|
-
__findOrCreateLabel.fromReq = fromReq;
|
|
103
91
|
return __findOrCreateLabel;
|
|
104
92
|
}
|
|
105
93
|
exports.findOrCreateLabel = findOrCreateLabel;
|
|
@@ -109,40 +97,46 @@ exports.findOrCreateLabel = findOrCreateLabel;
|
|
|
109
97
|
* The `getLabel()` function returns a Promise that resolves when the specified label is retrieved.
|
|
110
98
|
*/
|
|
111
99
|
function getLabel(payload) {
|
|
112
|
-
const { toJSON: toReq, fromJSON: fromReq } = (0, ambassador_1.serializer)(_getLabelRequest, {});
|
|
113
|
-
const { fromJSON: fromRes } = (0, ambassador_1.serializer)(_getLabelResponse, {
|
|
114
|
-
_contactLabel,
|
|
115
|
-
});
|
|
116
100
|
function __getLabel({ host }) {
|
|
117
|
-
const serializedData = toReq(payload);
|
|
118
101
|
const metadata = {
|
|
119
102
|
entityFqdn: 'wix.contacts.v4.label',
|
|
120
103
|
method: 'GET',
|
|
121
104
|
methodFqn: 'com.wixpress.contacts.labels.v4.ContactLabelsServiceV4.GetLabel',
|
|
122
105
|
url: resolveComWixpressContactsLabelsV4ContactLabelsServiceV4Url({
|
|
123
106
|
protoPath: '/v4/labels/{key}',
|
|
124
|
-
data:
|
|
107
|
+
data: payload,
|
|
125
108
|
host,
|
|
126
109
|
}),
|
|
127
|
-
params: (0, metro_runtime_1.toURLSearchParams)(
|
|
128
|
-
transformResponse:
|
|
110
|
+
params: (0, metro_runtime_1.toURLSearchParams)(payload),
|
|
111
|
+
transformResponse: (payload) => (0, transform_paths_1.transformPaths)(payload, [
|
|
112
|
+
{
|
|
113
|
+
transformFn: timestamp_2.transformRESTTimestampToSDKTimestamp,
|
|
114
|
+
paths: [
|
|
115
|
+
{ path: 'label.createdDate' },
|
|
116
|
+
{ path: 'label.updatedDate' },
|
|
117
|
+
],
|
|
118
|
+
},
|
|
119
|
+
]),
|
|
129
120
|
};
|
|
130
121
|
return metadata;
|
|
131
122
|
}
|
|
132
|
-
__getLabel.fromReq = fromReq;
|
|
133
123
|
return __getLabel;
|
|
134
124
|
}
|
|
135
125
|
exports.getLabel = getLabel;
|
|
136
|
-
/**
|
|
126
|
+
/**
|
|
127
|
+
* Renames a label.
|
|
128
|
+
*
|
|
129
|
+
* The `renameLabel()` function returns a Promise that resolves when the specified label's display name is changed.
|
|
130
|
+
*
|
|
131
|
+
*/
|
|
137
132
|
function updateLabel(payload) {
|
|
138
|
-
const { toJSON: toReq, fromJSON: fromReq } = (0, ambassador_1.serializer)(_updateLabelRequest, {
|
|
139
|
-
_contactLabel,
|
|
140
|
-
});
|
|
141
|
-
const { fromJSON: fromRes } = (0, ambassador_1.serializer)(_updateLabelResponse, {
|
|
142
|
-
_contactLabel,
|
|
143
|
-
});
|
|
144
133
|
function __updateLabel({ host }) {
|
|
145
|
-
const serializedData =
|
|
134
|
+
const serializedData = (0, transform_paths_1.transformPaths)(payload, [
|
|
135
|
+
{
|
|
136
|
+
transformFn: timestamp_1.transformSDKTimestampToRESTTimestamp,
|
|
137
|
+
paths: [{ path: 'label.createdDate' }, { path: 'label.updatedDate' }],
|
|
138
|
+
},
|
|
139
|
+
]);
|
|
146
140
|
const metadata = {
|
|
147
141
|
entityFqdn: 'wix.contacts.v4.label',
|
|
148
142
|
method: 'PATCH',
|
|
@@ -153,11 +147,18 @@ function updateLabel(payload) {
|
|
|
153
147
|
host,
|
|
154
148
|
}),
|
|
155
149
|
data: serializedData,
|
|
156
|
-
transformResponse:
|
|
150
|
+
transformResponse: (payload) => (0, transform_paths_1.transformPaths)(payload, [
|
|
151
|
+
{
|
|
152
|
+
transformFn: timestamp_2.transformRESTTimestampToSDKTimestamp,
|
|
153
|
+
paths: [
|
|
154
|
+
{ path: 'label.createdDate' },
|
|
155
|
+
{ path: 'label.updatedDate' },
|
|
156
|
+
],
|
|
157
|
+
},
|
|
158
|
+
]),
|
|
157
159
|
};
|
|
158
160
|
return metadata;
|
|
159
161
|
}
|
|
160
|
-
__updateLabel.fromReq = fromReq;
|
|
161
162
|
return __updateLabel;
|
|
162
163
|
}
|
|
163
164
|
exports.updateLabel = updateLabel;
|
|
@@ -166,75 +167,68 @@ exports.updateLabel = updateLabel;
|
|
|
166
167
|
*
|
|
167
168
|
* The `deleteLabel()` function returns a Promise that resolves when the specified label is deleted.
|
|
168
169
|
*
|
|
169
|
-
* > **Note:**
|
|
170
|
-
* > Only visitors with **Manage Contacts** permissions can run this function.
|
|
171
170
|
*
|
|
172
171
|
*/
|
|
173
172
|
function deleteLabel(payload) {
|
|
174
|
-
const { toJSON: toReq, fromJSON: fromReq } = (0, ambassador_1.serializer)(_deleteLabelRequest, {});
|
|
175
|
-
const { fromJSON: fromRes } = (0, ambassador_1.serializer)(_deleteLabelResponse, {});
|
|
176
173
|
function __deleteLabel({ host }) {
|
|
177
|
-
const serializedData = toReq(payload);
|
|
178
174
|
const metadata = {
|
|
179
175
|
entityFqdn: 'wix.contacts.v4.label',
|
|
180
176
|
method: 'DELETE',
|
|
181
177
|
methodFqn: 'com.wixpress.contacts.labels.v4.ContactLabelsServiceV4.DeleteLabel',
|
|
182
178
|
url: resolveComWixpressContactsLabelsV4ContactLabelsServiceV4Url({
|
|
183
179
|
protoPath: '/v4/labels/{key}',
|
|
184
|
-
data:
|
|
180
|
+
data: payload,
|
|
185
181
|
host,
|
|
186
182
|
}),
|
|
187
|
-
params: (0, metro_runtime_1.toURLSearchParams)(
|
|
188
|
-
transformResponse: fromRes,
|
|
183
|
+
params: (0, metro_runtime_1.toURLSearchParams)(payload),
|
|
189
184
|
};
|
|
190
185
|
return metadata;
|
|
191
186
|
}
|
|
192
|
-
__deleteLabel.fromReq = fromReq;
|
|
193
187
|
return __deleteLabel;
|
|
194
188
|
}
|
|
195
189
|
exports.deleteLabel = deleteLabel;
|
|
196
190
|
/**
|
|
197
191
|
* Creates a query to retrieve a list of labels.
|
|
198
192
|
*
|
|
199
|
-
* The `queryLabels()` function builds a query to retrieve a list of labels and returns a
|
|
193
|
+
* The `queryLabels()` function builds a query to retrieve a list of labels and returns a `LabelsQueryBuilder` object.
|
|
200
194
|
*
|
|
201
|
-
* The returned object contains the query definition, which is used to run the query using the
|
|
195
|
+
* The returned object contains the query definition, which is used to run the query using the `find()` function.
|
|
202
196
|
*
|
|
203
197
|
* You can refine the query by chaining `LabelsQueryBuilder` functions onto the query. `LabelsQueryBuilder` functions enable you to filter, sort, and control the results that `queryLabels()` returns.
|
|
204
198
|
*
|
|
205
199
|
* `queryLabels()` runs with the following `LabelsQueryBuilder` defaults, which you can override:
|
|
206
|
-
* -
|
|
207
|
-
* -
|
|
208
|
-
* -
|
|
200
|
+
* - `skip(0)`
|
|
201
|
+
* - `limit(50)`
|
|
202
|
+
* - `descending('_createdDate')`
|
|
209
203
|
*
|
|
210
|
-
*
|
|
211
|
-
*
|
|
212
|
-
* The following `LabelsQueryBuilder` functions are supported for `queryLabels()`. For a full description of the `Labels` object, see the object returned for the [`items`](#labelsqueryresult/items) property in [`LabelsQueryResult`](#labelsqueryresult).
|
|
204
|
+
* The following `LabelsQueryBuilder` functions are supported for `queryLabels()`. For a full description of the `Labels` object, see the object returned for the `items` property in `LabelsQueryResult`.
|
|
213
205
|
*
|
|
214
206
|
*
|
|
215
207
|
*/
|
|
216
208
|
function queryLabels(payload) {
|
|
217
|
-
const { toJSON: toReq, fromJSON: fromReq } = (0, ambassador_1.serializer)(_queryLabelsRequest, {});
|
|
218
|
-
const { fromJSON: fromRes } = (0, ambassador_1.serializer)(_queryLabelsResponse, {
|
|
219
|
-
_contactLabel,
|
|
220
|
-
});
|
|
221
209
|
function __queryLabels({ host }) {
|
|
222
|
-
const serializedData = toReq(payload);
|
|
223
210
|
const metadata = {
|
|
224
211
|
entityFqdn: 'wix.contacts.v4.label',
|
|
225
212
|
method: 'POST',
|
|
226
213
|
methodFqn: 'com.wixpress.contacts.labels.v4.ContactLabelsServiceV4.QueryLabels',
|
|
227
214
|
url: resolveComWixpressContactsLabelsV4ContactLabelsServiceV4Url({
|
|
228
215
|
protoPath: '/v4/labels/query',
|
|
229
|
-
data:
|
|
216
|
+
data: payload,
|
|
230
217
|
host,
|
|
231
218
|
}),
|
|
232
|
-
data:
|
|
233
|
-
transformResponse:
|
|
219
|
+
data: payload,
|
|
220
|
+
transformResponse: (payload) => (0, transform_paths_1.transformPaths)(payload, [
|
|
221
|
+
{
|
|
222
|
+
transformFn: timestamp_2.transformRESTTimestampToSDKTimestamp,
|
|
223
|
+
paths: [
|
|
224
|
+
{ path: 'labels.createdDate' },
|
|
225
|
+
{ path: 'labels.updatedDate' },
|
|
226
|
+
],
|
|
227
|
+
},
|
|
228
|
+
]),
|
|
234
229
|
};
|
|
235
230
|
return metadata;
|
|
236
231
|
}
|
|
237
|
-
__queryLabels.fromReq = fromReq;
|
|
238
232
|
return __queryLabels;
|
|
239
233
|
}
|
|
240
234
|
exports.queryLabels = queryLabels;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"contacts-v4-label.http.js","sourceRoot":"","sources":["../../../src/contacts-v4-label.http.ts"],"names":[],"mappings":";;;AAAA,sDAAuD;AACvD,
|
|
1
|
+
{"version":3,"file":"contacts-v4-label.http.js","sourceRoot":"","sources":["../../../src/contacts-v4-label.http.ts"],"names":[],"mappings":";;;AAAA,sDAAuD;AACvD,0EAAkG;AAClG,0EAAkG;AAClG,sFAAkF;AAClF,sDAAgD;AAoBhD,SAAS,2DAA2D,CAClE,IAA8C;IAE9C,MAAM,gBAAgB,GAAG;QACvB,uBAAuB,EAAE;YACvB;gBACE,OAAO,EAAE,sBAAsB;gBAC/B,QAAQ,EAAE,EAAE;aACb;SACF;QACD,iBAAiB,EAAE;YACjB;gBACE,OAAO,EAAE,qBAAqB;gBAC9B,QAAQ,EAAE,YAAY;aACvB;SACF;QACD,mBAAmB,EAAE;YACnB;gBACE,OAAO,EAAE,0BAA0B;gBACnC,QAAQ,EAAE,YAAY;aACvB;SACF;QACD,sBAAsB,EAAE;YACtB;gBACE,OAAO,EAAE,0BAA0B;gBACnC,QAAQ,EAAE,YAAY;aACvB;SACF;QACD,sBAAsB,EAAE;YACtB;gBACE,OAAO,EAAE,0BAA0B;gBACnC,QAAQ,EAAE,YAAY;aACvB;SACF;QACD,sBAAsB,EAAE;YACtB;gBACE,OAAO,EAAE,0BAA0B;gBACnC,QAAQ,EAAE,YAAY;aACvB;SACF;QACD,gBAAgB,EAAE;YAChB;gBACE,OAAO,EAAE,0BAA0B;gBACnC,QAAQ,EAAE,YAAY;aACvB;SACF;KACF,CAAC;IAEF,OAAO,IAAA,0BAAU,EAAC,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,EAAE,gBAAgB,EAAE,CAAC,CAAC,CAA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AA2D,CAAC;gBAC/D,SAAS,EAAE,kBAAkB;gBAC7B,IAAI,EAAE,OAAO;gBACb,IAAI;aACL,CAAC;YACF,MAAM,EAAE,IAAA,iCAAiB,EAAC,OAAO,CAAC;SACnC,CAAC;QAEF,OAAO,QAAQ,CAAC;IAClB,CAAC;IAED,OAAO,aAAa,CAAC;AACvB,CAAC;AArBD,kCAqBC;AAED;;;;;;;;;;;;;;;;;GAiBG;AACH,SAAgB,WAAW,CACzB,OAA2B;IAI3B,SAAS,aAAa,CAAC,EAAE,IAAI,EAAO;QAClC,MAAM,QAAQ,GAAG;YACf,UAAU,EAAE,uBAAuB;YACnC,MAAM,EAAE,MAAa;YACrB,SAAS,EACP,oEAAoE;YACtE,GAAG,EAAE,2DAA2D,CAAC;gBAC/D,SAAS,EAAE,kBAAkB;gBAC7B,IAAI,EAAE,OAAO;gBACb,IAAI;aACL,CAAC;YACF,IAAI,EAAE,OAAO;YACb,iBAAiB,EAAE,CAAC,OAAY,EAAE,EAAE,CAClC,IAAA,gCAAc,EAAC,OAAO,EAAE;gBACtB;oBACE,WAAW,EAAE,gDAAoC;oBACjD,KAAK,EAAE;wBACL,EAAE,IAAI,EAAE,oBAAoB,EAAE;wBAC9B,EAAE,IAAI,EAAE,oBAAoB,EAAE;qBAC/B;iBACF;aACF,CAAC;SACL,CAAC;QAEF,OAAO,QAAQ,CAAC;IAClB,CAAC;IAED,OAAO,aAAa,CAAC;AACvB,CAAC;AAjCD,kCAiCC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as ambassadorWixContactsV4LabelTypes from './contacts-v4-label.types';
|
|
2
2
|
import * as ambassadorWixContactsV4LabelUniversalTypes from './contacts-v4-label.universal';
|
|
3
|
-
export
|
|
3
|
+
export type __PublicMethodMetaInfo<K = string, M = unknown, T = unknown, S = unknown, Q = unknown, R = unknown> = {
|
|
4
4
|
getUrl: (context: any) => string;
|
|
5
5
|
httpMethod: K;
|
|
6
6
|
path: string;
|
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
3
|
if (k2 === undefined) k2 = k;
|
|
4
|
-
Object.
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
5
9
|
}) : (function(o, m, k, k2) {
|
|
6
10
|
if (k2 === undefined) k2 = k;
|
|
7
11
|
o[k2] = m[k];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"contacts-v4-label.meta.js","sourceRoot":"","sources":["../../../src/contacts-v4-label.meta.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"contacts-v4-label.meta.js","sourceRoot":"","sources":["../../../src/contacts-v4-label.meta.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,uFAAyE;AAsBzE,SAAgB,iBAAiB;IAU/B,MAAM,OAAO,GAAG,EAAS,CAAC;IAE1B,MAAM,iBAAiB,GACrB,4BAA4B,CAAC,iBAAiB,CAAC,OAAO,CAAC,CAAC;IAE1D,MAAM,MAAM,GAAG,CAAC,OAAY,EAAU,EAAE;QACtC,MAAM,EAAE,GAAG,EAAE,GAAG,iBAAiB,CAAC,OAAO,CAAC,CAAC;QAC3C,OAAO,GAAI,CAAC;IACd,CAAC,CAAC;IAEF,OAAO;QACL,MAAM;QACN,UAAU,EAAE,MAAM;QAClB,IAAI,EAAE,YAAY;QAClB,UAAU,EAAE,EAAE;QACd,aAAa,EAAE,IAAW;QAC1B,qBAAqB,EAAE,IAAW;QAClC,cAAc,EAAE,IAAW;QAC3B,sBAAsB,EAAE,IAAW;KACpC,CAAC;AACJ,CAAC;AA9BD,8CA8BC;AAED,SAAgB,QAAQ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AS,CAAC;IAEvC,MAAM,iBAAiB,GAAG,4BAA4B,CAAC,WAAW,CAAC,OAAO,CAAC,CAAC;IAE5E,MAAM,MAAM,GAAG,CAAC,OAAY,EAAU,EAAE;QACtC,MAAM,EAAE,GAAG,EAAE,GAAG,iBAAiB,CAAC,OAAO,CAAC,CAAC;QAC3C,OAAO,GAAI,CAAC;IACd,CAAC,CAAC;IAEF,OAAO;QACL,MAAM;QACN,UAAU,EAAE,QAAQ;QACpB,IAAI,EAAE,kBAAkB;QACxB,UAAU,EAAE,EAAE,GAAG,EAAE,KAAK,EAAE;QAC1B,aAAa,EAAE,IAAW;QAC1B,qBAAqB,EAAE,IAAW;QAClC,cAAc,EAAE,IAAW;QAC3B,sBAAsB,EAAE,IAAW;KACpC,CAAC;AACJ,CAAC;AA3BD,kCA2BC;AAED,SAAgB,WAAW;IAUzB,MAAM,OAAO,GAAG,EAAS,CAAC;IAE1B,MAAM,iBAAiB,GAAG,4BAA4B,CAAC,WAAW,CAAC,OAAO,CAAC,CAAC;IAE5E,MAAM,MAAM,GAAG,CAAC,OAAY,EAAU,EAAE;QACtC,MAAM,EAAE,GAAG,EAAE,GAAG,iBAAiB,CAAC,OAAO,CAAC,CAAC;QAC3C,OAAO,GAAI,CAAC;IACd,CAAC,CAAC;IAEF,OAAO;QACL,MAAM;QACN,UAAU,EAAE,MAAM;QAClB,IAAI,EAAE,kBAAkB;QACxB,UAAU,EAAE,EAAE;QACd,aAAa,EAAE,IAAW;QAC1B,qBAAqB,EAAE,IAAW;QAClC,cAAc,EAAE,IAAW;QAC3B,sBAAsB,EAAE,IAAW;KACpC,CAAC;AACJ,CAAC;AA7BD,kCA6BC"}
|
|
@@ -3,18 +3,18 @@ import { RenameLabel, FindOrCreateLabelOptions, GetLabelOptions, QueryLabelsOpti
|
|
|
3
3
|
export declare const __metadata: {
|
|
4
4
|
PACKAGE_NAME: string;
|
|
5
5
|
};
|
|
6
|
-
export declare function findOrCreateLabel(httpClient: HttpClient): (displayName: string, options?: FindOrCreateLabelOptions
|
|
7
|
-
export declare function getLabel(httpClient: HttpClient): (key: string, options?: GetLabelOptions
|
|
6
|
+
export declare function findOrCreateLabel(httpClient: HttpClient): (displayName: string, options?: FindOrCreateLabelOptions) => Promise<import("./contacts-v4-label.universal").FindOrCreateLabelResponse & import("./contacts-v4-label.universal").FindOrCreateLabelResponseNonNullableFields>;
|
|
7
|
+
export declare function getLabel(httpClient: HttpClient): (key: string, options?: GetLabelOptions) => Promise<import("./contacts-v4-label.universal").ContactLabel & {
|
|
8
8
|
key: string;
|
|
9
9
|
displayName: string;
|
|
10
10
|
labelType: import("./contacts-v4-label.universal").LabelType;
|
|
11
11
|
}>;
|
|
12
|
-
export declare function renameLabel(httpClient: HttpClient): (key: string, label: RenameLabel, options?: RenameLabelOptions
|
|
12
|
+
export declare function renameLabel(httpClient: HttpClient): (key: string, label: RenameLabel, options?: RenameLabelOptions) => Promise<import("./contacts-v4-label.universal").ContactLabel & {
|
|
13
13
|
key: string;
|
|
14
14
|
displayName: string;
|
|
15
15
|
labelType: import("./contacts-v4-label.universal").LabelType;
|
|
16
16
|
}>;
|
|
17
17
|
export declare function deleteLabel(httpClient: HttpClient): (key: string) => Promise<void>;
|
|
18
|
-
export declare function queryLabels(httpClient: HttpClient): (options?: QueryLabelsOptions
|
|
18
|
+
export declare function queryLabels(httpClient: HttpClient): (options?: QueryLabelsOptions) => import("./contacts-v4-label.universal").LabelsQueryBuilder;
|
|
19
19
|
export { LabelType, SortOrder } from './contacts-v4-label.universal';
|
|
20
|
-
export { ContactLabel, ListLabelsRequest, Sorting, Paging, ListLabelsResponse, PagingMetadata, FindOrCreateLabelRequest, FindOrCreateLabelResponse, LabelsQuotaReached, ListLabelNamespacesRequest, ListLabelNamespacesResponse, ContactLabelNamespace, GetLabelRequest, GetLabelResponse, GetLabelByLegacyIdRequest, GetLabelByLegacyIdResponse, UpdateLabelRequest, UpdateLabelResponse, DeleteLabelRequest, DeleteLabelResponse, PurgeRequest, PurgeResponse, GdprListRequest, GdprListResponse, QueryLabelsRequest, Query, QueryLabelsResponse, FindOrCreateLabelResponseNonNullableFields, GetLabelResponseNonNullableFields, UpdateLabelResponseNonNullableFields, QueryLabelsResponseNonNullableFields, FindOrCreateLabelOptions, GetLabelOptions, RenameLabel, RenameLabelOptions, QueryLabelsOptions, LabelsQueryResult, LabelsQueryBuilder, } from './contacts-v4-label.universal';
|
|
20
|
+
export { ContactLabel, ListLabelsRequest, Sorting, Paging, ListLabelsResponse, PagingMetadata, FindOrCreateLabelRequest, FindOrCreateLabelResponse, LabelsQuotaReached, ListLabelNamespacesRequest, ListLabelNamespacesResponse, ContactLabelNamespace, GetLabelRequest, GetLabelResponse, GetLabelByLegacyIdRequest, GetLabelByLegacyIdResponse, UpdateLabelRequest, UpdateLabelResponse, DeleteLabelRequest, DeleteLabelResponse, PurgeRequest, PurgeResponse, GdprListRequest, GdprListResponse, QueryLabelsRequest, Query, QueryLabelsResponse, DomainEvent, DomainEventBodyOneOf, EntityCreatedEvent, EntityUpdatedEvent, EntityDeletedEvent, ActionEvent, FindOrCreateLabelResponseNonNullableFields, GetLabelResponseNonNullableFields, UpdateLabelResponseNonNullableFields, QueryLabelsResponseNonNullableFields, FindOrCreateLabelOptions, GetLabelOptions, RenameLabel, RenameLabelOptions, QueryLabelsOptions, LabelsQueryResult, LabelsQueryBuilder, } from './contacts-v4-label.universal';
|
|
@@ -3,7 +3,7 @@ export interface ContactLabel {
|
|
|
3
3
|
/**
|
|
4
4
|
* Label namespace.
|
|
5
5
|
*
|
|
6
|
-
* Labels created by site
|
|
6
|
+
* Labels created by site admins or 3rd-party apps
|
|
7
7
|
* are automatically assigned to the `custom` namespace.
|
|
8
8
|
* @readonly
|
|
9
9
|
*/
|
|
@@ -17,19 +17,19 @@ export interface ContactLabel {
|
|
|
17
17
|
/**
|
|
18
18
|
* Label key.
|
|
19
19
|
*
|
|
20
|
-
* `key` is generated when the label is created
|
|
21
|
-
*
|
|
20
|
+
* `key` is generated when the label is created.
|
|
21
|
+
* It cannot be modified, even if `displayName` is updated.
|
|
22
22
|
* @readonly
|
|
23
23
|
*/
|
|
24
24
|
key?: string;
|
|
25
25
|
/** Label display name shown in the Dashboard. */
|
|
26
26
|
displayName?: string;
|
|
27
27
|
/**
|
|
28
|
-
* Label type.
|
|
28
|
+
* Label type indicating how the label was created.
|
|
29
29
|
*
|
|
30
|
-
* - `SYSTEM`:
|
|
31
|
-
* - `USER_DEFINED`:
|
|
32
|
-
* - `WIX_APP_DEFINED`:
|
|
30
|
+
* - `SYSTEM`: Default system label for the Contact List.
|
|
31
|
+
* - `USER_DEFINED`: Label created by a site contributor or 3rd-party app.
|
|
32
|
+
* - `WIX_APP_DEFINED`: Label created by a Wix app.
|
|
33
33
|
* @readonly
|
|
34
34
|
*/
|
|
35
35
|
labelType?: LabelType;
|
|
@@ -164,8 +164,8 @@ export interface GetLabelRequest {
|
|
|
164
164
|
/**
|
|
165
165
|
* Label key.
|
|
166
166
|
*
|
|
167
|
-
* `key` is generated when the label is created
|
|
168
|
-
*
|
|
167
|
+
* `key` is generated when the label is created.
|
|
168
|
+
* It cannot be modified, even if `displayName` is updated.
|
|
169
169
|
*/
|
|
170
170
|
key: string;
|
|
171
171
|
/** Language for localization. */
|
|
@@ -251,6 +251,73 @@ export interface QueryLabelsResponse {
|
|
|
251
251
|
/** Details on the paged set of results returned. */
|
|
252
252
|
pagingMetadata?: PagingMetadata;
|
|
253
253
|
}
|
|
254
|
+
export interface DomainEvent extends DomainEventBodyOneOf {
|
|
255
|
+
createdEvent?: EntityCreatedEvent;
|
|
256
|
+
updatedEvent?: EntityUpdatedEvent;
|
|
257
|
+
deletedEvent?: EntityDeletedEvent;
|
|
258
|
+
actionEvent?: ActionEvent;
|
|
259
|
+
/**
|
|
260
|
+
* Unique event ID.
|
|
261
|
+
* Allows clients to ignore duplicate webhooks.
|
|
262
|
+
*/
|
|
263
|
+
id?: string;
|
|
264
|
+
/**
|
|
265
|
+
* Assumes actions are also always typed to an entity_type
|
|
266
|
+
* Example: wix.stores.catalog.product, wix.bookings.session, wix.payments.transaction
|
|
267
|
+
*/
|
|
268
|
+
entityFqdn?: string;
|
|
269
|
+
/**
|
|
270
|
+
* This is top level to ease client code dispatching of messages (switch on entity_fqdn+slug)
|
|
271
|
+
* This is although the created/updated/deleted notion is duplication of the oneof types
|
|
272
|
+
* Example: created/updated/deleted/started/completed/email_opened
|
|
273
|
+
*/
|
|
274
|
+
slug?: string;
|
|
275
|
+
/** ID of the entity associated with the event. */
|
|
276
|
+
entityId?: string;
|
|
277
|
+
/** Event timestamp. */
|
|
278
|
+
eventTime?: Date;
|
|
279
|
+
/**
|
|
280
|
+
* Whether the event was triggered as a result of a privacy regulation application
|
|
281
|
+
* (for example, GDPR).
|
|
282
|
+
*/
|
|
283
|
+
triggeredByAnonymizeRequest?: boolean | null;
|
|
284
|
+
/** If present, indicates the action that triggered the event. */
|
|
285
|
+
originatedFrom?: string | null;
|
|
286
|
+
/**
|
|
287
|
+
* A sequence number defining the order of updates to the underlying entity.
|
|
288
|
+
* For example, given that some entity was updated at 16:00 and than again at 16:01,
|
|
289
|
+
* it is guaranteed that the sequence number of the second update is strictly higher than the first.
|
|
290
|
+
* As the consumer, you can use this value to ensure that you handle messages in the correct order.
|
|
291
|
+
* To do so, you will need to persist this number on your end, and compare the sequence number from the
|
|
292
|
+
* message against the one you have stored. Given that the stored number is higher, you should ignore the message.
|
|
293
|
+
*/
|
|
294
|
+
entityEventSequence?: string | null;
|
|
295
|
+
}
|
|
296
|
+
/** @oneof */
|
|
297
|
+
export interface DomainEventBodyOneOf {
|
|
298
|
+
createdEvent?: EntityCreatedEvent;
|
|
299
|
+
updatedEvent?: EntityUpdatedEvent;
|
|
300
|
+
deletedEvent?: EntityDeletedEvent;
|
|
301
|
+
actionEvent?: ActionEvent;
|
|
302
|
+
}
|
|
303
|
+
export interface EntityCreatedEvent {
|
|
304
|
+
entityAsJson?: string;
|
|
305
|
+
}
|
|
306
|
+
export interface EntityUpdatedEvent {
|
|
307
|
+
/**
|
|
308
|
+
* Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
|
|
309
|
+
* This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.
|
|
310
|
+
* We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.
|
|
311
|
+
*/
|
|
312
|
+
currentEntityAsJson?: string;
|
|
313
|
+
}
|
|
314
|
+
export interface EntityDeletedEvent {
|
|
315
|
+
/** Entity that was deleted */
|
|
316
|
+
deletedEntityAsJson?: string | null;
|
|
317
|
+
}
|
|
318
|
+
export interface ActionEvent {
|
|
319
|
+
bodyAsJson?: string;
|
|
320
|
+
}
|
|
254
321
|
export interface FindOrCreateLabelResponseNonNullableFields {
|
|
255
322
|
label?: {
|
|
256
323
|
key: string;
|
|
@@ -8,10 +8,10 @@ var LabelType;
|
|
|
8
8
|
LabelType["SYSTEM"] = "SYSTEM";
|
|
9
9
|
LabelType["USER_DEFINED"] = "USER_DEFINED";
|
|
10
10
|
LabelType["WIX_APP_DEFINED"] = "WIX_APP_DEFINED";
|
|
11
|
-
})(LabelType
|
|
11
|
+
})(LabelType || (exports.LabelType = LabelType = {}));
|
|
12
12
|
var SortOrder;
|
|
13
13
|
(function (SortOrder) {
|
|
14
14
|
SortOrder["ASC"] = "ASC";
|
|
15
15
|
SortOrder["DESC"] = "DESC";
|
|
16
|
-
})(SortOrder
|
|
16
|
+
})(SortOrder || (exports.SortOrder = SortOrder = {}));
|
|
17
17
|
//# sourceMappingURL=contacts-v4-label.types.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"contacts-v4-label.types.js","sourceRoot":"","sources":["../../../src/contacts-v4-label.types.ts"],"names":[],"mappings":";;;AA+CA,IAAY,SAMX;AAND,WAAY,SAAS;IACnB,kDAAkD;IAClD,gCAAmB,CAAA;IACnB,8BAAiB,CAAA;IACjB,0CAA6B,CAAA;IAC7B,gDAAmC,CAAA;AACrC,CAAC,EANW,SAAS,
|
|
1
|
+
{"version":3,"file":"contacts-v4-label.types.js","sourceRoot":"","sources":["../../../src/contacts-v4-label.types.ts"],"names":[],"mappings":";;;AA+CA,IAAY,SAMX;AAND,WAAY,SAAS;IACnB,kDAAkD;IAClD,gCAAmB,CAAA;IACnB,8BAAiB,CAAA;IACjB,0CAA6B,CAAA;IAC7B,gDAAmC,CAAA;AACrC,CAAC,EANW,SAAS,yBAAT,SAAS,QAMpB;AA6BD,IAAY,SAGX;AAHD,WAAY,SAAS;IACnB,wBAAW,CAAA;IACX,0BAAa,CAAA;AACf,CAAC,EAHW,SAAS,yBAAT,SAAS,QAGpB"}
|