@segment/action-destinations 3.171.0 → 3.173.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.
- package/dist/destinations/acoustic/Utility/eventprocessing.d.ts +1 -5
- package/dist/destinations/acoustic/Utility/eventprocessing.js +66 -62
- package/dist/destinations/acoustic/Utility/eventprocessing.js.map +1 -1
- package/dist/destinations/acoustic/Utility/tablemaintutilities.d.ts +13 -1
- package/dist/destinations/acoustic/Utility/tablemaintutilities.js +108 -59
- package/dist/destinations/acoustic/Utility/tablemaintutilities.js.map +1 -1
- package/dist/destinations/acoustic/generated-types.d.ts +5 -4
- package/dist/destinations/acoustic/index.js +18 -26
- package/dist/destinations/acoustic/index.js.map +1 -1
- package/dist/destinations/acoustic/receiveEvents/generated-types.d.ts +6 -0
- package/dist/destinations/acoustic/receiveEvents/index.js +33 -19
- package/dist/destinations/acoustic/receiveEvents/index.js.map +1 -1
- package/dist/destinations/canny-functions/constants/api.d.ts +1 -0
- package/dist/destinations/canny-functions/constants/api.js +5 -0
- package/dist/destinations/canny-functions/constants/api.js.map +1 -0
- package/dist/destinations/canny-functions/constants/traits.d.ts +2 -0
- package/dist/destinations/canny-functions/constants/traits.js +6 -0
- package/dist/destinations/canny-functions/constants/traits.js.map +1 -0
- package/dist/destinations/canny-functions/generated-types.d.ts +3 -0
- package/dist/destinations/canny-functions/generated-types.js +3 -0
- package/dist/destinations/canny-functions/generated-types.js.map +1 -0
- package/dist/destinations/canny-functions/group/generated-types.d.ts +7 -0
- package/dist/destinations/canny-functions/group/generated-types.js +3 -0
- package/dist/destinations/canny-functions/group/generated-types.js.map +1 -0
- package/dist/destinations/canny-functions/group/index.d.ts +5 -0
- package/dist/destinations/canny-functions/group/index.js +46 -0
- package/dist/destinations/canny-functions/group/index.js.map +1 -0
- package/dist/destinations/canny-functions/identify/generated-types.d.ts +15 -0
- package/dist/destinations/canny-functions/identify/generated-types.js +3 -0
- package/dist/destinations/canny-functions/identify/generated-types.js.map +1 -0
- package/dist/destinations/canny-functions/identify/index.d.ts +5 -0
- package/dist/destinations/canny-functions/identify/index.js +95 -0
- package/dist/destinations/canny-functions/identify/index.js.map +1 -0
- package/dist/destinations/canny-functions/index.d.ts +4 -0
- package/dist/destinations/canny-functions/index.js +60 -0
- package/dist/destinations/canny-functions/index.js.map +1 -0
- package/dist/destinations/criteo-audiences/criteo-audiences.js.map +1 -1
- package/dist/destinations/engage-messaging-twilio/utils/message-sender.js +3 -0
- package/dist/destinations/engage-messaging-twilio/utils/message-sender.js.map +1 -1
- package/dist/destinations/fullstory/vars.d.ts +1 -1
- package/dist/destinations/fullstory/vars.js +17 -5
- package/dist/destinations/fullstory/vars.js.map +1 -1
- package/dist/destinations/heap/trackEvent/index.js +2 -2
- package/dist/destinations/heap/trackEvent/index.js.map +1 -1
- package/dist/destinations/index.js +1 -0
- package/dist/destinations/index.js.map +1 -1
- package/dist/destinations/tiktok-audiences/api/index.d.ts +3 -1
- package/dist/destinations/tiktok-audiences/api/index.js +11 -0
- package/dist/destinations/tiktok-audiences/api/index.js.map +1 -1
- package/dist/destinations/tiktok-audiences/createAudience/generated-types.d.ts +5 -0
- package/dist/destinations/tiktok-audiences/createAudience/generated-types.js +3 -0
- package/dist/destinations/tiktok-audiences/createAudience/generated-types.js.map +1 -0
- package/dist/destinations/tiktok-audiences/createAudience/index.d.ts +5 -0
- package/dist/destinations/tiktok-audiences/createAudience/index.js +37 -0
- package/dist/destinations/tiktok-audiences/createAudience/index.js.map +1 -0
- package/dist/destinations/tiktok-audiences/functions.d.ts +5 -2
- package/dist/destinations/tiktok-audiences/functions.js +6 -1
- package/dist/destinations/tiktok-audiences/functions.js.map +1 -1
- package/dist/destinations/tiktok-audiences/index.js +3 -1
- package/dist/destinations/tiktok-audiences/index.js.map +1 -1
- package/dist/destinations/tiktok-audiences/properties.d.ts +1 -0
- package/dist/destinations/tiktok-audiences/properties.js +7 -1
- package/dist/destinations/tiktok-audiences/properties.js.map +1 -1
- package/dist/destinations/tiktok-audiences/types.d.ts +5 -0
- package/dist/destinations/tiktok-offline-conversions/index.js +2 -2
- package/dist/destinations/tiktok-offline-conversions/index.js.map +1 -1
- package/dist/destinations/tiktok-offline-conversions/trackNonPaymentOfflineConversion/index.d.ts +1 -1
- package/dist/destinations/tiktok-offline-conversions/trackNonPaymentOfflineConversion/index.js +8 -3
- package/dist/destinations/tiktok-offline-conversions/trackNonPaymentOfflineConversion/index.js.map +1 -1
- package/dist/destinations/tiktok-offline-conversions/trackPaymentOfflineConversion/index.d.ts +1 -1
- package/dist/destinations/tiktok-offline-conversions/trackPaymentOfflineConversion/index.js +7 -2
- package/dist/destinations/tiktok-offline-conversions/trackPaymentOfflineConversion/index.js.map +1 -1
- package/dist/destinations/voucherify/addCustomEvent/generated-types.d.ts +12 -3
- package/dist/destinations/voucherify/addCustomEvent/index.js +62 -25
- package/dist/destinations/voucherify/addCustomEvent/index.js.map +1 -1
- package/dist/destinations/voucherify/assignCustomerToGroup/generated-types.d.ts +4 -2
- package/dist/destinations/voucherify/assignCustomerToGroup/index.js +21 -19
- package/dist/destinations/voucherify/assignCustomerToGroup/index.js.map +1 -1
- package/dist/destinations/voucherify/index.js +1 -1
- package/dist/destinations/voucherify/index.js.map +1 -1
- package/dist/destinations/voucherify/upsertCustomer/generated-types.d.ts +14 -13
- package/dist/destinations/voucherify/upsertCustomer/index.js +75 -42
- package/dist/destinations/voucherify/upsertCustomer/index.js.map +1 -1
- package/package.json +4 -4
|
@@ -6,30 +6,32 @@ const action = {
|
|
|
6
6
|
description: 'Assign a specific group and its traits to the customer.',
|
|
7
7
|
defaultSubscription: 'type = "group"',
|
|
8
8
|
fields: {
|
|
9
|
-
|
|
10
|
-
label: '
|
|
11
|
-
description: 'The source_id which identifies the [customer](https://docs.voucherify.io/reference/the-customer-object) in Voucherify.',
|
|
12
|
-
type: 'string',
|
|
9
|
+
customer: {
|
|
10
|
+
label: 'Customer Object',
|
|
13
11
|
required: true,
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
12
|
+
description: 'Object containing information about the [customer](https://docs.voucherify.io/reference/the-customer-object).',
|
|
13
|
+
type: 'object',
|
|
14
|
+
properties: {
|
|
15
|
+
source_id: {
|
|
16
|
+
label: 'Source ID',
|
|
17
|
+
type: 'string',
|
|
18
|
+
required: true,
|
|
19
|
+
description: 'The `source_id` which identifies the [customer](https://docs.voucherify.io/reference/the-customer-object) in Voucherify.'
|
|
20
|
+
},
|
|
21
|
+
email: {
|
|
22
|
+
label: 'Email',
|
|
23
|
+
type: 'string',
|
|
24
|
+
description: 'The email that identifies the [customer](https://docs.voucherify.io/reference/the-customer-object) in Voucherify.'
|
|
19
25
|
}
|
|
20
|
-
}
|
|
21
|
-
},
|
|
22
|
-
email: {
|
|
23
|
-
label: 'Email Address',
|
|
24
|
-
description: 'The email that identifies the [customer](https://docs.voucherify.io/reference/the-customer-object) in Voucherify.',
|
|
25
|
-
type: 'string',
|
|
26
|
+
},
|
|
26
27
|
default: {
|
|
27
|
-
'@path': '$.
|
|
28
|
+
source_id: { '@path': '$.userId' },
|
|
29
|
+
email: { '@path': '$.email' }
|
|
28
30
|
}
|
|
29
31
|
},
|
|
30
32
|
group_id: {
|
|
31
33
|
label: 'Group ID',
|
|
32
|
-
description: 'The ID used to uniquely identify a group to which customer belongs.',
|
|
34
|
+
description: 'The ID used to uniquely identify a group to which [customer](https://docs.voucherify.io/reference/the-customer-object) belongs.',
|
|
33
35
|
type: 'string',
|
|
34
36
|
required: true,
|
|
35
37
|
default: {
|
|
@@ -37,7 +39,7 @@ const action = {
|
|
|
37
39
|
}
|
|
38
40
|
},
|
|
39
41
|
traits: {
|
|
40
|
-
label: 'Group
|
|
42
|
+
label: 'Group Traits',
|
|
41
43
|
description: 'Traits of the group that will be created in customer [metadata](https://www.voucherify.io/glossary/metadata-custom-attributes).',
|
|
42
44
|
type: 'object',
|
|
43
45
|
default: {
|
|
@@ -46,7 +48,7 @@ const action = {
|
|
|
46
48
|
},
|
|
47
49
|
type: {
|
|
48
50
|
label: 'Event Type',
|
|
49
|
-
description: 'Type of the event
|
|
51
|
+
description: 'Type of the [event](https://segment.com/docs/connections/spec/). For example: identify, track, page, screen or group.',
|
|
50
52
|
type: 'string',
|
|
51
53
|
required: true,
|
|
52
54
|
default: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/destinations/voucherify/assignCustomerToGroup/index.ts"],"names":[],"mappings":";;AAGA,kDAA0D;AAE1D,MAAM,MAAM,GAAwC;IAClD,KAAK,EAAE,0BAA0B;IACjC,WAAW,EAAE,yDAAyD;IACtE,mBAAmB,EAAE,gBAAgB;IACrC,MAAM,EAAE;QACN,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/destinations/voucherify/assignCustomerToGroup/index.ts"],"names":[],"mappings":";;AAGA,kDAA0D;AAE1D,MAAM,MAAM,GAAwC;IAClD,KAAK,EAAE,0BAA0B;IACjC,WAAW,EAAE,yDAAyD;IACtE,mBAAmB,EAAE,gBAAgB;IACrC,MAAM,EAAE;QACN,QAAQ,EAAE;YACR,KAAK,EAAE,iBAAiB;YACxB,QAAQ,EAAE,IAAI;YACd,WAAW,EACT,+GAA+G;YACjH,IAAI,EAAE,QAAQ;YACd,UAAU,EAAE;gBACV,SAAS,EAAE;oBACT,KAAK,EAAE,WAAW;oBAClB,IAAI,EAAE,QAAQ;oBACd,QAAQ,EAAE,IAAI;oBACd,WAAW,EACT,0HAA0H;iBAC7H;gBACD,KAAK,EAAE;oBACL,KAAK,EAAE,OAAO;oBACd,IAAI,EAAE,QAAQ;oBACd,WAAW,EACT,mHAAmH;iBACtH;aACF;YACD,OAAO,EAAE;gBACP,SAAS,EAAE,EAAE,OAAO,EAAE,UAAU,EAAE;gBAClC,KAAK,EAAE,EAAE,OAAO,EAAE,SAAS,EAAE;aAC9B;SACF;QACD,QAAQ,EAAE;YACR,KAAK,EAAE,UAAU;YACjB,WAAW,EACT,iIAAiI;YACnI,IAAI,EAAE,QAAQ;YACd,QAAQ,EAAE,IAAI;YACd,OAAO,EAAE;gBACP,OAAO,EAAE,WAAW;aACrB;SACF;QAED,MAAM,EAAE;YACN,KAAK,EAAE,cAAc;YACrB,WAAW,EACT,iIAAiI;YACnI,IAAI,EAAE,QAAQ;YACd,OAAO,EAAE;gBACP,OAAO,EAAE,UAAU;aACpB;SACF;QACD,IAAI,EAAE;YACJ,KAAK,EAAE,YAAY;YACnB,WAAW,EACT,uHAAuH;YACzH,IAAI,EAAE,QAAQ;YACd,QAAQ,EAAE,IAAI;YACd,OAAO,EAAE;gBACP,OAAO,EAAE,QAAQ;aAClB;SACF;KACF;IACD,OAAO,EAAE,CAAC,OAAO,EAAE,EAAE,QAAQ,EAAE,OAAO,EAAE,EAAE,EAAE;QAC1C,MAAM,oBAAoB,GAAG,uCAAwB,CAAC,QAAQ,EAAE,OAAO,CAAC,CAAA;QACxE,OAAO,OAAO,CAAC,oBAAoB,EAAE;YACnC,MAAM,EAAE,MAAM;YACd,IAAI,EAAE,OAAO;SACd,CAAC,CAAA;IACJ,CAAC;CACF,CAAA;AAED,kBAAe,MAAM,CAAA"}
|
|
@@ -29,7 +29,7 @@ const destination = {
|
|
|
29
29
|
},
|
|
30
30
|
customURL: {
|
|
31
31
|
label: 'Custom Voucherify URL',
|
|
32
|
-
description: 'Check your API region in [Voucherify dashboard](https://app.voucherify.io/#/login) -> Project settings -> API endpoint. For example: `https://us1.api.voucherify.io
|
|
32
|
+
description: 'Check your API region in [Voucherify dashboard](https://app.voucherify.io/#/login) -> Project settings -> API endpoint. For example, if you are using a project with a URL: `https://us1.api.voucherify.io`, your Custom URL will be: `https://us1.segmentio.voucherify.io`. It also works for dedicated URLs.',
|
|
33
33
|
type: 'string',
|
|
34
34
|
required: true
|
|
35
35
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/destinations/voucherify/index.ts"],"names":[],"mappings":";;;;;AAGA,sEAA6C;AAC7C,wDAAqD;AACrD,sEAA6C;AAC7C,oFAA2D;AAC3D,mDAA6C;AAE7C,MAAM,WAAW,GAAoC;IACnD,IAAI,EAAE,sBAAsB;IAC5B,IAAI,EAAE,oBAAoB;IAC1B,IAAI,EAAE,OAAO;IAEb,cAAc,EAAE;QACd,MAAM,EAAE,OAAO;QACf,MAAM,EAAE;YACN,MAAM,EAAE;gBACN,KAAK,EAAE,gBAAgB;gBACvB,WAAW,EACT,wGAAwG;gBAC1G,IAAI,EAAE,QAAQ;gBACd,QAAQ,EAAE,IAAI;aACf;YACD,SAAS,EAAE;gBACT,KAAK,EAAE,YAAY;gBACnB,WAAW,EACT,oGAAoG;gBACtG,IAAI,EAAE,UAAU;gBAChB,QAAQ,EAAE,IAAI;aACf;YACD,SAAS,EAAE;gBACT,KAAK,EAAE,uBAAuB;gBAC9B,WAAW,EACT,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/destinations/voucherify/index.ts"],"names":[],"mappings":";;;;;AAGA,sEAA6C;AAC7C,wDAAqD;AACrD,sEAA6C;AAC7C,oFAA2D;AAC3D,mDAA6C;AAE7C,MAAM,WAAW,GAAoC;IACnD,IAAI,EAAE,sBAAsB;IAC5B,IAAI,EAAE,oBAAoB;IAC1B,IAAI,EAAE,OAAO;IAEb,cAAc,EAAE;QACd,MAAM,EAAE,OAAO;QACf,MAAM,EAAE;YACN,MAAM,EAAE;gBACN,KAAK,EAAE,gBAAgB;gBACvB,WAAW,EACT,wGAAwG;gBAC1G,IAAI,EAAE,QAAQ;gBACd,QAAQ,EAAE,IAAI;aACf;YACD,SAAS,EAAE;gBACT,KAAK,EAAE,YAAY;gBACnB,WAAW,EACT,oGAAoG;gBACtG,IAAI,EAAE,UAAU;gBAChB,QAAQ,EAAE,IAAI;aACf;YACD,SAAS,EAAE;gBACT,KAAK,EAAE,uBAAuB;gBAC9B,WAAW,EACT,g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wBAAc;QACd,qBAAqB,EAArB,+BAAqB;KACtB;IACD,OAAO,EAAE;QACP;YACE,IAAI,EAAE,gCAAgC;YACtC,SAAS,EAAE,gBAAgB;YAC3B,aAAa,EAAE,gBAAgB;YAC/B,OAAO,EAAE,4BAAa,CAAC,wBAAc,CAAC,MAAM,CAAC;SAC9C;QACD;YACE,IAAI,EAAE,+BAA+B;YACrC,SAAS,EAAE,eAAe;YAC1B,aAAa,EAAE,gBAAgB;YAC/B,OAAO,EAAE;gBACP,GAAG,4BAAa,CAAC,wBAAc,CAAC,MAAM,CAAC;gBACvC,KAAK,EAAE;oBACL,WAAW,EAAE,sBAAsB;iBACpC;aACF;SACF;QACD;YACE,IAAI,EAAE,iCAAiC;YACvC,SAAS,EAAE,iBAAiB;YAC5B,aAAa,EAAE,gBAAgB;YAC/B,OAAO,EAAE;gBACP,GAAG,4BAAa,CAAC,wBAAc,CAAC,MAAM,CAAC;gBACvC,KAAK,EAAE;oBACL,WAAW,EAAE,wBAAwB;iBACtC;aACF;SACF;QACD;YACE,IAAI,EAAE,2BAA2B;YACjC,SAAS,EAAE,mBAAmB;YAC9B,aAAa,EAAE,gBAAgB;YAC/B,OAAO,EAAE,4BAAa,CAAC,wBAAc,CAAC,MAAM,CAAC;SAC9C;QACD;YACE,IAAI,EAAE,0BAA0B;YAChC,SAAS,EAAE,gBAAgB;YAC3B,aAAa,EAAE,uBAAuB;YACtC,OAAO,EAAE,4BAAa,CAAC,+BAAqB,CAAC,MAAM,CAAC;SACrD;KACF;CACF,CAAA;AAED,kBAAe,WAAW,CAAA"}
|
|
@@ -1,19 +1,20 @@
|
|
|
1
1
|
export interface Payload {
|
|
2
2
|
source_id: string;
|
|
3
|
+
name?: string;
|
|
4
|
+
first_name?: string;
|
|
5
|
+
last_name?: string;
|
|
6
|
+
description?: string;
|
|
3
7
|
email?: string;
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
metadata?: {
|
|
15
|
-
[k: string]: unknown;
|
|
16
|
-
};
|
|
8
|
+
phone?: string;
|
|
9
|
+
birthdate?: string;
|
|
10
|
+
address?: {
|
|
11
|
+
city?: string;
|
|
12
|
+
state?: string;
|
|
13
|
+
postal_code?: string;
|
|
14
|
+
street?: string;
|
|
15
|
+
country?: string;
|
|
16
|
+
};
|
|
17
|
+
metadata?: {
|
|
17
18
|
[k: string]: unknown;
|
|
18
19
|
};
|
|
19
20
|
type: string;
|
|
@@ -8,15 +8,41 @@ const action = {
|
|
|
8
8
|
fields: {
|
|
9
9
|
source_id: {
|
|
10
10
|
label: 'Source ID',
|
|
11
|
-
description: 'The source_id which identifies the [customer](https://docs.voucherify.io/reference/the-customer-object) in Voucherify.',
|
|
11
|
+
description: 'The `source_id` which identifies the [customer](https://docs.voucherify.io/reference/the-customer-object) in Voucherify.',
|
|
12
12
|
type: 'string',
|
|
13
13
|
required: true,
|
|
14
|
+
default: { '@path': '$.userId' }
|
|
15
|
+
},
|
|
16
|
+
name: {
|
|
17
|
+
label: 'Name',
|
|
18
|
+
description: 'First name and last name of the [customer](https://docs.voucherify.io/reference/customer-object).',
|
|
19
|
+
type: 'string',
|
|
14
20
|
default: {
|
|
15
|
-
'@
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
21
|
+
'@path': '$.traits.name'
|
|
22
|
+
}
|
|
23
|
+
},
|
|
24
|
+
first_name: {
|
|
25
|
+
label: 'First Name',
|
|
26
|
+
description: 'First name of the [customer](https://docs.voucherify.io/reference/customer-object). It will be merged with `last_name` to create the `name` field.',
|
|
27
|
+
type: 'string',
|
|
28
|
+
default: {
|
|
29
|
+
'@path': '$.traits.first_name'
|
|
30
|
+
}
|
|
31
|
+
},
|
|
32
|
+
last_name: {
|
|
33
|
+
label: 'Last Name',
|
|
34
|
+
description: 'Last name of the [customer](https://docs.voucherify.io/reference/customer-object). It will be merged with `first_name` to create the `name` field.',
|
|
35
|
+
type: 'string',
|
|
36
|
+
default: {
|
|
37
|
+
'@path': '$.traits.last_name'
|
|
38
|
+
}
|
|
39
|
+
},
|
|
40
|
+
description: {
|
|
41
|
+
label: 'Description',
|
|
42
|
+
description: 'An arbitrary string that you can attach to a [customer](https://docs.voucherify.io/reference/customer-object) object.',
|
|
43
|
+
type: 'string',
|
|
44
|
+
default: {
|
|
45
|
+
'@path': '$.traits.description'
|
|
20
46
|
}
|
|
21
47
|
},
|
|
22
48
|
email: {
|
|
@@ -27,60 +53,67 @@ const action = {
|
|
|
27
53
|
'@path': '$.traits.email'
|
|
28
54
|
}
|
|
29
55
|
},
|
|
30
|
-
|
|
31
|
-
label: '
|
|
32
|
-
description: '
|
|
33
|
-
|
|
34
|
-
|
|
56
|
+
phone: {
|
|
57
|
+
label: 'Phone',
|
|
58
|
+
description: 'Phone number of the [customer](https://docs.voucherify.io/reference/the-customer-object).',
|
|
59
|
+
type: 'string',
|
|
60
|
+
default: {
|
|
61
|
+
'@path': '$.traits.phone'
|
|
62
|
+
}
|
|
63
|
+
},
|
|
64
|
+
birthdate: {
|
|
65
|
+
label: 'Birthdate',
|
|
66
|
+
description: 'Birthdate of the [customer](https://docs.voucherify.io/reference/the-customer-object). You can pass data here in `date` or `datetime` format (ISO 8601).',
|
|
67
|
+
type: 'string',
|
|
68
|
+
default: {
|
|
69
|
+
'@path': '$.traits.birthdate'
|
|
70
|
+
}
|
|
71
|
+
},
|
|
72
|
+
address: {
|
|
73
|
+
label: 'Address',
|
|
74
|
+
description: 'Address of the [customer](https://docs.voucherify.io/reference/the-customer-object).',
|
|
35
75
|
type: 'object',
|
|
36
76
|
properties: {
|
|
37
|
-
|
|
38
|
-
label: '
|
|
77
|
+
city: {
|
|
78
|
+
label: 'City',
|
|
39
79
|
type: 'string'
|
|
40
80
|
},
|
|
41
|
-
|
|
42
|
-
label: '
|
|
81
|
+
state: {
|
|
82
|
+
label: 'State',
|
|
43
83
|
type: 'string'
|
|
44
84
|
},
|
|
45
|
-
|
|
46
|
-
label: '
|
|
85
|
+
postal_code: {
|
|
86
|
+
label: 'Postal Code',
|
|
47
87
|
type: 'string'
|
|
48
88
|
},
|
|
49
|
-
|
|
50
|
-
label: '
|
|
89
|
+
street: {
|
|
90
|
+
label: 'Street',
|
|
51
91
|
type: 'string'
|
|
52
92
|
},
|
|
53
|
-
|
|
54
|
-
label: '
|
|
55
|
-
type: 'object'
|
|
56
|
-
},
|
|
57
|
-
phone: {
|
|
58
|
-
label: 'Phone',
|
|
93
|
+
country: {
|
|
94
|
+
label: 'Country',
|
|
59
95
|
type: 'string'
|
|
60
|
-
},
|
|
61
|
-
birthdate: {
|
|
62
|
-
label: 'Birthdate',
|
|
63
|
-
type: 'string'
|
|
64
|
-
},
|
|
65
|
-
metadata: {
|
|
66
|
-
label: 'Metadata',
|
|
67
|
-
type: 'object'
|
|
68
96
|
}
|
|
69
97
|
},
|
|
70
98
|
default: {
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
99
|
+
city: { '@path': '$.traits.address.city' },
|
|
100
|
+
state: { '@path': '$.traits.address.state' },
|
|
101
|
+
postal_code: { '@path': '$.traits.address.postal_code' },
|
|
102
|
+
street: { '@path': '$.traits.address.street' },
|
|
103
|
+
country: { '@path': '$.traits.address.country' }
|
|
104
|
+
}
|
|
105
|
+
},
|
|
106
|
+
metadata: {
|
|
107
|
+
label: 'Metadata',
|
|
108
|
+
description: 'A set of custom key/value pairs that you can attach to a customer. The metadata object stores all custom attributes assigned to the customer. It can be useful for storing additional information about the customer in a structured format.',
|
|
109
|
+
type: 'object',
|
|
110
|
+
default: {
|
|
111
|
+
'@path': '$.traits.metadata'
|
|
79
112
|
}
|
|
80
113
|
},
|
|
81
114
|
type: {
|
|
82
115
|
label: 'Event Type',
|
|
83
|
-
description: 'Type of the event
|
|
116
|
+
description: 'Type of the [event](https://segment.com/docs/connections/spec/). For example: identify, track, page, screen or group',
|
|
84
117
|
type: 'string',
|
|
85
118
|
required: true,
|
|
86
119
|
default: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/destinations/voucherify/upsertCustomer/index.ts"],"names":[],"mappings":";;AAEA,kDAA0D;AAG1D,MAAM,MAAM,GAAwC;IAClD,KAAK,EAAE,kBAAkB;IACzB,WAAW,EACT,6KAA6K;IAC/K,mBAAmB,EAAE,mBAAmB;IACxC,MAAM,EAAE;QACN,SAAS,EAAE;YACT,KAAK,EAAE,WAAW;YAClB,WAAW,EACT,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/destinations/voucherify/upsertCustomer/index.ts"],"names":[],"mappings":";;AAEA,kDAA0D;AAG1D,MAAM,MAAM,GAAwC;IAClD,KAAK,EAAE,kBAAkB;IACzB,WAAW,EACT,6KAA6K;IAC/K,mBAAmB,EAAE,mBAAmB;IACxC,MAAM,EAAE;QACN,SAAS,EAAE;YACT,KAAK,EAAE,WAAW;YAClB,WAAW,EACT,0HAA0H;YAC5H,IAAI,EAAE,QAAQ;YACd,QAAQ,EAAE,IAAI;YACd,OAAO,EAAE,EAAE,OAAO,EAAE,UAAU,EAAE;SACjC;QACD,IAAI,EAAE;YACJ,KAAK,EAAE,MAAM;YACb,WAAW,EAAE,mGAAmG;YAChH,IAAI,EAAE,QAAQ;YACd,OAAO,EAAE;gBACP,OAAO,EAAE,eAAe;aACzB;SACF;QACD,UAAU,EAAE;YACV,KAAK,EAAE,YAAY;YACnB,WAAW,EACT,oJAAoJ;YACtJ,IAAI,EAAE,QAAQ;YACd,OAAO,EAAE;gBACP,OAAO,EAAE,qBAAqB;aAC/B;SACF;QACD,SAAS,EAAE;YACT,KAAK,EAAE,WAAW;YAClB,WAAW,EACT,oJAAoJ;YACtJ,IAAI,EAAE,QAAQ;YACd,OAAO,EAAE;gBACP,OAAO,EAAE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AE,OAAO,EAAE,8BAA8B,EAAE;gBACxD,MAAM,EAAE,EAAE,OAAO,EAAE,yBAAyB,EAAE;gBAC9C,OAAO,EAAE,EAAE,OAAO,EAAE,0BAA0B,EAAE;aACjD;SACF;QACD,QAAQ,EAAE;YACR,KAAK,EAAE,UAAU;YACjB,WAAW,EACT,8OAA8O;YAChP,IAAI,EAAE,QAAQ;YACd,OAAO,EAAE;gBACP,OAAO,EAAE,mBAAmB;aAC7B;SACF;QACD,IAAI,EAAE;YACJ,KAAK,EAAE,YAAY;YACnB,WAAW,EACT,sHAAsH;YACxH,IAAI,EAAE,QAAQ;YACd,QAAQ,EAAE,IAAI;YACd,OAAO,EAAE;gBACP,OAAO,EAAE,QAAQ;aAClB;SACF;KACF;IACD,OAAO,EAAE,CAAC,OAAO,EAAE,EAAE,QAAQ,EAAE,OAAO,EAAE,EAAE,EAAE;QAC1C,MAAM,oBAAoB,GAAG,uCAAwB,CAAC,QAAQ,EAAE,UAAU,CAAC,CAAA;QAC3E,OAAO,OAAO,CAAC,oBAAoB,EAAE;YACnC,MAAM,EAAE,MAAM;YACd,IAAI,EAAE,OAAO;SACd,CAAC,CAAA;IACJ,CAAC;CACF,CAAA;AAED,kBAAe,MAAM,CAAA"}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@segment/action-destinations",
|
|
3
3
|
"description": "Destination Actions engine and definitions.",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.173.0",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
7
7
|
"url": "https://github.com/segmentio/action-destinations",
|
|
@@ -40,8 +40,8 @@
|
|
|
40
40
|
"dependencies": {
|
|
41
41
|
"@amplitude/ua-parser-js": "^0.7.25",
|
|
42
42
|
"@segment/a1-notation": "^2.1.4",
|
|
43
|
-
"@segment/actions-core": "^3.
|
|
44
|
-
"@segment/actions-shared": "^1.
|
|
43
|
+
"@segment/actions-core": "^3.68.0",
|
|
44
|
+
"@segment/actions-shared": "^1.50.0",
|
|
45
45
|
"@types/node": "^18.11.15",
|
|
46
46
|
"aws4": "^1.12.0",
|
|
47
47
|
"cheerio": "^1.0.0-rc.10",
|
|
@@ -71,5 +71,5 @@
|
|
|
71
71
|
"lcov"
|
|
72
72
|
]
|
|
73
73
|
},
|
|
74
|
-
"gitHead": "
|
|
74
|
+
"gitHead": "bd016dfd9d03342a1139302c547e4f8a96c5b901"
|
|
75
75
|
}
|