@segment/action-destinations 3.177.0 → 3.178.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.js +10 -1
- package/dist/destinations/acoustic/Utility/eventprocessing.js.map +1 -1
- package/dist/destinations/acoustic/Utility/tablemaintutilities.js +17 -34
- package/dist/destinations/acoustic/Utility/tablemaintutilities.js.map +1 -1
- package/dist/destinations/acoustic/generated-types.d.ts +1 -0
- package/dist/destinations/acoustic/index.js +18 -8
- package/dist/destinations/acoustic/index.js.map +1 -1
- package/dist/destinations/acoustic/receiveEvents/index.js +3 -3
- package/dist/destinations/acoustic/receiveEvents/index.js.map +1 -1
- package/dist/destinations/devrev/createRevUser/generated-types.d.ts +8 -0
- package/dist/destinations/devrev/createRevUser/generated-types.js +3 -0
- package/dist/destinations/devrev/createRevUser/generated-types.js.map +1 -0
- package/dist/destinations/devrev/createRevUser/index.d.ts +5 -0
- package/dist/destinations/devrev/createRevUser/index.js +171 -0
- package/dist/destinations/devrev/createRevUser/index.js.map +1 -0
- package/dist/destinations/devrev/createWork/generated-types.d.ts +9 -0
- package/dist/destinations/devrev/createWork/generated-types.js +3 -0
- package/dist/destinations/devrev/createWork/generated-types.js.map +1 -0
- package/dist/destinations/devrev/createWork/index.d.ts +5 -0
- package/dist/destinations/devrev/createWork/index.js +146 -0
- package/dist/destinations/devrev/createWork/index.js.map +1 -0
- package/dist/destinations/devrev/generated-types.d.ts +4 -0
- package/dist/destinations/devrev/generated-types.js +3 -0
- package/dist/destinations/devrev/generated-types.js.map +1 -0
- package/dist/destinations/devrev/index.d.ts +4 -0
- package/dist/destinations/devrev/index.js +47 -0
- package/dist/destinations/devrev/index.js.map +1 -0
- package/dist/destinations/devrev/mocks/index.d.ts +144 -0
- package/dist/destinations/devrev/mocks/index.js +145 -0
- package/dist/destinations/devrev/mocks/index.js.map +1 -0
- package/dist/destinations/devrev/utils/constants.d.ts +15 -0
- package/dist/destinations/devrev/utils/constants.js +19 -0
- package/dist/destinations/devrev/utils/constants.js.map +1 -0
- package/dist/destinations/devrev/utils/helpers.d.ts +14 -0
- package/dist/destinations/devrev/utils/helpers.js +56 -0
- package/dist/destinations/devrev/utils/helpers.js.map +1 -0
- package/dist/destinations/devrev/utils/index.d.ts +3 -0
- package/dist/destinations/devrev/utils/index.js +16 -0
- package/dist/destinations/devrev/utils/index.js.map +1 -0
- package/dist/destinations/devrev/utils/types.d.ts +105 -0
- package/dist/destinations/devrev/utils/types.js +3 -0
- package/dist/destinations/devrev/utils/types.js.map +1 -0
- package/dist/destinations/hubspot/api/index.d.ts +16 -0
- package/dist/destinations/hubspot/api/index.js +55 -0
- package/dist/destinations/hubspot/api/index.js.map +1 -0
- package/dist/destinations/hubspot/errors.d.ts +2 -0
- package/dist/destinations/hubspot/errors.js +3 -1
- package/dist/destinations/hubspot/errors.js.map +1 -1
- package/dist/destinations/hubspot/sendCustomBehavioralEvent/index.js +2 -2
- package/dist/destinations/hubspot/sendCustomBehavioralEvent/index.js.map +1 -1
- package/dist/destinations/hubspot/upsertCompany/index.js +13 -68
- package/dist/destinations/hubspot/upsertCompany/index.js.map +1 -1
- package/dist/destinations/hubspot/upsertContact/index.js +2 -2
- package/dist/destinations/hubspot/upsertContact/index.js.map +1 -1
- package/dist/destinations/hubspot/upsertCustomObjectRecord/generated-types.d.ts +4 -0
- package/dist/destinations/hubspot/upsertCustomObjectRecord/index.js +47 -8
- package/dist/destinations/hubspot/upsertCustomObjectRecord/index.js.map +1 -1
- package/dist/destinations/hubspot/utils.d.ts +47 -0
- package/dist/destinations/hubspot/utils.js +43 -0
- package/dist/destinations/hubspot/utils.js.map +1 -0
- package/dist/destinations/index.js +1 -0
- package/dist/destinations/index.js.map +1 -1
- package/dist/destinations/voucherify/upsertCustomer/generated-types.d.ts +13 -13
- package/dist/destinations/voucherify/upsertCustomer/index.js +18 -5
- package/dist/destinations/voucherify/upsertCustomer/index.js.map +1 -1
- package/package.json +2 -2
- package/dist/destinations/hubspot/helperFunctions.d.ts +0 -7
- package/dist/destinations/hubspot/helperFunctions.js +0 -27
- package/dist/destinations/hubspot/helperFunctions.js.map +0 -1
|
@@ -15,6 +15,7 @@ const action = {
|
|
|
15
15
|
},
|
|
16
16
|
name: {
|
|
17
17
|
label: 'Name',
|
|
18
|
+
allowNull: true,
|
|
18
19
|
description: 'First name and last name of the [customer](https://docs.voucherify.io/reference/customer-object).',
|
|
19
20
|
type: 'string',
|
|
20
21
|
default: {
|
|
@@ -23,6 +24,7 @@ const action = {
|
|
|
23
24
|
},
|
|
24
25
|
first_name: {
|
|
25
26
|
label: 'First Name',
|
|
27
|
+
allowNull: true,
|
|
26
28
|
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
29
|
type: 'string',
|
|
28
30
|
default: {
|
|
@@ -31,6 +33,7 @@ const action = {
|
|
|
31
33
|
},
|
|
32
34
|
last_name: {
|
|
33
35
|
label: 'Last Name',
|
|
36
|
+
allowNull: true,
|
|
34
37
|
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
38
|
type: 'string',
|
|
36
39
|
default: {
|
|
@@ -39,6 +42,7 @@ const action = {
|
|
|
39
42
|
},
|
|
40
43
|
description: {
|
|
41
44
|
label: 'Description',
|
|
45
|
+
allowNull: true,
|
|
42
46
|
description: 'An arbitrary string that you can attach to a [customer](https://docs.voucherify.io/reference/customer-object) object.',
|
|
43
47
|
type: 'string',
|
|
44
48
|
default: {
|
|
@@ -47,6 +51,7 @@ const action = {
|
|
|
47
51
|
},
|
|
48
52
|
email: {
|
|
49
53
|
label: 'Email Address',
|
|
54
|
+
allowNull: true,
|
|
50
55
|
description: 'The email that identifies the [customer](https://docs.voucherify.io/reference/the-customer-object) in Voucherify.',
|
|
51
56
|
type: 'string',
|
|
52
57
|
default: {
|
|
@@ -55,6 +60,7 @@ const action = {
|
|
|
55
60
|
},
|
|
56
61
|
phone: {
|
|
57
62
|
label: 'Phone',
|
|
63
|
+
allowNull: true,
|
|
58
64
|
description: 'Phone number of the [customer](https://docs.voucherify.io/reference/the-customer-object).',
|
|
59
65
|
type: 'string',
|
|
60
66
|
default: {
|
|
@@ -63,6 +69,7 @@ const action = {
|
|
|
63
69
|
},
|
|
64
70
|
birthdate: {
|
|
65
71
|
label: 'Birthdate',
|
|
72
|
+
allowNull: true,
|
|
66
73
|
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
74
|
type: 'string',
|
|
68
75
|
default: {
|
|
@@ -76,23 +83,28 @@ const action = {
|
|
|
76
83
|
properties: {
|
|
77
84
|
city: {
|
|
78
85
|
label: 'City',
|
|
79
|
-
type: 'string'
|
|
86
|
+
type: 'string',
|
|
87
|
+
allowNull: true
|
|
80
88
|
},
|
|
81
89
|
state: {
|
|
82
90
|
label: 'State',
|
|
83
|
-
type: 'string'
|
|
91
|
+
type: 'string',
|
|
92
|
+
allowNull: true
|
|
84
93
|
},
|
|
85
94
|
postal_code: {
|
|
86
95
|
label: 'Postal Code',
|
|
87
|
-
type: 'string'
|
|
96
|
+
type: 'string',
|
|
97
|
+
allowNull: true
|
|
88
98
|
},
|
|
89
99
|
street: {
|
|
90
100
|
label: 'Street',
|
|
91
|
-
type: 'string'
|
|
101
|
+
type: 'string',
|
|
102
|
+
allowNull: true
|
|
92
103
|
},
|
|
93
104
|
country: {
|
|
94
105
|
label: 'Country',
|
|
95
|
-
type: 'string'
|
|
106
|
+
type: 'string',
|
|
107
|
+
allowNull: true
|
|
96
108
|
}
|
|
97
109
|
},
|
|
98
110
|
default: {
|
|
@@ -107,6 +119,7 @@ const action = {
|
|
|
107
119
|
label: 'Metadata',
|
|
108
120
|
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
121
|
type: 'object',
|
|
122
|
+
allowNull: true,
|
|
110
123
|
default: {
|
|
111
124
|
'@path': '$.traits.metadata'
|
|
112
125
|
}
|
|
@@ -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,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,oBAAoB;aAC9B;SACF;QACD,WAAW,EAAE;YACX,KAAK,EAAE,aAAa;YACpB,WAAW,EACT,uHAAuH;YACzH,IAAI,EAAE,QAAQ;YACd,OAAO,EAAE;gBACP,OAAO,EAAE,sBAAsB;aAChC;SACF;QACD,KAAK,EAAE;YACL,KAAK,EAAE,eAAe;YACtB,WAAW,EACT,mHAAmH;YACrH,IAAI,EAAE,QAAQ;YACd,OAAO,EAAE;gBACP,OAAO,EAAE,gBAAgB;aAC1B;SACF;QACD,KAAK,EAAE;YACL,KAAK,EAAE,OAAO;YACd,WAAW,EAAE,2FAA2F;YACxG,IAAI,EAAE,QAAQ;YACd,OAAO,EAAE;gBACP,OAAO,EAAE,gBAAgB;aAC1B;SACF;QACD,SAAS,EAAE;YACT,KAAK,EAAE,WAAW;YAClB,WAAW,EACT,0JAA0J;YAC5J,IAAI,EAAE,QAAQ;YACd,OAAO,EAAE;gBACP,OAAO,EAAE,oBAAoB;aAC9B;SACF;QACD,OAAO,EAAE;YACP,KAAK,EAAE,SAAS;YAChB,WAAW,EAAE,sFAAsF;YACnG,IAAI,EAAE,QAAQ;YACd,UAAU,EAAE;gBACV,IAAI,EAAE;oBACJ,KAAK,EAAE,MAAM;oBACb,IAAI,EAAE,QAAQ;
|
|
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,SAAS,EAAE,IAAI;YACf,WAAW,EAAE,mGAAmG;YAChH,IAAI,EAAE,QAAQ;YACd,OAAO,EAAE;gBACP,OAAO,EAAE,eAAe;aACzB;SACF;QACD,UAAU,EAAE;YACV,KAAK,EAAE,YAAY;YACnB,SAAS,EAAE,IAAI;YACf,WAAW,EACT,oJAAoJ;YACtJ,IAAI,EAAE,QAAQ;YACd,OAAO,EAAE;gBACP,OAAO,EAAE,qBAAqB;aAC/B;SACF;QACD,SAAS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ations",
|
|
3
3
|
"description": "Destination Actions engine and definitions.",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.178.0",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
7
7
|
"url": "https://github.com/segmentio/action-destinations",
|
|
@@ -76,5 +76,5 @@
|
|
|
76
76
|
"__tests__/__helpers__/"
|
|
77
77
|
]
|
|
78
78
|
},
|
|
79
|
-
"gitHead": "
|
|
79
|
+
"gitHead": "2abde6b72f8a5b52175389968ce1b8e15e79af3b"
|
|
80
80
|
}
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.flattenObject = void 0;
|
|
4
|
-
function flattenObject(obj) {
|
|
5
|
-
if (typeof obj === 'undefined' || obj === null)
|
|
6
|
-
return obj;
|
|
7
|
-
const flattened = {};
|
|
8
|
-
Object.keys(obj).forEach((key) => {
|
|
9
|
-
if (typeof obj[key] === 'undefined' || obj[key] == null || !Object.prototype.hasOwnProperty.call(obj, key)) {
|
|
10
|
-
return;
|
|
11
|
-
}
|
|
12
|
-
if (obj[key] instanceof Array) {
|
|
13
|
-
flattened[key] = obj[key]
|
|
14
|
-
.map((item) => (typeof item === 'object' ? JSON.stringify(item) : item))
|
|
15
|
-
.join(';');
|
|
16
|
-
return;
|
|
17
|
-
}
|
|
18
|
-
if (typeof obj[key] === 'object') {
|
|
19
|
-
flattened[key] = JSON.stringify(obj[key]);
|
|
20
|
-
return;
|
|
21
|
-
}
|
|
22
|
-
flattened[key] = obj[key];
|
|
23
|
-
});
|
|
24
|
-
return flattened;
|
|
25
|
-
}
|
|
26
|
-
exports.flattenObject = flattenObject;
|
|
27
|
-
//# sourceMappingURL=helperFunctions.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"helperFunctions.js","sourceRoot":"","sources":["../../../src/destinations/hubspot/helperFunctions.ts"],"names":[],"mappings":";;;AAKA,SAA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