@wix/ditto-codegen-public 1.0.162 → 1.0.163
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/docs-output/api-docs/bookings-bookings-onBookingCanceled-doc.txt +169 -0
- package/dist/docs-output/api-docs/bookings-bookings-onBookingCreated-doc.txt +154 -0
- package/dist/docs-output/api-docs/crm-contacts-onContactCreated-doc.txt +87 -171
- package/dist/docs-output/api-docs/crm-contacts-onContactDeleted-doc.txt +58 -0
- package/dist/docs-output/api-docs/crm-contacts-onContactUpdated-doc.txt +99 -0
- package/dist/docs-output/api-docs/data-items-get-doc.txt +95 -54
- package/dist/docs-output/api-docs/data-items-insert-doc.txt +235 -43
- package/dist/docs-output/api-docs/data-items-onDataItemCreated-doc.txt +61 -0
- package/dist/docs-output/api-docs/data-items-onDataItemDeleted-doc.txt +58 -0
- package/dist/docs-output/api-docs/data-items-onDataItemUpdated-doc.txt +61 -0
- package/dist/docs-output/api-docs/data-items-query-doc.txt +507 -302
- package/dist/docs-output/api-docs/data-items-remove-doc.txt +120 -40
- package/dist/docs-output/api-docs/data-items-update-doc.txt +425 -46
- package/dist/docs-output/api-docs/ecom-cart-addToCart-doc.txt +488 -0
- package/dist/docs-output/api-docs/ecom-cart-createCart-doc.txt +518 -0
- package/dist/docs-output/api-docs/ecom-cart-createCheckout-doc.txt +155 -0
- package/dist/docs-output/api-docs/ecom-cart-deleteCart-doc.txt +92 -0
- package/dist/docs-output/api-docs/ecom-cart-getCart-doc.txt +376 -0
- package/dist/docs-output/api-docs/ecom-cart-onCartCreated-doc.txt +89 -80
- package/dist/docs-output/api-docs/ecom-cart-onCartUpdated-doc.txt +91 -81
- package/dist/docs-output/api-docs/ecom-cart-removeLineItemsFromCart-doc.txt +321 -0
- package/dist/docs-output/api-docs/ecom-cart-updateCart-doc.txt +539 -0
- package/dist/docs-output/api-docs/ecom-checkout-addToCheckout-doc.txt +1005 -0
- package/dist/docs-output/api-docs/ecom-checkout-createCheckout-doc.txt +1641 -0
- package/dist/docs-output/api-docs/ecom-checkout-getCheckout-doc.txt +1027 -0
- package/dist/docs-output/api-docs/ecom-checkout-onCheckoutCompleted-doc.txt +151 -0
- package/dist/docs-output/api-docs/ecom-checkout-onCheckoutCreated-doc.txt +150 -0
- package/dist/docs-output/api-docs/ecom-checkout-onCheckoutUpdated-doc.txt +150 -0
- package/dist/docs-output/api-docs/ecom-checkout-removeLineItemsFromCheckout-doc.txt +879 -0
- package/dist/docs-output/api-docs/ecom-checkout-updateCheckout-doc.txt +1011 -0
- package/dist/docs-output/api-docs/ecom-currentCart-getCurrentCart-doc.txt +368 -322
- package/dist/docs-output/api-docs/ecom-currentCart-updateCurrentCart-doc.txt +506 -321
- package/dist/docs-output/api-docs/ecom-orders-bulkUpdateOrders-doc.txt +1040 -0
- package/dist/docs-output/api-docs/ecom-orders-cancelOrder-doc.txt +608 -0
- package/dist/docs-output/api-docs/ecom-orders-getOrder-doc.txt +926 -0
- package/dist/docs-output/api-docs/ecom-orders-onOrderCreated-doc.txt +245 -0
- package/dist/docs-output/api-docs/ecom-orders-onOrderUpdated-doc.txt +244 -0
- package/dist/docs-output/api-docs/ecom-orders-searchOrders-doc.txt +670 -0
- package/dist/docs-output/api-docs/ecom-orders-updateOrder-doc.txt +818 -0
- package/dist/docs-output/api-docs/search-wixSiteSearch-search-doc.txt +162 -0
- package/dist/docs-output/api-docs/stores-collections-addProductsToCollection-doc.txt +86 -0
- package/dist/docs-output/api-docs/stores-collections-createCollection-doc.txt +108 -0
- package/dist/docs-output/api-docs/stores-collections-getCollection-doc.txt +102 -0
- package/dist/docs-output/api-docs/stores-collections-queryCollections-doc.txt +209 -0
- package/dist/docs-output/api-docs/stores-collections-removeProductsFromCollection-doc.txt +86 -0
- package/dist/docs-output/api-docs/stores-collections-updateCollection-doc.txt +110 -0
- package/dist/docs-output/api-docs/stores-inventory-queryInventory-doc.txt +98 -0
- package/dist/docs-output/api-docs/stores-inventory-updateInventoryVariants-doc.txt +249 -0
- package/dist/docs-output/api-docs/stores-inventoryItemsV3-queryInventoryItems-doc.txt +236 -0
- package/dist/docs-output/api-docs/stores-inventoryItemsV3-updateInventoryItem-doc.txt +139 -0
- package/dist/docs-output/api-docs/stores-productsV3-createProduct-doc.txt +1697 -0
- package/dist/docs-output/api-docs/stores-productsV3-deleteProduct-doc.txt +73 -0
- package/dist/docs-output/api-docs/stores-productsV3-getProduct-doc.txt +933 -0
- package/dist/docs-output/api-docs/stores-productsV3-onProductCreated-doc.txt +794 -0
- package/dist/docs-output/api-docs/stores-productsV3-onProductDeleted-doc.txt +794 -0
- package/dist/docs-output/api-docs/stores-productsV3-onProductUpdated-doc.txt +794 -0
- package/dist/docs-output/api-docs/stores-productsV3-queryProducts-doc.txt +1051 -0
- package/dist/docs-output/api-docs/stores-productsV3-searchProducts-doc.txt +1144 -0
- package/dist/docs-output/api-docs/stores-productsV3-updateProduct-doc.txt +1730 -1600
- package/dist/docs-output/api-docs/stores-readOnlyVariantsV3-queryVariants-doc.txt +290 -0
- package/dist/docs-output/api-docs/stores-readOnlyVariantsV3-searchVariants-doc.txt +353 -0
- package/dist/out.js +929 -79
- package/package.json +2 -2
- package/dist/docs-output/api-docs/data-items-onDataItemCreated.txt +0 -103
- package/dist/docs-output/api-docs/stores-product-onProductCreated-doc.txt +0 -118
- package/dist/docs-output/api-docs/stores-productV3-onProductCreated-doc.txt +0 -184
|
@@ -1,183 +1,99 @@
|
|
|
1
1
|
<crm_contacts_onContactCreated>
|
|
2
|
-
<
|
|
3
|
-
|
|
4
|
-
- Trigger welcome emails or onboarding automations when a contact is created
|
|
5
|
-
- Sync new contacts to external CRMs or marketing systems
|
|
6
|
-
- Enrich newly created contacts with third-party data
|
|
7
|
-
- Assign labels or segments to new contacts based on rules
|
|
8
|
-
- Log contact creation events for analytics and monitoring
|
|
9
|
-
</use_cases>
|
|
2
|
+
<description>
|
|
3
|
+
# This is a Webhook method
|
|
10
4
|
|
|
11
|
-
|
|
12
|
-
contacts.onContactCreated(handler)
|
|
13
|
-
</method_declaration>
|
|
14
|
-
<required_parameters>
|
|
15
|
-
- handler: function - handler(event: ContactCreatedEnvelope): void | Promise<void>
|
|
16
|
-
</required_parameters>
|
|
17
|
-
<optional_parameters>
|
|
18
|
-
None
|
|
19
|
-
</optional_parameters>
|
|
20
|
-
<import>import { contacts } from '@wix/crm'</import>
|
|
21
|
-
<types>
|
|
5
|
+
# Method name:
|
|
22
6
|
|
|
23
|
-
|
|
24
|
-
Properties:
|
|
25
|
-
- event: ContactCreatedEnvelope - The contact creation event envelope
|
|
7
|
+
crm.contacts.onContactCreated(handler: OnContactCreatedHandler)
|
|
26
8
|
|
|
27
|
-
|
|
28
|
-
Properties:
|
|
29
|
-
- entity: Contact - The created contact entity
|
|
30
|
-
- metadata: EventMetadata - Event metadata
|
|
9
|
+
# Method Link:
|
|
31
10
|
|
|
32
|
-
|
|
33
|
-
Properties:
|
|
34
|
-
- _createdDate: Date - Date and time the contact was created.
|
|
35
|
-
- _id: string - Contact ID
|
|
36
|
-
- _updatedDate: Date - Date and time the contact was last updated.
|
|
37
|
-
- info: ContactInfo - Contact's details.
|
|
38
|
-
- lastActivity: ContactActivity - Details about the contact's last action in the site.
|
|
39
|
-
- primaryEmail: PrimaryEmail - Contact's primary email details.
|
|
40
|
-
- primaryInfo: PrimaryContactInfo - Contact's primary phone and email.
|
|
41
|
-
- primaryPhone: PrimaryPhone - Contact's primary phone details.
|
|
42
|
-
- revision: number - Revision number, which increments by 1 each time the contact is updated. To prevent conflicting changes, the existing revision must be specified when updating a contact.
|
|
43
|
-
- source: ContactSource - Details about the contact's source.
|
|
11
|
+
https://dev.wix.com/docs/sdk/backend-modules/crm/contacts/on-contact-created
|
|
44
12
|
|
|
45
|
-
|
|
46
|
-
Properties:
|
|
47
|
-
- addresses: ContactAddressesWrapper - Contact's street addresses.
|
|
48
|
-
- birthdate: string - Birth date in YYYY-MM-DD format. For example, 2020-03-15.
|
|
49
|
-
- company: string - Contact's company name.
|
|
50
|
-
- emails: ContactEmailsWrapper - Contact's email addresses.
|
|
51
|
-
- extendedFields: ExtendedFieldsWrapper - Additional custom fields.
|
|
52
|
-
- jobTitle: string - Contact's job title.
|
|
53
|
-
- labelKeys?: LabelsWrapper - List of contact's labels.
|
|
54
|
-
- locale: string - Locale in IETF BCP 47 language tag format.
|
|
55
|
-
- name: ContactName - Contact's first and last name.
|
|
56
|
-
- phones: ContactPhonesWrapper - Contact's phone numbers.
|
|
57
|
-
- picture: ContactPicture - Contact's profile picture.
|
|
13
|
+
# Method Description:
|
|
58
14
|
|
|
59
|
-
|
|
60
|
-
Properties:
|
|
61
|
-
- items: ContactAddress[] - List of up to 50 addresses.
|
|
15
|
+
Triggered when a contact is created.
|
|
62
16
|
|
|
63
|
-
**ContactAddress**
|
|
64
|
-
Properties:
|
|
65
|
-
- _id: string - Street address ID.
|
|
66
|
-
- address: Address - Street adress
|
|
67
|
-
- tsg: AddressTag - Address type. UNTAGGED is shown as "Other" in the Contact List.
|
|
68
17
|
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
18
|
+
</description>
|
|
19
|
+
<usage>
|
|
20
|
+
import { contacts } from "@wix/crm";
|
|
72
21
|
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
**ExtendedFieldsWrapper**
|
|
81
|
-
Properties:
|
|
82
|
-
- items: Record<string, any> - Contact's extended fields, where each key is the field key, and each value is the field's value for the contact.
|
|
83
|
-
|
|
84
|
-
**LabelsWrapper**
|
|
85
|
-
Properties:
|
|
86
|
-
- items: string[] - List of contact label keys.
|
|
87
|
-
|
|
88
|
-
**ContactName**
|
|
89
|
-
Properties:
|
|
90
|
-
- first: string - Contact's first name.
|
|
91
|
-
- last: string - Contact's last name.
|
|
92
|
-
|
|
93
|
-
**ContactPhonesWrapper**
|
|
94
|
-
Properties:
|
|
95
|
-
- items: ContactPhone[] - List of up to 50 phone numbers.
|
|
96
|
-
|
|
97
|
-
**ContactActivity**
|
|
98
|
-
Properties:
|
|
99
|
-
- activityDate: Date - Date and time of the last action.
|
|
100
|
-
- activityType: ContactActivityType - Contact's last action in the site.
|
|
101
|
-
|
|
102
|
-
**PrimaryEmail**
|
|
103
|
-
Properties:
|
|
104
|
-
- deliverabilityStatus: EmailDeliverabilityStatus - Indicates last reported status of sent emails. Default: NOT_SET
|
|
105
|
-
- email: string - Primary email address.
|
|
106
|
-
- subscriptionStatus: SubscriptionStatus - Indicates the recipient's opt-in or opt-out status for marketing emails. Default: NOT_SET
|
|
107
|
-
|
|
108
|
-
**PrimaryContactInfo**
|
|
109
|
-
Properties:
|
|
110
|
-
- email: string - Primary email address.
|
|
111
|
-
- phone: string - Primary phone number.
|
|
112
|
-
|
|
113
|
-
**PrimaryPhone**
|
|
114
|
-
Properties:
|
|
115
|
-
- countryCode: string - Country code of the primary phone number in ISO-3166 alpha-2 format.
|
|
116
|
-
- e164Phone: string - Phone number in ITU E.164 format. Automatically generated using phone and countryCode when both values are valid.
|
|
117
|
-
- formattedPhone: string - Formatted phone. Automatically generated using phone and countryCode.
|
|
118
|
-
- phone: string - Primary phone number.
|
|
119
|
-
- subscriptionStatus: SubscriptionStatus - Indicates the recipient's opt-in or opt-out status for SMS messages.
|
|
120
|
-
|
|
121
|
-
**ContactSource**
|
|
122
|
-
Properties:
|
|
123
|
-
- appId: string - App ID, if the contact was created by an app.
|
|
124
|
-
- sourceType: ContactSourceType - Source type
|
|
125
|
-
|
|
126
|
-
**EventMetadata**
|
|
127
|
-
Properties:
|
|
128
|
-
- _id: string - Unique event ID
|
|
129
|
-
- entityEventSequence: string - Sequence number for entity changes ordering
|
|
130
|
-
- entityFqdn: string - Fully-qualified entity type (for example, wix.crm.contact)
|
|
131
|
-
- entityId: string - ID of the entity associated with the event
|
|
132
|
-
- eventTime: Date - Event timestamp in ISO-8601 format (UTC)
|
|
133
|
-
- eventType: string - Event type
|
|
134
|
-
- identity: IdentificationData - The identification type and identity data
|
|
135
|
-
- instanceId: string - App instance ID
|
|
136
|
-
- originatedFrom?: string - If present, indicates the action that triggered the event
|
|
137
|
-
- slug: string - Event slug (for example, created)
|
|
138
|
-
- triggeredByAnonymizeRequest?: boolean - Whether triggered by a privacy request
|
|
139
|
-
</types>
|
|
140
|
-
<important_notes>
|
|
141
|
-
- This method registers a callback function as an event handler
|
|
142
|
-
- When developing websites or building apps with Blocks, use a Velo backend event instead of this method
|
|
143
|
-
- The way you call this method differs depending on the framework you are working in:
|
|
144
|
-
- When using the CLI, run the generate command to add an event extension, and then call this method within the extension code
|
|
145
|
-
- When building a self-hosted app, subscribe your app to the relevant event, and then call this method on your server
|
|
146
|
-
- The handler function can be either synchronous (void) or asynchronous (Promise<void>)
|
|
147
|
-
- Triggered when a contact is created
|
|
148
|
-
- Required Permission: 'SCOPE.DC-CONTACTS.READ-CONTACTS'
|
|
149
|
-
</important_notes>
|
|
150
|
-
|
|
151
|
-
<event_triggers>
|
|
152
|
-
- Contact Created: Triggered automatically when a new contact is successfully created in CRM
|
|
153
|
-
</event_triggers>
|
|
154
|
-
<example_usage>
|
|
155
|
-
```typescript
|
|
156
|
-
import { contacts } from '@wix/crm';
|
|
157
|
-
|
|
158
|
-
// Register event handler for contact creation
|
|
159
|
-
export default contacts.onContactCreated((event) => {
|
|
160
|
-
const created = event.entity;
|
|
161
|
-
console.log('New contact created:', created._id);
|
|
162
|
-
console.log('Primary email:', created.primaryInfo?.email);
|
|
163
|
-
});
|
|
164
|
-
|
|
165
|
-
// Async handler example
|
|
166
|
-
export default contacts.onContactCreated(async (event) => {
|
|
167
|
-
const created = event.entity;
|
|
168
|
-
await syncToExternalCrm(created._id, created);
|
|
169
|
-
});
|
|
22
|
+
contacts.onContactCreated((event) => {
|
|
23
|
+
// handle your event here
|
|
24
|
+
});
|
|
25
|
+
|
|
26
|
+
</usage>
|
|
27
|
+
<type_definition>
|
|
170
28
|
```
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
-
|
|
176
|
-
-
|
|
177
|
-
-
|
|
178
|
-
-
|
|
179
|
-
-
|
|
180
|
-
-
|
|
181
|
-
|
|
182
|
-
|
|
29
|
+
Method: crm.contacts.onContactCreated(handler)
|
|
30
|
+
Description: Triggered when a contact is created.
|
|
31
|
+
Method parameters:
|
|
32
|
+
param name: handler | type: OnContactCreatedHandler | description: none
|
|
33
|
+
- name: event | type: ContactCreatedEnvelope | description: none
|
|
34
|
+
- name: entity | type: Contact | description: none
|
|
35
|
+
- name: info | type: ContactInfo | description: Contact's details.
|
|
36
|
+
- name: addresses | type: ContactAddressesWrapper | description: Contact's street addresses.
|
|
37
|
+
- name: items | type: Array<ContactAddress> | description: List of up to 50 addresses.
|
|
38
|
+
- name: address | type: Address | description: Street address.
|
|
39
|
+
- name: addressLine1 | type: string | description: Main address line, usually street and number, as free text.
|
|
40
|
+
- name: addressLine2 | type: string | description: Free text providing more detailed address information, such as apartment, suite, or floor.
|
|
41
|
+
- name: city | type: string | description: City name.
|
|
42
|
+
- name: country | type: string | description: 2-letter country code in an [ISO-3166 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) format.
|
|
43
|
+
- name: postalCode | type: string | description: Postal or zip code.
|
|
44
|
+
- name: subdivision | type: string | description: Code for a subdivision (such as state, prefecture, or province) in an [ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2) format.
|
|
45
|
+
- ONE-OF:
|
|
46
|
+
- name: addressLine | type: string | description: Main address line, usually street and number, as free text.
|
|
47
|
+
- name: streetAddress | type: StreetAddress | description: Street address object, with number and name in separate fields.
|
|
48
|
+
- name: name | type: string | description: Street name.
|
|
49
|
+
- name: number | type: string | description: Street number.
|
|
50
|
+
- name: tag | type: AddressTag | description: Address type. `UNTAGGED` is shown as "Other" in the Contact List.
|
|
51
|
+
enum: BILLING, HOME, SHIPPING, UNTAGGED, WORK
|
|
52
|
+
- name: birthdate | type: string | description: Birth date in `YYYY-MM-DD` format. For example, `2020-03-15`.
|
|
53
|
+
- name: company | type: string | description: Contact's company name.
|
|
54
|
+
- name: emails | type: ContactEmailsWrapper | description: Contact's email addresses.
|
|
55
|
+
- name: items | type: Array<ContactEmail> | description: List of up to 50 email addresses.
|
|
56
|
+
- name: email | type: string | description: Email address.
|
|
57
|
+
- name: primary | type: boolean | description: Indicates whether this is the contact's primary email address. When changing `primary` to `true` for an email, the contact's other emails become `false`. Changing the primary email of a contact also affects the subscription status to marketing emails that are decided based on the primary email.
|
|
58
|
+
- name: tag | type: EmailTag | description: Email type. `UNTAGGED` is shown as "Other" in the Contact List.
|
|
59
|
+
enum: HOME, MAIN, UNTAGGED, WORK
|
|
60
|
+
- name: extendedFields | type: ExtendedFieldsWrapper | description: Additional custom fields. Empty fields are not returned.
|
|
61
|
+
- name: items | type: Record<string, any> | description: Contact's extended fields, where each key is the field key, and each value is the field's value for the contact. To view and manage extended fields, use the Extended Fields API.
|
|
62
|
+
- name: jobTitle | type: string | description: Contact's job title.
|
|
63
|
+
- name: labelKeys | type: LabelsWrapper | description: List of contact's labels. Labels are used to organize contacts. Labels can be added and removed using Label Contact and Unlabel Contact, respectively. To view or manage contact labels, use the Labels API.
|
|
64
|
+
- name: items | type: Array<string> | description: List of contact label keys. Contact labels help categorize contacts. Label keys must exist to be added to the contact. Contact labels can be created or retrieved with Find or Create Label or List Labels.
|
|
65
|
+
- name: locale | type: string | description: Locale in [IETF BCP 47 language tag](https://en.wikipedia.org/wiki/IETF_language_tag) format. Typically, this is a lowercase 2-letter language code, followed by a hyphen, followed by an uppercase 2-letter country code. For example, `en-US` for U.S. English, and `de-DE` for Germany German.
|
|
66
|
+
- name: name | type: ContactName | description: Contact's first and last name.
|
|
67
|
+
- name: first | type: string | description: Contact's first name.
|
|
68
|
+
- name: last | type: string | description: Contact's last name.
|
|
69
|
+
- name: phones | type: ContactPhonesWrapper | description: Contact's phone numbers.
|
|
70
|
+
- name: items | type: Array<ContactPhone> | description: List of up to 50 phone numbers.
|
|
71
|
+
- name: countryCode | type: string | description: [ISO-3166 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code.
|
|
72
|
+
- name: phone | type: string | description: Phone number.
|
|
73
|
+
- name: primary | type: boolean | description: Indicates whether this is the contact's primary phone number. When changing `primary` to `true` for a phone, the contact's `primary` field for other phones becomes `false`. Changing the primary phone number also affects the subscription status to SMS messages that are decided based on the primary phone.
|
|
74
|
+
- name: tag | type: PhoneTag | description: Phone type. `UNTAGGED` is shown as "Other" in the Contact List.
|
|
75
|
+
enum: FAX, HOME, MAIN, MOBILE, UNTAGGED, WORK
|
|
76
|
+
- name: picture | type: ContactPicture | description: Contact's profile picture.
|
|
77
|
+
- name: image | type: string | description: Image. This can contain an image URL or a Wix Media image GUID.
|
|
78
|
+
- name: metadata | type: EventMetadata | description: none
|
|
79
|
+
- name: _id | type: string | description: Event GUID. With this GUID you can easily spot duplicated events and ignore them.
|
|
80
|
+
- name: entityEventSequence | type: string | description: A sequence number that indicates the order of updates to an entity. For example, if an entity was updated at 16:00 and then again at 16:01, the second update will always have a higher sequence number. You can use this number to make sure you're handling updates in the right order. Just save the latest sequence number on your end and compare it to the one in each new message. If the new message has an older (lower) number, you can safely ignore it.
|
|
81
|
+
- name: entityFqdn | type: string | description: Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities. For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.
|
|
82
|
+
- name: entityId | type: string | description: GUID of the entity associated with the event.
|
|
83
|
+
- name: eventTime | type: Date | description: Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`.
|
|
84
|
+
- name: eventType | type: string | description: Event type.
|
|
85
|
+
- name: identity | type: IdentificationData | description: The identification type and identity data.
|
|
86
|
+
- ONE-OF:
|
|
87
|
+
- name: anonymousVisitorId | type: string | description: GUID of a site visitor that has not logged in to the site.
|
|
88
|
+
- name: appId | type: string | description: GUID of an app.
|
|
89
|
+
- name: memberId | type: string | description: GUID of a site visitor that has logged in to the site.
|
|
90
|
+
- name: wixUserId | type: string | description: GUID of a Wix user (site owner, contributor, etc.).
|
|
91
|
+
- name: instanceId | type: string | description: App instance GUID.
|
|
92
|
+
- name: originatedFrom | type: string | description: If present, indicates the action that triggered the event.
|
|
93
|
+
- name: slug | type: string | description: Event action name, placed at the top level to make it easier for users to dispatch messages. For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.
|
|
94
|
+
- name: triggeredByAnonymizeRequest | type: boolean | description: Whether the event was triggered as a result of a privacy regulation application (for example, GDPR).
|
|
95
|
+
Return type: PRIMITIVE<void>
|
|
183
96
|
|
|
97
|
+
```
|
|
98
|
+
</type_definition>
|
|
99
|
+
</crm_contacts_onContactCreated>
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
<crm_contacts_onContactDeleted>
|
|
2
|
+
<description>
|
|
3
|
+
# This is a Webhook method
|
|
4
|
+
|
|
5
|
+
# Method name:
|
|
6
|
+
|
|
7
|
+
crm.contacts.onContactDeleted(handler: OnContactDeletedHandler)
|
|
8
|
+
|
|
9
|
+
# Method Link:
|
|
10
|
+
|
|
11
|
+
https://dev.wix.com/docs/sdk/backend-modules/crm/contacts/on-contact-deleted
|
|
12
|
+
|
|
13
|
+
# Method Description:
|
|
14
|
+
|
|
15
|
+
Triggered when a contact is deleted.
|
|
16
|
+
|
|
17
|
+
If a contact is deleted as part of a merge, the `originatedFrom` property is sent as `merge`.
|
|
18
|
+
Otherwise, `originatedFrom` isn't returned.
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
</description>
|
|
22
|
+
<usage>
|
|
23
|
+
import { contacts } from "@wix/crm";
|
|
24
|
+
|
|
25
|
+
contacts.onContactDeleted((event) => {
|
|
26
|
+
// handle your event here
|
|
27
|
+
});
|
|
28
|
+
|
|
29
|
+
</usage>
|
|
30
|
+
<type_definition>
|
|
31
|
+
```
|
|
32
|
+
Method: crm.contacts.onContactDeleted(handler)
|
|
33
|
+
Description: Triggered when a contact is deleted. If a contact is deleted as part of a merge, the `originatedFrom` property is sent as `merge`. Otherwise, `originatedFrom` isn't returned.
|
|
34
|
+
Method parameters:
|
|
35
|
+
param name: handler | type: OnContactDeletedHandler | description: none
|
|
36
|
+
- name: event | type: ContactDeletedEnvelope | description: none
|
|
37
|
+
- name: metadata | type: EventMetadata | description: none
|
|
38
|
+
- name: _id | type: string | description: Event GUID. With this GUID you can easily spot duplicated events and ignore them.
|
|
39
|
+
- name: entityEventSequence | type: string | description: A sequence number that indicates the order of updates to an entity. For example, if an entity was updated at 16:00 and then again at 16:01, the second update will always have a higher sequence number. You can use this number to make sure you're handling updates in the right order. Just save the latest sequence number on your end and compare it to the one in each new message. If the new message has an older (lower) number, you can safely ignore it.
|
|
40
|
+
- name: entityFqdn | type: string | description: Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities. For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.
|
|
41
|
+
- name: entityId | type: string | description: GUID of the entity associated with the event.
|
|
42
|
+
- name: eventTime | type: Date | description: Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`.
|
|
43
|
+
- name: eventType | type: string | description: Event type.
|
|
44
|
+
- name: identity | type: IdentificationData | description: The identification type and identity data.
|
|
45
|
+
- ONE-OF:
|
|
46
|
+
- name: anonymousVisitorId | type: string | description: GUID of a site visitor that has not logged in to the site.
|
|
47
|
+
- name: appId | type: string | description: GUID of an app.
|
|
48
|
+
- name: memberId | type: string | description: GUID of a site visitor that has logged in to the site.
|
|
49
|
+
- name: wixUserId | type: string | description: GUID of a Wix user (site owner, contributor, etc.).
|
|
50
|
+
- name: instanceId | type: string | description: App instance GUID.
|
|
51
|
+
- name: originatedFrom | type: string | description: If present, indicates the action that triggered the event.
|
|
52
|
+
- name: slug | type: string | description: Event action name, placed at the top level to make it easier for users to dispatch messages. For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.
|
|
53
|
+
- name: triggeredByAnonymizeRequest | type: boolean | description: Whether the event was triggered as a result of a privacy regulation application (for example, GDPR).
|
|
54
|
+
Return type: PRIMITIVE<void>
|
|
55
|
+
|
|
56
|
+
```
|
|
57
|
+
</type_definition>
|
|
58
|
+
</crm_contacts_onContactDeleted>
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
<crm_contacts_onContactUpdated>
|
|
2
|
+
<description>
|
|
3
|
+
# This is a Webhook method
|
|
4
|
+
|
|
5
|
+
# Method name:
|
|
6
|
+
|
|
7
|
+
crm.contacts.onContactUpdated(handler: OnContactUpdatedHandler)
|
|
8
|
+
|
|
9
|
+
# Method Link:
|
|
10
|
+
|
|
11
|
+
https://dev.wix.com/docs/sdk/backend-modules/crm/contacts/on-contact-updated
|
|
12
|
+
|
|
13
|
+
# Method Description:
|
|
14
|
+
|
|
15
|
+
Triggered when a contact is updated.
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
</description>
|
|
19
|
+
<usage>
|
|
20
|
+
import { contacts } from "@wix/crm";
|
|
21
|
+
|
|
22
|
+
contacts.onContactUpdated((event) => {
|
|
23
|
+
// handle your event here
|
|
24
|
+
});
|
|
25
|
+
|
|
26
|
+
</usage>
|
|
27
|
+
<type_definition>
|
|
28
|
+
```
|
|
29
|
+
Method: crm.contacts.onContactUpdated(handler)
|
|
30
|
+
Description: Triggered when a contact is updated.
|
|
31
|
+
Method parameters:
|
|
32
|
+
param name: handler | type: OnContactUpdatedHandler | description: none
|
|
33
|
+
- name: event | type: ContactUpdatedEnvelope | description: none
|
|
34
|
+
- name: entity | type: Contact | description: none
|
|
35
|
+
- name: info | type: ContactInfo | description: Contact's details.
|
|
36
|
+
- name: addresses | type: ContactAddressesWrapper | description: Contact's street addresses.
|
|
37
|
+
- name: items | type: Array<ContactAddress> | description: List of up to 50 addresses.
|
|
38
|
+
- name: address | type: Address | description: Street address.
|
|
39
|
+
- name: addressLine1 | type: string | description: Main address line, usually street and number, as free text.
|
|
40
|
+
- name: addressLine2 | type: string | description: Free text providing more detailed address information, such as apartment, suite, or floor.
|
|
41
|
+
- name: city | type: string | description: City name.
|
|
42
|
+
- name: country | type: string | description: 2-letter country code in an [ISO-3166 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) format.
|
|
43
|
+
- name: postalCode | type: string | description: Postal or zip code.
|
|
44
|
+
- name: subdivision | type: string | description: Code for a subdivision (such as state, prefecture, or province) in an [ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2) format.
|
|
45
|
+
- ONE-OF:
|
|
46
|
+
- name: addressLine | type: string | description: Main address line, usually street and number, as free text.
|
|
47
|
+
- name: streetAddress | type: StreetAddress | description: Street address object, with number and name in separate fields.
|
|
48
|
+
- name: name | type: string | description: Street name.
|
|
49
|
+
- name: number | type: string | description: Street number.
|
|
50
|
+
- name: tag | type: AddressTag | description: Address type. `UNTAGGED` is shown as "Other" in the Contact List.
|
|
51
|
+
enum: BILLING, HOME, SHIPPING, UNTAGGED, WORK
|
|
52
|
+
- name: birthdate | type: string | description: Birth date in `YYYY-MM-DD` format. For example, `2020-03-15`.
|
|
53
|
+
- name: company | type: string | description: Contact's company name.
|
|
54
|
+
- name: emails | type: ContactEmailsWrapper | description: Contact's email addresses.
|
|
55
|
+
- name: items | type: Array<ContactEmail> | description: List of up to 50 email addresses.
|
|
56
|
+
- name: email | type: string | description: Email address.
|
|
57
|
+
- name: primary | type: boolean | description: Indicates whether this is the contact's primary email address. When changing `primary` to `true` for an email, the contact's other emails become `false`. Changing the primary email of a contact also affects the subscription status to marketing emails that are decided based on the primary email.
|
|
58
|
+
- name: tag | type: EmailTag | description: Email type. `UNTAGGED` is shown as "Other" in the Contact List.
|
|
59
|
+
enum: HOME, MAIN, UNTAGGED, WORK
|
|
60
|
+
- name: extendedFields | type: ExtendedFieldsWrapper | description: Additional custom fields. Empty fields are not returned.
|
|
61
|
+
- name: items | type: Record<string, any> | description: Contact's extended fields, where each key is the field key, and each value is the field's value for the contact. To view and manage extended fields, use the Extended Fields API.
|
|
62
|
+
- name: jobTitle | type: string | description: Contact's job title.
|
|
63
|
+
- name: labelKeys | type: LabelsWrapper | description: List of contact's labels. Labels are used to organize contacts. Labels can be added and removed using Label Contact and Unlabel Contact, respectively. To view or manage contact labels, use the Labels API.
|
|
64
|
+
- name: items | type: Array<string> | description: List of contact label keys. Contact labels help categorize contacts. Label keys must exist to be added to the contact. Contact labels can be created or retrieved with Find or Create Label or List Labels.
|
|
65
|
+
- name: locale | type: string | description: Locale in [IETF BCP 47 language tag](https://en.wikipedia.org/wiki/IETF_language_tag) format. Typically, this is a lowercase 2-letter language code, followed by a hyphen, followed by an uppercase 2-letter country code. For example, `en-US` for U.S. English, and `de-DE` for Germany German.
|
|
66
|
+
- name: name | type: ContactName | description: Contact's first and last name.
|
|
67
|
+
- name: first | type: string | description: Contact's first name.
|
|
68
|
+
- name: last | type: string | description: Contact's last name.
|
|
69
|
+
- name: phones | type: ContactPhonesWrapper | description: Contact's phone numbers.
|
|
70
|
+
- name: items | type: Array<ContactPhone> | description: List of up to 50 phone numbers.
|
|
71
|
+
- name: countryCode | type: string | description: [ISO-3166 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code.
|
|
72
|
+
- name: phone | type: string | description: Phone number.
|
|
73
|
+
- name: primary | type: boolean | description: Indicates whether this is the contact's primary phone number. When changing `primary` to `true` for a phone, the contact's `primary` field for other phones becomes `false`. Changing the primary phone number also affects the subscription status to SMS messages that are decided based on the primary phone.
|
|
74
|
+
- name: tag | type: PhoneTag | description: Phone type. `UNTAGGED` is shown as "Other" in the Contact List.
|
|
75
|
+
enum: FAX, HOME, MAIN, MOBILE, UNTAGGED, WORK
|
|
76
|
+
- name: picture | type: ContactPicture | description: Contact's profile picture.
|
|
77
|
+
- name: image | type: string | description: Image. This can contain an image URL or a Wix Media image GUID.
|
|
78
|
+
- name: metadata | type: EventMetadata | description: none
|
|
79
|
+
- name: _id | type: string | description: Event GUID. With this GUID you can easily spot duplicated events and ignore them.
|
|
80
|
+
- name: entityEventSequence | type: string | description: A sequence number that indicates the order of updates to an entity. For example, if an entity was updated at 16:00 and then again at 16:01, the second update will always have a higher sequence number. You can use this number to make sure you're handling updates in the right order. Just save the latest sequence number on your end and compare it to the one in each new message. If the new message has an older (lower) number, you can safely ignore it.
|
|
81
|
+
- name: entityFqdn | type: string | description: Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities. For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.
|
|
82
|
+
- name: entityId | type: string | description: GUID of the entity associated with the event.
|
|
83
|
+
- name: eventTime | type: Date | description: Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`.
|
|
84
|
+
- name: eventType | type: string | description: Event type.
|
|
85
|
+
- name: identity | type: IdentificationData | description: The identification type and identity data.
|
|
86
|
+
- ONE-OF:
|
|
87
|
+
- name: anonymousVisitorId | type: string | description: GUID of a site visitor that has not logged in to the site.
|
|
88
|
+
- name: appId | type: string | description: GUID of an app.
|
|
89
|
+
- name: memberId | type: string | description: GUID of a site visitor that has logged in to the site.
|
|
90
|
+
- name: wixUserId | type: string | description: GUID of a Wix user (site owner, contributor, etc.).
|
|
91
|
+
- name: instanceId | type: string | description: App instance GUID.
|
|
92
|
+
- name: originatedFrom | type: string | description: If present, indicates the action that triggered the event.
|
|
93
|
+
- name: slug | type: string | description: Event action name, placed at the top level to make it easier for users to dispatch messages. For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.
|
|
94
|
+
- name: triggeredByAnonymizeRequest | type: boolean | description: Whether the event was triggered as a result of a privacy regulation application (for example, GDPR).
|
|
95
|
+
Return type: PRIMITIVE<void>
|
|
96
|
+
|
|
97
|
+
```
|
|
98
|
+
</type_definition>
|
|
99
|
+
</crm_contacts_onContactUpdated>
|
|
@@ -1,64 +1,105 @@
|
|
|
1
1
|
<data_items_get>
|
|
2
|
-
<
|
|
3
|
-
|
|
4
|
-
- Display detailed information about a specific record (e.g., user profile, product details)
|
|
5
|
-
- Fetch item data before performing updates or validation
|
|
6
|
-
- Load specific content for viewing or editing
|
|
7
|
-
- Retrieve configuration or settings stored in single-item collections
|
|
8
|
-
- Get referenced item IDs for additional queries
|
|
9
|
-
- Fetch data for specific records based on user selection
|
|
10
|
-
- Access items by known identifiers from external systems
|
|
11
|
-
</use_cases>
|
|
12
|
-
|
|
13
|
-
<usage>
|
|
2
|
+
<description>
|
|
3
|
+
# Method name:
|
|
14
4
|
|
|
5
|
+
data.items.get(dataCollectionId: string, itemId: string, options: WixDataReadWithProjectionOptions)
|
|
6
|
+
|
|
7
|
+
# Method Link:
|
|
8
|
+
|
|
9
|
+
https://dev.wix.com/docs/sdk/backend-modules/data/items/get
|
|
10
|
+
|
|
11
|
+
# Method Description:
|
|
12
|
+
|
|
13
|
+
Retrieves an item from a collection.
|
|
14
|
+
|
|
15
|
+
The `get()` method returns a Promise that resolves to the item with ID
|
|
16
|
+
`itemId` from the specified collection, or `null` if the `itemId` is not
|
|
17
|
+
found. The Promise is rejected if the current user does not have read
|
|
18
|
+
permissions for the collection.
|
|
19
|
+
|
|
20
|
+
If the specified collection contains reference fields, the ID of the
|
|
21
|
+
referenced item is returned. To return the values of the referenced items
|
|
22
|
+
use `query()` and `include()`.
|
|
23
|
+
|
|
24
|
+
If the `get()` method is passed the ID of [a hidden item](https://support.wix.com/en/article/cms-controlling-live-site-item-visibility-from-your-collection), it returns null.
|
|
25
|
+
|
|
26
|
+
Calling the `get()` method triggers the [`beforeGet()`](https://dev.wix.com/docs/velo/api-reference/wix-data/hooks/before-get) and [`afterGet()`](https://dev.wix.com/docs/velo/api-reference/wix-data/hooks/after-get) hooks if they have been defined.
|
|
27
|
+
|
|
28
|
+
> **Notes:**
|
|
29
|
+
> - When using the `query()` or `get()` methods or another data retrieval method immediately following a change to your database collection, the data retrieved may not contain your most recent changes. Learn more about [Wix Data and eventual consistency](https://dev.wix.com/docs/sdk/backend-modules/data/eventual-consistency). To solve this, you can use the `setTimeout()` method to delay retrieving data following any changes to your database collection.
|
|
30
|
+
> - To speed up data retrieval, the results of certain data queries are cached. Learn more about [caching data query results](https://dev.wix.com/docs/develop-websites/articles/databases/wix-data/data-api/about-caching-data-query-results).
|
|
31
|
+
> - An `itemId` is required to retrieve an item even from a [single-item collection](https://support.wix.com/en/article/cms-adding-and-setting-up-a-single-item-collection).
|
|
32
|
+
|
|
33
|
+
# Method Permissions:
|
|
34
|
+
|
|
35
|
+
- Read Data Items
|
|
36
|
+
|
|
37
|
+
# Method Permissions Scopes IDs:
|
|
38
|
+
|
|
39
|
+
- SCOPE.DC-DATA.READ
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
# Method Code Examples:
|
|
44
|
+
|
|
45
|
+
## Get an item from a collection
|
|
46
|
+
|
|
47
|
+
```javascript
|
|
15
48
|
import { items } from "@wix/data";
|
|
16
49
|
|
|
17
50
|
async function getItem() {
|
|
18
|
-
|
|
19
|
-
|
|
51
|
+
const item = await items.get("myCollection", "00001");
|
|
52
|
+
console.log(item);
|
|
20
53
|
}
|
|
21
54
|
|
|
22
|
-
/*
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
const item = await items.get("myCollection", "00001", {
|
|
38
|
-
fields: ["title", "first_name", "last_name"]
|
|
39
|
-
});
|
|
40
|
-
// Returns only the specified fields plus system fields (_id, _owner, etc.)
|
|
41
|
-
}
|
|
42
|
-
</usage>
|
|
55
|
+
/* item is:
|
|
56
|
+
*
|
|
57
|
+
* {
|
|
58
|
+
* "_id": "00001",
|
|
59
|
+
* "_owner": "ffdkj9c2-df8g-f9ke-lk98-4kjhfr89keedb",
|
|
60
|
+
* "_createdDate": "2017-05-24T12:33:18.938Z",
|
|
61
|
+
* "_updatedDate": "2017-05-24T12:33:18.938Z",
|
|
62
|
+
* "title": "Mr.",
|
|
63
|
+
* "first_name": "John",
|
|
64
|
+
* "last_name": "Doe"
|
|
65
|
+
* }
|
|
66
|
+
*/
|
|
67
|
+
```
|
|
68
|
+
|
|
69
|
+
|
|
43
70
|
|
|
71
|
+
## default
|
|
72
|
+
|
|
73
|
+
```javascript
|
|
74
|
+
try {
|
|
75
|
+
const result = await items.get("collection-0.6451284333427125", "6892593d-d57f-428d-bc53-3f0870a1beef", {});
|
|
76
|
+
return result;
|
|
77
|
+
} catch (error) {
|
|
78
|
+
console.error(error);
|
|
79
|
+
throw error;
|
|
80
|
+
}
|
|
81
|
+
```
|
|
82
|
+
</description>
|
|
44
83
|
<type_definition>
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
</data_items_get>
|
|
84
|
+
```
|
|
85
|
+
Method: data.items.get(dataCollectionId, itemId, options)
|
|
86
|
+
Description: Retrieves an item from a collection. The `get()` method returns a Promise that resolves to the item with GUID `itemId` from the specified collection, or `null` if the `itemId` is not found. The Promise is rejected if the current user does not have read permissions for the collection. If the specified collection contains reference fields, the GUID of the referenced item is returned. To return the values of the referenced items use `query()` and `include()`. If the `get()` method is passed the GUID of [a hidden item](https://support.wix.com/en/article/cms-controlling-live-site-item-visibility-from-your-collection), it returns null. Calling the `get()` method triggers the [`beforeGet()`](https://dev.wix.com/docs/velo/api-reference/wix-data/hooks/before-get) and [`afterGet()`](https://dev.wix.com/docs/velo/api-reference/wix-data/hooks/after-get) hooks if they have been defined. > **Notes:** > - When using the `query()` or `get()` methods or another data retrieval method immediately following a change to your database collection, the data retrieved may not contain your most recent changes. Learn more about [Wix Data and eventual consistency](https://dev.wix.com/docs/sdk/backend-modules/data/eventual-consistency). To solve this, you can use the `setTimeout()` method to delay retrieving data following any changes to your database collection. > - To speed up data retrieval, the results of certain data queries are cached. Learn more about [caching data query results](https://dev.wix.com/docs/develop-websites/articles/databases/wix-data/data-api/about-caching-data-query-results). > - An `itemId` is required to retrieve an item even from a [single-item collection](https://support.wix.com/en/article/cms-adding-and-setting-up-a-single-item-collection).
|
|
87
|
+
Method parameters:
|
|
88
|
+
param name: dataCollectionId | type: string | description: GUID of the collection item belongs to.
|
|
89
|
+
param name: itemId | type: string | description: GUID of the data item to retrieve. | required: true
|
|
90
|
+
param name: options | type: WixDataReadWithProjectionOptions | description: Options to use when processing this operation.
|
|
91
|
+
- name: appOptions | type: Record<string, any> | description: Options for [querying Wix app collections](https://dev.wix.com/docs/develop-websites/articles/wix-apps/wix-app-collections/querying-wix-app-collections).
|
|
92
|
+
- name: consistentRead | type: boolean | description: When `true`, reads data from the primary database instance. This decreases performance but ensures data retrieved is up-to-date even immediately after an update. Learn more about [Wix Data and eventual consistency](https://dev.wix.com/docs/sdk/backend-modules/data/eventual-consistency).
|
|
93
|
+
- name: fields | type: Array<string> | description: Lists of fields to return in a result.
|
|
94
|
+
- name: language | type: string | description: Language to translate result text into, in [IETF BCP 47 language tag](https://en.wikipedia.org/wiki/IETF_language_tag) format. If provided, the result text is returned in the specified language. If not provided, the result text is not translated. > **Note:** Translation for the specified language must be enabled for the collection in [Wix Multilingual](https://www.wix.com/app-market/wix-multilingual).
|
|
95
|
+
- name: showDrafts | type: boolean | description: When `true`, operations include draft items. Read operations include draft items in their response, and write operations modify draft items. Default: `false`.
|
|
96
|
+
- name: suppressHooks | type: boolean | description: Prevents hooks from running for the operation. Can only be used in the [backend code of a Wix site](https://dev.wix.com/docs/develop-websites/articles/coding-with-velo/backend-code/about-the-site-backend). Default: `false`.
|
|
97
|
+
Return type: PROMISE<WixDataItem>
|
|
98
|
+
- name: _createdDate | type: Date | description: Date and time the item was added to the collection.
|
|
99
|
+
- name: _id | type: string | description: Data item GUID.
|
|
100
|
+
- name: _owner | type: string | description: GUID of the user who created the item. Can be modified with site owner permissions.
|
|
101
|
+
- name: _updatedDate | type: Date | description: Date and time the item was last modified. When the item is first inserted, `_createdDate` and `_updatedDate` have the same value.
|
|
64
102
|
|
|
103
|
+
```
|
|
104
|
+
</type_definition>
|
|
105
|
+
</data_items_get>
|