@segment/public-api-sdk-typescript 53.1.0-b9558 → 53.1.0-b9567
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/model/audienceSummary.d.ts +2 -2
- package/dist/model/audienceSummary.js +1 -1
- package/dist/model/audienceSummary.js.map +1 -1
- package/dist/model/computedTraitSummary.d.ts +2 -2
- package/dist/model/computedTraitSummary.js +1 -1
- package/dist/model/computedTraitSummary.js.map +1 -1
- package/dist/model/config.d.ts +3 -0
- package/dist/model/config.js +15 -0
- package/dist/model/config.js.map +1 -1
- package/dist/model/destinationSubscription.d.ts +1 -1
- package/dist/model/destinationSubscription.js +1 -1
- package/dist/model/destinationSubscription.js.map +1 -1
- package/dist/model/getFunctionV1Output.d.ts +2 -2
- package/dist/model/getFunctionV1Output.js +1 -1
- package/dist/model/getFunctionV1Output.js.map +1 -1
- package/dist/model/models.d.ts +0 -3
- package/dist/model/models.js +0 -12
- package/dist/model/models.js.map +1 -1
- package/dist/model/scheduleConfig.d.ts +3 -0
- package/dist/model/scheduleConfig.js +15 -0
- package/dist/model/scheduleConfig.js.map +1 -1
- package/dist/model/space.js.map +1 -1
- package/model/audienceSummary.ts +3 -3
- package/model/computedTraitSummary.ts +3 -3
- package/model/config.ts +29 -0
- package/model/destinationSubscription.ts +2 -2
- package/model/getFunctionV1Output.ts +3 -3
- package/model/models.ts +0 -12
- package/model/scheduleConfig.ts +29 -0
- package/model/space.ts +0 -3
- package/package.json +1 -1
- package/dist/model/definition.d.ts +0 -21
- package/dist/model/definition.js +0 -34
- package/dist/model/definition.js.map +0 -1
- package/dist/model/definition1.d.ts +0 -21
- package/dist/model/definition1.js +0 -34
- package/dist/model/definition1.js.map +0 -1
- package/dist/model/function.d.ts +0 -36
- package/dist/model/function.js +0 -96
- package/dist/model/function.js.map +0 -1
- package/model/definition.ts +0 -57
- package/model/definition1.ts +0 -57
- package/model/function.ts +0 -168
package/model/models.ts
CHANGED
|
@@ -114,8 +114,6 @@ export * from './createWorkspaceRegulationV1Input';
|
|
|
114
114
|
export * from './createWorkspaceRegulationV1Output';
|
|
115
115
|
export * from './createWriteKeyForSource200Response';
|
|
116
116
|
export * from './createWriteKeyForSourceAlphaOutput';
|
|
117
|
-
export * from './definition';
|
|
118
|
-
export * from './definition1';
|
|
119
117
|
export * from './deleteDestination200Response';
|
|
120
118
|
export * from './deleteDestinationV1Output';
|
|
121
119
|
export * from './deleteFunction200Response';
|
|
@@ -177,7 +175,6 @@ export * from './echoV1Output';
|
|
|
177
175
|
export * from './edgeFunctionsAlpha';
|
|
178
176
|
export * from './eventSourceV1';
|
|
179
177
|
export * from './fQLDefinedPropertyV1';
|
|
180
|
-
export * from './function';
|
|
181
178
|
export * from './functionDeployment';
|
|
182
179
|
export * from './functionSettingV1';
|
|
183
180
|
export * from './functionV1';
|
|
@@ -665,8 +662,6 @@ import { CreateWorkspaceRegulationV1Input } from './createWorkspaceRegulationV1I
|
|
|
665
662
|
import { CreateWorkspaceRegulationV1Output } from './createWorkspaceRegulationV1Output';
|
|
666
663
|
import { CreateWriteKeyForSource200Response } from './createWriteKeyForSource200Response';
|
|
667
664
|
import { CreateWriteKeyForSourceAlphaOutput } from './createWriteKeyForSourceAlphaOutput';
|
|
668
|
-
import { Definition } from './definition';
|
|
669
|
-
import { Definition1 } from './definition1';
|
|
670
665
|
import { DeleteDestination200Response } from './deleteDestination200Response';
|
|
671
666
|
import { DeleteDestinationV1Output } from './deleteDestinationV1Output';
|
|
672
667
|
import { DeleteFunction200Response } from './deleteFunction200Response';
|
|
@@ -728,7 +723,6 @@ import { EchoV1Output } from './echoV1Output';
|
|
|
728
723
|
import { EdgeFunctionsAlpha } from './edgeFunctionsAlpha';
|
|
729
724
|
import { EventSourceV1 } from './eventSourceV1';
|
|
730
725
|
import { FQLDefinedPropertyV1 } from './fQLDefinedPropertyV1';
|
|
731
|
-
import { Function } from './function';
|
|
732
726
|
import { FunctionDeployment } from './functionDeployment';
|
|
733
727
|
import { FunctionSettingV1 } from './functionSettingV1';
|
|
734
728
|
import { FunctionV1 } from './functionV1';
|
|
@@ -1130,8 +1124,6 @@ let enumsMap: { [index: string]: any } = {
|
|
|
1130
1124
|
CreateWorkspaceRegulationV1Input.RegulationTypeEnum,
|
|
1131
1125
|
'CreateWorkspaceRegulationV1Input.SubjectTypeEnum':
|
|
1132
1126
|
CreateWorkspaceRegulationV1Input.SubjectTypeEnum,
|
|
1133
|
-
'Definition.TypeEnum': Definition.TypeEnum,
|
|
1134
|
-
'Definition1.TypeEnum': Definition1.TypeEnum,
|
|
1135
1127
|
'DeleteDestinationV1Output.StatusEnum':
|
|
1136
1128
|
DeleteDestinationV1Output.StatusEnum,
|
|
1137
1129
|
'DeleteFunctionV1Output.StatusEnum': DeleteFunctionV1Output.StatusEnum,
|
|
@@ -1171,7 +1163,6 @@ let enumsMap: { [index: string]: any } = {
|
|
|
1171
1163
|
'DestinationStatusV1.StatusEnum': DestinationStatusV1.StatusEnum,
|
|
1172
1164
|
'EchoAlphaOutput.MethodEnum': EchoAlphaOutput.MethodEnum,
|
|
1173
1165
|
'EchoV1Output.MethodEnum': EchoV1Output.MethodEnum,
|
|
1174
|
-
'Function.ResourceTypeEnum': Function.ResourceTypeEnum,
|
|
1175
1166
|
'FunctionDeployment.StatusEnum': FunctionDeployment.StatusEnum,
|
|
1176
1167
|
'FunctionSettingV1.TypeEnum': FunctionSettingV1.TypeEnum,
|
|
1177
1168
|
'FunctionV1.ResourceTypeEnum': FunctionV1.ResourceTypeEnum,
|
|
@@ -1386,8 +1377,6 @@ let typeMap: { [index: string]: any } = {
|
|
|
1386
1377
|
CreateWorkspaceRegulationV1Output: CreateWorkspaceRegulationV1Output,
|
|
1387
1378
|
CreateWriteKeyForSource200Response: CreateWriteKeyForSource200Response,
|
|
1388
1379
|
CreateWriteKeyForSourceAlphaOutput: CreateWriteKeyForSourceAlphaOutput,
|
|
1389
|
-
Definition: Definition,
|
|
1390
|
-
Definition1: Definition1,
|
|
1391
1380
|
DeleteDestination200Response: DeleteDestination200Response,
|
|
1392
1381
|
DeleteDestinationV1Output: DeleteDestinationV1Output,
|
|
1393
1382
|
DeleteFunction200Response: DeleteFunction200Response,
|
|
@@ -1453,7 +1442,6 @@ let typeMap: { [index: string]: any } = {
|
|
|
1453
1442
|
EdgeFunctionsAlpha: EdgeFunctionsAlpha,
|
|
1454
1443
|
EventSourceV1: EventSourceV1,
|
|
1455
1444
|
FQLDefinedPropertyV1: FQLDefinedPropertyV1,
|
|
1456
|
-
Function: Function,
|
|
1457
1445
|
FunctionDeployment: FunctionDeployment,
|
|
1458
1446
|
FunctionSettingV1: FunctionSettingV1,
|
|
1459
1447
|
FunctionV1: FunctionV1,
|
package/model/scheduleConfig.ts
CHANGED
|
@@ -11,6 +11,8 @@
|
|
|
11
11
|
*/
|
|
12
12
|
|
|
13
13
|
import { RequestFile } from './models';
|
|
14
|
+
import { ReverseEtlPeriodicScheduleConfig } from './reverseEtlPeriodicScheduleConfig';
|
|
15
|
+
import { ReverseEtlSpecificTimeScheduleConfig } from './reverseEtlSpecificTimeScheduleConfig';
|
|
14
16
|
|
|
15
17
|
/**
|
|
16
18
|
* Depending on the chosen strategy, configures the schedule for this model.
|
|
@@ -20,6 +22,18 @@ export class ScheduleConfig {
|
|
|
20
22
|
* Duration is specified as a string, eg: 15m, 3h25m30s.
|
|
21
23
|
*/
|
|
22
24
|
'interval': string;
|
|
25
|
+
/**
|
|
26
|
+
* Days of the week.
|
|
27
|
+
*/
|
|
28
|
+
'days': Array<number>;
|
|
29
|
+
/**
|
|
30
|
+
* Hours of the day.
|
|
31
|
+
*/
|
|
32
|
+
'hours': Array<number>;
|
|
33
|
+
/**
|
|
34
|
+
* Timezone for the specified times.
|
|
35
|
+
*/
|
|
36
|
+
'timezone': string;
|
|
23
37
|
|
|
24
38
|
static discriminator: string | undefined = undefined;
|
|
25
39
|
|
|
@@ -33,6 +47,21 @@ export class ScheduleConfig {
|
|
|
33
47
|
baseName: 'interval',
|
|
34
48
|
type: 'string',
|
|
35
49
|
},
|
|
50
|
+
{
|
|
51
|
+
name: 'days',
|
|
52
|
+
baseName: 'days',
|
|
53
|
+
type: 'Array<number>',
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
name: 'hours',
|
|
57
|
+
baseName: 'hours',
|
|
58
|
+
type: 'Array<number>',
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
name: 'timezone',
|
|
62
|
+
baseName: 'timezone',
|
|
63
|
+
type: 'string',
|
|
64
|
+
},
|
|
36
65
|
];
|
|
37
66
|
|
|
38
67
|
static getAttributeTypeMap() {
|
package/model/space.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
export declare class Definition {
|
|
2
|
-
'query': string;
|
|
3
|
-
'type': Definition.TypeEnum;
|
|
4
|
-
static discriminator: string | undefined;
|
|
5
|
-
static attributeTypeMap: Array<{
|
|
6
|
-
name: string;
|
|
7
|
-
baseName: string;
|
|
8
|
-
type: string;
|
|
9
|
-
}>;
|
|
10
|
-
static getAttributeTypeMap(): {
|
|
11
|
-
name: string;
|
|
12
|
-
baseName: string;
|
|
13
|
-
type: string;
|
|
14
|
-
}[];
|
|
15
|
-
}
|
|
16
|
-
export declare namespace Definition {
|
|
17
|
-
enum TypeEnum {
|
|
18
|
-
ACCOUNTS,
|
|
19
|
-
USERS
|
|
20
|
-
}
|
|
21
|
-
}
|
package/dist/model/definition.js
DELETED
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.Definition = void 0;
|
|
4
|
-
var Definition = (function () {
|
|
5
|
-
function Definition() {
|
|
6
|
-
}
|
|
7
|
-
Definition.getAttributeTypeMap = function () {
|
|
8
|
-
return Definition.attributeTypeMap;
|
|
9
|
-
};
|
|
10
|
-
Definition.discriminator = undefined;
|
|
11
|
-
Definition.attributeTypeMap = [
|
|
12
|
-
{
|
|
13
|
-
name: 'query',
|
|
14
|
-
baseName: 'query',
|
|
15
|
-
type: 'string',
|
|
16
|
-
},
|
|
17
|
-
{
|
|
18
|
-
name: 'type',
|
|
19
|
-
baseName: 'type',
|
|
20
|
-
type: 'Definition.TypeEnum',
|
|
21
|
-
},
|
|
22
|
-
];
|
|
23
|
-
return Definition;
|
|
24
|
-
}());
|
|
25
|
-
exports.Definition = Definition;
|
|
26
|
-
(function (Definition) {
|
|
27
|
-
var TypeEnum;
|
|
28
|
-
(function (TypeEnum) {
|
|
29
|
-
TypeEnum[TypeEnum["ACCOUNTS"] = 'ACCOUNTS'] = "ACCOUNTS";
|
|
30
|
-
TypeEnum[TypeEnum["USERS"] = 'USERS'] = "USERS";
|
|
31
|
-
})(TypeEnum = Definition.TypeEnum || (Definition.TypeEnum = {}));
|
|
32
|
-
})(Definition = exports.Definition || (exports.Definition = {}));
|
|
33
|
-
exports.Definition = Definition;
|
|
34
|
-
//# sourceMappingURL=definition.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"definition.js","sourceRoot":"","sources":["../../model/definition.ts"],"names":[],"mappings":";;;AAiBA;IAAA;IAgCA,CAAC;IAHU,8BAAmB,GAA1B;QACI,OAAO,UAAU,CAAC,gBAAgB,CAAC;IACvC,CAAC;IArBM,wBAAa,GAAuB,SAAS,CAAC;IAE9C,2BAAgB,GAIlB;QACD;YACI,IAAI,EAAE,OAAO;YACb,QAAQ,EAAE,OAAO;YACjB,IAAI,EAAE,QAAQ;SACjB;QACD;YACI,IAAI,EAAE,MAAM;YACZ,QAAQ,EAAE,MAAM;YAChB,IAAI,EAAE,qBAAqB;SAC9B;KACJ,CAAC;IAKN,iBAAC;CAAA,AAhCD,IAgCC;AAhCY,gCAAU;AAkCvB,WAAiB,UAAU;IACvB,IAAY,QAGX;IAHD,WAAY,QAAQ;QAChB,gCAAgB,UAAU,cAAA,CAAA;QAC1B,6BAAa,OAAO,WAAA,CAAA;IACxB,CAAC,EAHW,QAAQ,GAAR,mBAAQ,KAAR,mBAAQ,QAGnB;AACL,CAAC,EALgB,UAAU,GAAV,kBAAU,KAAV,kBAAU,QAK1B;AAvCY,gCAAU"}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
export declare class Definition1 {
|
|
2
|
-
'query': string;
|
|
3
|
-
'type': Definition1.TypeEnum;
|
|
4
|
-
static discriminator: string | undefined;
|
|
5
|
-
static attributeTypeMap: Array<{
|
|
6
|
-
name: string;
|
|
7
|
-
baseName: string;
|
|
8
|
-
type: string;
|
|
9
|
-
}>;
|
|
10
|
-
static getAttributeTypeMap(): {
|
|
11
|
-
name: string;
|
|
12
|
-
baseName: string;
|
|
13
|
-
type: string;
|
|
14
|
-
}[];
|
|
15
|
-
}
|
|
16
|
-
export declare namespace Definition1 {
|
|
17
|
-
enum TypeEnum {
|
|
18
|
-
ACCOUNTS,
|
|
19
|
-
USERS
|
|
20
|
-
}
|
|
21
|
-
}
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.Definition1 = void 0;
|
|
4
|
-
var Definition1 = (function () {
|
|
5
|
-
function Definition1() {
|
|
6
|
-
}
|
|
7
|
-
Definition1.getAttributeTypeMap = function () {
|
|
8
|
-
return Definition1.attributeTypeMap;
|
|
9
|
-
};
|
|
10
|
-
Definition1.discriminator = undefined;
|
|
11
|
-
Definition1.attributeTypeMap = [
|
|
12
|
-
{
|
|
13
|
-
name: 'query',
|
|
14
|
-
baseName: 'query',
|
|
15
|
-
type: 'string',
|
|
16
|
-
},
|
|
17
|
-
{
|
|
18
|
-
name: 'type',
|
|
19
|
-
baseName: 'type',
|
|
20
|
-
type: 'Definition1.TypeEnum',
|
|
21
|
-
},
|
|
22
|
-
];
|
|
23
|
-
return Definition1;
|
|
24
|
-
}());
|
|
25
|
-
exports.Definition1 = Definition1;
|
|
26
|
-
(function (Definition1) {
|
|
27
|
-
var TypeEnum;
|
|
28
|
-
(function (TypeEnum) {
|
|
29
|
-
TypeEnum[TypeEnum["ACCOUNTS"] = 'ACCOUNTS'] = "ACCOUNTS";
|
|
30
|
-
TypeEnum[TypeEnum["USERS"] = 'USERS'] = "USERS";
|
|
31
|
-
})(TypeEnum = Definition1.TypeEnum || (Definition1.TypeEnum = {}));
|
|
32
|
-
})(Definition1 = exports.Definition1 || (exports.Definition1 = {}));
|
|
33
|
-
exports.Definition1 = Definition1;
|
|
34
|
-
//# sourceMappingURL=definition1.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"definition1.js","sourceRoot":"","sources":["../../model/definition1.ts"],"names":[],"mappings":";;;AAiBA;IAAA;IAgCA,CAAC;IAHU,+BAAmB,GAA1B;QACI,OAAO,WAAW,CAAC,gBAAgB,CAAC;IACxC,CAAC;IArBM,yBAAa,GAAuB,SAAS,CAAC;IAE9C,4BAAgB,GAIlB;QACD;YACI,IAAI,EAAE,OAAO;YACb,QAAQ,EAAE,OAAO;YACjB,IAAI,EAAE,QAAQ;SACjB;QACD;YACI,IAAI,EAAE,MAAM;YACZ,QAAQ,EAAE,MAAM;YAChB,IAAI,EAAE,sBAAsB;SAC/B;KACJ,CAAC;IAKN,kBAAC;CAAA,AAhCD,IAgCC;AAhCY,kCAAW;AAkCxB,WAAiB,WAAW;IACxB,IAAY,QAGX;IAHD,WAAY,QAAQ;QAChB,gCAAgB,UAAU,cAAA,CAAA;QAC1B,6BAAa,OAAO,WAAA,CAAA;IACxB,CAAC,EAHW,QAAQ,GAAR,oBAAQ,KAAR,oBAAQ,QAGnB;AACL,CAAC,EALgB,WAAW,GAAX,mBAAW,KAAX,mBAAW,QAK3B;AAvCY,kCAAW"}
|
package/dist/model/function.d.ts
DELETED
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import { FunctionSettingV1 } from './functionSettingV1';
|
|
2
|
-
export declare class Function {
|
|
3
|
-
'id'?: string;
|
|
4
|
-
'resourceType'?: Function.ResourceTypeEnum;
|
|
5
|
-
'createdAt'?: string;
|
|
6
|
-
'createdBy'?: string;
|
|
7
|
-
'code'?: string;
|
|
8
|
-
'deployedAt'?: string | null;
|
|
9
|
-
'settings'?: Array<FunctionSettingV1>;
|
|
10
|
-
'displayName'?: string;
|
|
11
|
-
'description'?: string;
|
|
12
|
-
'logoUrl'?: string;
|
|
13
|
-
'previewWebhookUrl'?: string;
|
|
14
|
-
'batchMaxCount'?: number;
|
|
15
|
-
'catalogId'?: string;
|
|
16
|
-
'isLatestVersion'?: boolean;
|
|
17
|
-
static discriminator: string | undefined;
|
|
18
|
-
static attributeTypeMap: Array<{
|
|
19
|
-
name: string;
|
|
20
|
-
baseName: string;
|
|
21
|
-
type: string;
|
|
22
|
-
}>;
|
|
23
|
-
static getAttributeTypeMap(): {
|
|
24
|
-
name: string;
|
|
25
|
-
baseName: string;
|
|
26
|
-
type: string;
|
|
27
|
-
}[];
|
|
28
|
-
}
|
|
29
|
-
export declare namespace Function {
|
|
30
|
-
enum ResourceTypeEnum {
|
|
31
|
-
DESTINATION,
|
|
32
|
-
INSERT_DESTINATION,
|
|
33
|
-
INSERT_SOURCE,
|
|
34
|
-
SOURCE
|
|
35
|
-
}
|
|
36
|
-
}
|
package/dist/model/function.js
DELETED
|
@@ -1,96 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.Function = void 0;
|
|
4
|
-
var Function = (function () {
|
|
5
|
-
function Function() {
|
|
6
|
-
}
|
|
7
|
-
Function.getAttributeTypeMap = function () {
|
|
8
|
-
return Function.attributeTypeMap;
|
|
9
|
-
};
|
|
10
|
-
Function.discriminator = undefined;
|
|
11
|
-
Function.attributeTypeMap = [
|
|
12
|
-
{
|
|
13
|
-
name: 'id',
|
|
14
|
-
baseName: 'id',
|
|
15
|
-
type: 'string',
|
|
16
|
-
},
|
|
17
|
-
{
|
|
18
|
-
name: 'resourceType',
|
|
19
|
-
baseName: 'resourceType',
|
|
20
|
-
type: 'Function.ResourceTypeEnum',
|
|
21
|
-
},
|
|
22
|
-
{
|
|
23
|
-
name: 'createdAt',
|
|
24
|
-
baseName: 'createdAt',
|
|
25
|
-
type: 'string',
|
|
26
|
-
},
|
|
27
|
-
{
|
|
28
|
-
name: 'createdBy',
|
|
29
|
-
baseName: 'createdBy',
|
|
30
|
-
type: 'string',
|
|
31
|
-
},
|
|
32
|
-
{
|
|
33
|
-
name: 'code',
|
|
34
|
-
baseName: 'code',
|
|
35
|
-
type: 'string',
|
|
36
|
-
},
|
|
37
|
-
{
|
|
38
|
-
name: 'deployedAt',
|
|
39
|
-
baseName: 'deployedAt',
|
|
40
|
-
type: 'string',
|
|
41
|
-
},
|
|
42
|
-
{
|
|
43
|
-
name: 'settings',
|
|
44
|
-
baseName: 'settings',
|
|
45
|
-
type: 'Array<FunctionSettingV1>',
|
|
46
|
-
},
|
|
47
|
-
{
|
|
48
|
-
name: 'displayName',
|
|
49
|
-
baseName: 'displayName',
|
|
50
|
-
type: 'string',
|
|
51
|
-
},
|
|
52
|
-
{
|
|
53
|
-
name: 'description',
|
|
54
|
-
baseName: 'description',
|
|
55
|
-
type: 'string',
|
|
56
|
-
},
|
|
57
|
-
{
|
|
58
|
-
name: 'logoUrl',
|
|
59
|
-
baseName: 'logoUrl',
|
|
60
|
-
type: 'string',
|
|
61
|
-
},
|
|
62
|
-
{
|
|
63
|
-
name: 'previewWebhookUrl',
|
|
64
|
-
baseName: 'previewWebhookUrl',
|
|
65
|
-
type: 'string',
|
|
66
|
-
},
|
|
67
|
-
{
|
|
68
|
-
name: 'batchMaxCount',
|
|
69
|
-
baseName: 'batchMaxCount',
|
|
70
|
-
type: 'number',
|
|
71
|
-
},
|
|
72
|
-
{
|
|
73
|
-
name: 'catalogId',
|
|
74
|
-
baseName: 'catalogId',
|
|
75
|
-
type: 'string',
|
|
76
|
-
},
|
|
77
|
-
{
|
|
78
|
-
name: 'isLatestVersion',
|
|
79
|
-
baseName: 'isLatestVersion',
|
|
80
|
-
type: 'boolean',
|
|
81
|
-
},
|
|
82
|
-
];
|
|
83
|
-
return Function;
|
|
84
|
-
}());
|
|
85
|
-
exports.Function = Function;
|
|
86
|
-
(function (Function) {
|
|
87
|
-
var ResourceTypeEnum;
|
|
88
|
-
(function (ResourceTypeEnum) {
|
|
89
|
-
ResourceTypeEnum[ResourceTypeEnum["DESTINATION"] = 'DESTINATION'] = "DESTINATION";
|
|
90
|
-
ResourceTypeEnum[ResourceTypeEnum["INSERT_DESTINATION"] = 'INSERT_DESTINATION'] = "INSERT_DESTINATION";
|
|
91
|
-
ResourceTypeEnum[ResourceTypeEnum["INSERT_SOURCE"] = 'INSERT_SOURCE'] = "INSERT_SOURCE";
|
|
92
|
-
ResourceTypeEnum[ResourceTypeEnum["SOURCE"] = 'SOURCE'] = "SOURCE";
|
|
93
|
-
})(ResourceTypeEnum = Function.ResourceTypeEnum || (Function.ResourceTypeEnum = {}));
|
|
94
|
-
})(Function = exports.Function || (exports.Function = {}));
|
|
95
|
-
exports.Function = Function;
|
|
96
|
-
//# sourceMappingURL=function.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"function.js","sourceRoot":"","sources":["../../model/function.ts"],"names":[],"mappings":";;;AAkBA;IAAA;IA4IA,CAAC;IAHU,4BAAmB,GAA1B;QACI,OAAO,QAAQ,CAAC,gBAAgB,CAAC;IACrC,CAAC;IAjFM,sBAAa,GAAuB,SAAS,CAAC;IAE9C,yBAAgB,GAIlB;QACD;YACI,IAAI,EAAE,IAAI;YACV,QAAQ,EAAE,IAAI;YACd,IAAI,EAAE,QAAQ;SACjB;QACD;YACI,IAAI,EAAE,cAAc;YACpB,QAAQ,EAAE,cAAc;YACxB,IAAI,EAAE,2BAA2B;SACpC;QACD;YACI,IAAI,EAAE,WAAW;YACjB,QAAQ,EAAE,WAAW;YACrB,IAAI,EAAE,QAAQ;SACjB;QACD;YACI,IAAI,EAAE,WAAW;YACjB,QAAQ,EAAE,WAAW;YACrB,IAAI,EAAE,QAAQ;SACjB;QACD;YACI,IAAI,EAAE,MAAM;YACZ,QAAQ,EAAE,MAAM;YAChB,IAAI,EAAE,QAAQ;SACjB;QACD;YACI,IAAI,EAAE,YAAY;YAClB,QAAQ,EAAE,YAAY;YACtB,IAAI,EAAE,QAAQ;SACjB;QACD;YACI,IAAI,EAAE,UAAU;YAChB,QAAQ,EAAE,UAAU;YACpB,IAAI,EAAE,0BAA0B;SACnC;QACD;YACI,IAAI,EAAE,aAAa;YACnB,QAAQ,EAAE,aAAa;YACvB,IAAI,EAAE,QAAQ;SACjB;QACD;YACI,IAAI,EAAE,aAAa;YACnB,QAAQ,EAAE,aAAa;YACvB,IAAI,EAAE,QAAQ;SACjB;QACD;YACI,IAAI,EAAE,SAAS;YACf,QAAQ,EAAE,SAAS;YACnB,IAAI,EAAE,QAAQ;SACjB;QACD;YACI,IAAI,EAAE,mBAAmB;YACzB,QAAQ,EAAE,mBAAmB;YAC7B,IAAI,EAAE,QAAQ;SACjB;QACD;YACI,IAAI,EAAE,eAAe;YACrB,QAAQ,EAAE,eAAe;YACzB,IAAI,EAAE,QAAQ;SACjB;QACD;YACI,IAAI,EAAE,WAAW;YACjB,QAAQ,EAAE,WAAW;YACrB,IAAI,EAAE,QAAQ;SACjB;QACD;YACI,IAAI,EAAE,iBAAiB;YACvB,QAAQ,EAAE,iBAAiB;YAC3B,IAAI,EAAE,SAAS;SAClB;KACJ,CAAC;IAKN,eAAC;CAAA,AA5ID,IA4IC;AA5IY,4BAAQ;AA8IrB,WAAiB,QAAQ;IACrB,IAAY,gBAKX;IALD,WAAY,gBAAgB;QACxB,mDAAmB,aAAa,iBAAA,CAAA;QAChC,0DAA0B,oBAAoB,wBAAA,CAAA;QAC9C,qDAAqB,eAAe,mBAAA,CAAA;QACpC,8CAAc,QAAQ,YAAA,CAAA;IAC1B,CAAC,EALW,gBAAgB,GAAhB,yBAAgB,KAAhB,yBAAgB,QAK3B;AACL,CAAC,EAPgB,QAAQ,GAAR,gBAAQ,KAAR,gBAAQ,QAOxB;AArJY,4BAAQ"}
|
package/model/definition.ts
DELETED
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Segment Public API
|
|
3
|
-
* The Segment Public API helps you manage your Segment Workspaces and its resources. You can use the API to perform CRUD (create, read, update, delete) operations at no extra charge. This includes working with resources such as Sources, Destinations, Warehouses, Tracking Plans, and the Segment Destinations and Sources Catalogs. All CRUD endpoints in the API follow REST conventions and use standard HTTP methods. Different URL endpoints represent different resources in a Workspace. See the next sections for more information on how to use the Segment Public API.
|
|
4
|
-
*
|
|
5
|
-
* The version of the OpenAPI document: 53.1.0
|
|
6
|
-
* Contact: friends@segment.com
|
|
7
|
-
*
|
|
8
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
-
* https://openapi-generator.tech
|
|
10
|
-
* Do not edit the class manually.
|
|
11
|
-
*/
|
|
12
|
-
|
|
13
|
-
import { RequestFile } from './models';
|
|
14
|
-
|
|
15
|
-
/**
|
|
16
|
-
* Query language definition and type.
|
|
17
|
-
*/
|
|
18
|
-
export class Definition {
|
|
19
|
-
/**
|
|
20
|
-
* The query language string defining the computed trait aggregation criteria. For guidance on using the query language, see the [Segment documentation site](https://segment.com/docs/api/public-api/query-language).
|
|
21
|
-
*/
|
|
22
|
-
'query': string;
|
|
23
|
-
/**
|
|
24
|
-
* The underlying data type being aggregated for this computed trait. Possible values: users, accounts.
|
|
25
|
-
*/
|
|
26
|
-
'type': Definition.TypeEnum;
|
|
27
|
-
|
|
28
|
-
static discriminator: string | undefined = undefined;
|
|
29
|
-
|
|
30
|
-
static attributeTypeMap: Array<{
|
|
31
|
-
name: string;
|
|
32
|
-
baseName: string;
|
|
33
|
-
type: string;
|
|
34
|
-
}> = [
|
|
35
|
-
{
|
|
36
|
-
name: 'query',
|
|
37
|
-
baseName: 'query',
|
|
38
|
-
type: 'string',
|
|
39
|
-
},
|
|
40
|
-
{
|
|
41
|
-
name: 'type',
|
|
42
|
-
baseName: 'type',
|
|
43
|
-
type: 'Definition.TypeEnum',
|
|
44
|
-
},
|
|
45
|
-
];
|
|
46
|
-
|
|
47
|
-
static getAttributeTypeMap() {
|
|
48
|
-
return Definition.attributeTypeMap;
|
|
49
|
-
}
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
export namespace Definition {
|
|
53
|
-
export enum TypeEnum {
|
|
54
|
-
ACCOUNTS = <any>'ACCOUNTS',
|
|
55
|
-
USERS = <any>'USERS',
|
|
56
|
-
}
|
|
57
|
-
}
|
package/model/definition1.ts
DELETED
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Segment Public API
|
|
3
|
-
* The Segment Public API helps you manage your Segment Workspaces and its resources. You can use the API to perform CRUD (create, read, update, delete) operations at no extra charge. This includes working with resources such as Sources, Destinations, Warehouses, Tracking Plans, and the Segment Destinations and Sources Catalogs. All CRUD endpoints in the API follow REST conventions and use standard HTTP methods. Different URL endpoints represent different resources in a Workspace. See the next sections for more information on how to use the Segment Public API.
|
|
4
|
-
*
|
|
5
|
-
* The version of the OpenAPI document: 53.1.0
|
|
6
|
-
* Contact: friends@segment.com
|
|
7
|
-
*
|
|
8
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
-
* https://openapi-generator.tech
|
|
10
|
-
* Do not edit the class manually.
|
|
11
|
-
*/
|
|
12
|
-
|
|
13
|
-
import { RequestFile } from './models';
|
|
14
|
-
|
|
15
|
-
/**
|
|
16
|
-
* Query language definition and type.
|
|
17
|
-
*/
|
|
18
|
-
export class Definition1 {
|
|
19
|
-
/**
|
|
20
|
-
* The query language string defining the audience segmentation criteria.
|
|
21
|
-
*/
|
|
22
|
-
'query': string;
|
|
23
|
-
/**
|
|
24
|
-
* The underlying data type being segmented for this audience. Possible values: users, accounts.
|
|
25
|
-
*/
|
|
26
|
-
'type': Definition1.TypeEnum;
|
|
27
|
-
|
|
28
|
-
static discriminator: string | undefined = undefined;
|
|
29
|
-
|
|
30
|
-
static attributeTypeMap: Array<{
|
|
31
|
-
name: string;
|
|
32
|
-
baseName: string;
|
|
33
|
-
type: string;
|
|
34
|
-
}> = [
|
|
35
|
-
{
|
|
36
|
-
name: 'query',
|
|
37
|
-
baseName: 'query',
|
|
38
|
-
type: 'string',
|
|
39
|
-
},
|
|
40
|
-
{
|
|
41
|
-
name: 'type',
|
|
42
|
-
baseName: 'type',
|
|
43
|
-
type: 'Definition1.TypeEnum',
|
|
44
|
-
},
|
|
45
|
-
];
|
|
46
|
-
|
|
47
|
-
static getAttributeTypeMap() {
|
|
48
|
-
return Definition1.attributeTypeMap;
|
|
49
|
-
}
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
export namespace Definition1 {
|
|
53
|
-
export enum TypeEnum {
|
|
54
|
-
ACCOUNTS = <any>'ACCOUNTS',
|
|
55
|
-
USERS = <any>'USERS',
|
|
56
|
-
}
|
|
57
|
-
}
|
package/model/function.ts
DELETED
|
@@ -1,168 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Segment Public API
|
|
3
|
-
* The Segment Public API helps you manage your Segment Workspaces and its resources. You can use the API to perform CRUD (create, read, update, delete) operations at no extra charge. This includes working with resources such as Sources, Destinations, Warehouses, Tracking Plans, and the Segment Destinations and Sources Catalogs. All CRUD endpoints in the API follow REST conventions and use standard HTTP methods. Different URL endpoints represent different resources in a Workspace. See the next sections for more information on how to use the Segment Public API.
|
|
4
|
-
*
|
|
5
|
-
* The version of the OpenAPI document: 53.1.0
|
|
6
|
-
* Contact: friends@segment.com
|
|
7
|
-
*
|
|
8
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
-
* https://openapi-generator.tech
|
|
10
|
-
* Do not edit the class manually.
|
|
11
|
-
*/
|
|
12
|
-
|
|
13
|
-
import { RequestFile } from './models';
|
|
14
|
-
import { FunctionSettingV1 } from './functionSettingV1';
|
|
15
|
-
|
|
16
|
-
/**
|
|
17
|
-
* A Function object.
|
|
18
|
-
*/
|
|
19
|
-
export class Function {
|
|
20
|
-
/**
|
|
21
|
-
* An identifier for this Function.
|
|
22
|
-
*/
|
|
23
|
-
'id'?: string;
|
|
24
|
-
/**
|
|
25
|
-
* The Function type. Config API note: equal to `type`.
|
|
26
|
-
*/
|
|
27
|
-
'resourceType'?: Function.ResourceTypeEnum;
|
|
28
|
-
/**
|
|
29
|
-
* The time this Function was created.
|
|
30
|
-
*/
|
|
31
|
-
'createdAt'?: string;
|
|
32
|
-
/**
|
|
33
|
-
* The id of the user who created this Function.
|
|
34
|
-
*/
|
|
35
|
-
'createdBy'?: string;
|
|
36
|
-
/**
|
|
37
|
-
* The Function code.
|
|
38
|
-
*/
|
|
39
|
-
'code'?: string;
|
|
40
|
-
/**
|
|
41
|
-
* The time of this Function\'s last deployment.
|
|
42
|
-
*/
|
|
43
|
-
'deployedAt'?: string | null;
|
|
44
|
-
/**
|
|
45
|
-
* The list of settings for this Function.
|
|
46
|
-
*/
|
|
47
|
-
'settings'?: Array<FunctionSettingV1>;
|
|
48
|
-
/**
|
|
49
|
-
* A display name for this Function.
|
|
50
|
-
*/
|
|
51
|
-
'displayName'?: string;
|
|
52
|
-
/**
|
|
53
|
-
* A description for this Function.
|
|
54
|
-
*/
|
|
55
|
-
'description'?: string;
|
|
56
|
-
/**
|
|
57
|
-
* The URL of the logo for this Function.
|
|
58
|
-
*/
|
|
59
|
-
'logoUrl'?: string;
|
|
60
|
-
/**
|
|
61
|
-
* The preview webhook URL for this Function.
|
|
62
|
-
*/
|
|
63
|
-
'previewWebhookUrl'?: string;
|
|
64
|
-
/**
|
|
65
|
-
* The max count of the batch for this Function.
|
|
66
|
-
*/
|
|
67
|
-
'batchMaxCount'?: number;
|
|
68
|
-
/**
|
|
69
|
-
* The catalog id of this Function.
|
|
70
|
-
*/
|
|
71
|
-
'catalogId'?: string;
|
|
72
|
-
/**
|
|
73
|
-
* Whether the deployment of this Function is the latest version.
|
|
74
|
-
*/
|
|
75
|
-
'isLatestVersion'?: boolean;
|
|
76
|
-
|
|
77
|
-
static discriminator: string | undefined = undefined;
|
|
78
|
-
|
|
79
|
-
static attributeTypeMap: Array<{
|
|
80
|
-
name: string;
|
|
81
|
-
baseName: string;
|
|
82
|
-
type: string;
|
|
83
|
-
}> = [
|
|
84
|
-
{
|
|
85
|
-
name: 'id',
|
|
86
|
-
baseName: 'id',
|
|
87
|
-
type: 'string',
|
|
88
|
-
},
|
|
89
|
-
{
|
|
90
|
-
name: 'resourceType',
|
|
91
|
-
baseName: 'resourceType',
|
|
92
|
-
type: 'Function.ResourceTypeEnum',
|
|
93
|
-
},
|
|
94
|
-
{
|
|
95
|
-
name: 'createdAt',
|
|
96
|
-
baseName: 'createdAt',
|
|
97
|
-
type: 'string',
|
|
98
|
-
},
|
|
99
|
-
{
|
|
100
|
-
name: 'createdBy',
|
|
101
|
-
baseName: 'createdBy',
|
|
102
|
-
type: 'string',
|
|
103
|
-
},
|
|
104
|
-
{
|
|
105
|
-
name: 'code',
|
|
106
|
-
baseName: 'code',
|
|
107
|
-
type: 'string',
|
|
108
|
-
},
|
|
109
|
-
{
|
|
110
|
-
name: 'deployedAt',
|
|
111
|
-
baseName: 'deployedAt',
|
|
112
|
-
type: 'string',
|
|
113
|
-
},
|
|
114
|
-
{
|
|
115
|
-
name: 'settings',
|
|
116
|
-
baseName: 'settings',
|
|
117
|
-
type: 'Array<FunctionSettingV1>',
|
|
118
|
-
},
|
|
119
|
-
{
|
|
120
|
-
name: 'displayName',
|
|
121
|
-
baseName: 'displayName',
|
|
122
|
-
type: 'string',
|
|
123
|
-
},
|
|
124
|
-
{
|
|
125
|
-
name: 'description',
|
|
126
|
-
baseName: 'description',
|
|
127
|
-
type: 'string',
|
|
128
|
-
},
|
|
129
|
-
{
|
|
130
|
-
name: 'logoUrl',
|
|
131
|
-
baseName: 'logoUrl',
|
|
132
|
-
type: 'string',
|
|
133
|
-
},
|
|
134
|
-
{
|
|
135
|
-
name: 'previewWebhookUrl',
|
|
136
|
-
baseName: 'previewWebhookUrl',
|
|
137
|
-
type: 'string',
|
|
138
|
-
},
|
|
139
|
-
{
|
|
140
|
-
name: 'batchMaxCount',
|
|
141
|
-
baseName: 'batchMaxCount',
|
|
142
|
-
type: 'number',
|
|
143
|
-
},
|
|
144
|
-
{
|
|
145
|
-
name: 'catalogId',
|
|
146
|
-
baseName: 'catalogId',
|
|
147
|
-
type: 'string',
|
|
148
|
-
},
|
|
149
|
-
{
|
|
150
|
-
name: 'isLatestVersion',
|
|
151
|
-
baseName: 'isLatestVersion',
|
|
152
|
-
type: 'boolean',
|
|
153
|
-
},
|
|
154
|
-
];
|
|
155
|
-
|
|
156
|
-
static getAttributeTypeMap() {
|
|
157
|
-
return Function.attributeTypeMap;
|
|
158
|
-
}
|
|
159
|
-
}
|
|
160
|
-
|
|
161
|
-
export namespace Function {
|
|
162
|
-
export enum ResourceTypeEnum {
|
|
163
|
-
DESTINATION = <any>'DESTINATION',
|
|
164
|
-
INSERT_DESTINATION = <any>'INSERT_DESTINATION',
|
|
165
|
-
INSERT_SOURCE = <any>'INSERT_SOURCE',
|
|
166
|
-
SOURCE = <any>'SOURCE',
|
|
167
|
-
}
|
|
168
|
-
}
|