weflayr 0.22.1 → 0.22.2
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/api/generated/facade.gen.d.ts +39 -94
- package/dist/api/generated/facade.gen.js +7 -10
- package/dist/api/generated/index.d.ts +2 -2
- package/dist/api/generated/index.js +7 -10
- package/dist/api/generated/sdk.gen.d.ts +15 -27
- package/dist/api/generated/sdk.gen.js +27 -54
- package/dist/api/generated/types.gen.d.ts +107 -166
- package/dist/api/index.d.ts +1 -1
- package/dist/api/index.js +1 -1
- package/package.json +1 -1
- package/scripts/generate_facade.mjs +2 -2
- package/src/api/generated/facade.gen.ts +31 -49
- package/src/api/generated/index.ts +2 -2
- package/src/api/generated/sdk.gen.ts +22 -49
- package/src/api/generated/types.gen.ts +112 -186
- package/src/api/index.ts +1 -1
- package/tests/api/index.test.js +100 -69
|
@@ -1,7 +1,20 @@
|
|
|
1
1
|
import type { CamelCaseDeep } from '../caseConversion.js';
|
|
2
2
|
import type * as generatedTypes from './types.gen.js';
|
|
3
|
-
export declare const
|
|
3
|
+
export declare const deleteRevenue: (options: import("../makeEndpoint.js").ClientOption & {
|
|
4
|
+
query: {
|
|
5
|
+
customerNames: string[];
|
|
6
|
+
monthStart?: string | undefined;
|
|
7
|
+
monthEnd?: string | undefined;
|
|
8
|
+
};
|
|
9
|
+
body?: undefined;
|
|
10
|
+
path?: undefined;
|
|
11
|
+
}) => Promise<import("../makeEndpoint.js").CallResult<{
|
|
12
|
+
ok: boolean;
|
|
13
|
+
rowsDeleted: number;
|
|
14
|
+
}, CamelCaseDeep<generatedTypes.DeleteRevenueError>>>;
|
|
15
|
+
export declare const getRevenue: (options: import("../makeEndpoint.js").ClientOption & {
|
|
4
16
|
query?: {
|
|
17
|
+
customerNames?: string[] | undefined;
|
|
5
18
|
cursor?: string | undefined;
|
|
6
19
|
limit?: number | undefined;
|
|
7
20
|
} | undefined;
|
|
@@ -9,11 +22,11 @@ export declare const getAllRevenue: (options: import("../makeEndpoint.js").Clien
|
|
|
9
22
|
path?: undefined;
|
|
10
23
|
}) => Promise<import("../makeEndpoint.js").CallResult<{
|
|
11
24
|
rows: {
|
|
12
|
-
userDefinedId: string;
|
|
13
25
|
metricName: string;
|
|
14
26
|
month: string;
|
|
15
|
-
amount:
|
|
27
|
+
amount: number;
|
|
16
28
|
source: string;
|
|
29
|
+
revenueId: string;
|
|
17
30
|
customerName: string;
|
|
18
31
|
}[];
|
|
19
32
|
nextCursor: string | null;
|
|
@@ -25,9 +38,9 @@ export declare const setRevenue: (options: import("../makeEndpoint.js").ClientOp
|
|
|
25
38
|
query?: undefined;
|
|
26
39
|
body: {
|
|
27
40
|
rows: {
|
|
28
|
-
|
|
41
|
+
revenueId?: string | null | undefined;
|
|
29
42
|
customerName: string;
|
|
30
|
-
amount:
|
|
43
|
+
amount: number;
|
|
31
44
|
month?: string | null | undefined;
|
|
32
45
|
monthStart?: string | null | undefined;
|
|
33
46
|
monthEnd?: string | null | undefined;
|
|
@@ -39,41 +52,21 @@ export declare const setRevenue: (options: import("../makeEndpoint.js").ClientOp
|
|
|
39
52
|
ok: boolean;
|
|
40
53
|
rowsInserted: number;
|
|
41
54
|
}, CamelCaseDeep<generatedTypes.SetRevenueError>>>;
|
|
42
|
-
export declare const
|
|
43
|
-
query
|
|
55
|
+
export declare const deleteKeyMetrics: (options: import("../makeEndpoint.js").ClientOption & {
|
|
56
|
+
query: {
|
|
57
|
+
userNames: string[];
|
|
44
58
|
monthStart?: string | undefined;
|
|
45
59
|
monthEnd?: string | undefined;
|
|
46
|
-
} | undefined;
|
|
47
|
-
body?: undefined;
|
|
48
|
-
path: {
|
|
49
|
-
customerName: string;
|
|
50
60
|
};
|
|
61
|
+
body?: undefined;
|
|
62
|
+
path?: undefined;
|
|
51
63
|
}) => Promise<import("../makeEndpoint.js").CallResult<{
|
|
52
64
|
ok: boolean;
|
|
53
65
|
rowsDeleted: number;
|
|
54
|
-
}, CamelCaseDeep<generatedTypes.
|
|
55
|
-
export declare const
|
|
56
|
-
query?: undefined;
|
|
57
|
-
body?: undefined;
|
|
58
|
-
path: {
|
|
59
|
-
customerName: string;
|
|
60
|
-
};
|
|
61
|
-
}) => Promise<import("../makeEndpoint.js").CallResult<{
|
|
62
|
-
rows: {
|
|
63
|
-
userDefinedId: string;
|
|
64
|
-
metricName: string;
|
|
65
|
-
month: string;
|
|
66
|
-
amount: string;
|
|
67
|
-
source: string;
|
|
68
|
-
customerName: string;
|
|
69
|
-
}[];
|
|
70
|
-
nextCursor: string | null;
|
|
71
|
-
hasMore: boolean;
|
|
72
|
-
}, {
|
|
73
|
-
error: string;
|
|
74
|
-
}>>;
|
|
75
|
-
export declare const getAllKeyMetrics: (options: import("../makeEndpoint.js").ClientOption & {
|
|
66
|
+
}, CamelCaseDeep<generatedTypes.DeleteKeyMetricsError>>>;
|
|
67
|
+
export declare const getKeyMetrics: (options: import("../makeEndpoint.js").ClientOption & {
|
|
76
68
|
query?: {
|
|
69
|
+
userNames?: string[] | undefined;
|
|
77
70
|
cursor?: string | undefined;
|
|
78
71
|
limit?: number | undefined;
|
|
79
72
|
} | undefined;
|
|
@@ -81,11 +74,11 @@ export declare const getAllKeyMetrics: (options: import("../makeEndpoint.js").Cl
|
|
|
81
74
|
path?: undefined;
|
|
82
75
|
}) => Promise<import("../makeEndpoint.js").CallResult<{
|
|
83
76
|
rows: {
|
|
84
|
-
userDefinedId: string;
|
|
85
77
|
metricName: string;
|
|
86
78
|
month: string;
|
|
87
|
-
amount:
|
|
79
|
+
amount: number;
|
|
88
80
|
source: string;
|
|
81
|
+
metricId: string;
|
|
89
82
|
userName: string;
|
|
90
83
|
}[];
|
|
91
84
|
nextCursor: string | null;
|
|
@@ -97,10 +90,10 @@ export declare const setKeyMetrics: (options: import("../makeEndpoint.js").Clien
|
|
|
97
90
|
query?: undefined;
|
|
98
91
|
body: {
|
|
99
92
|
rows: {
|
|
100
|
-
|
|
93
|
+
metricId?: string | null | undefined;
|
|
101
94
|
userName: string;
|
|
102
95
|
metricName: string;
|
|
103
|
-
amount:
|
|
96
|
+
amount: number;
|
|
104
97
|
month?: string | null | undefined;
|
|
105
98
|
monthStart?: string | null | undefined;
|
|
106
99
|
monthEnd?: string | null | undefined;
|
|
@@ -112,41 +105,19 @@ export declare const setKeyMetrics: (options: import("../makeEndpoint.js").Clien
|
|
|
112
105
|
ok: boolean;
|
|
113
106
|
rowsInserted: number;
|
|
114
107
|
}, CamelCaseDeep<generatedTypes.SetKeyMetricsError>>>;
|
|
115
|
-
export declare const
|
|
116
|
-
query
|
|
117
|
-
|
|
118
|
-
monthEnd?: string | undefined;
|
|
119
|
-
} | undefined;
|
|
120
|
-
body?: undefined;
|
|
121
|
-
path: {
|
|
122
|
-
userName: string;
|
|
108
|
+
export declare const deleteCustomersTags: (options: import("../makeEndpoint.js").ClientOption & {
|
|
109
|
+
query: {
|
|
110
|
+
customerNames: string[];
|
|
123
111
|
};
|
|
124
|
-
}) => Promise<import("../makeEndpoint.js").CallResult<{
|
|
125
|
-
ok: boolean;
|
|
126
|
-
rowsDeleted: number;
|
|
127
|
-
}, CamelCaseDeep<generatedTypes.DeleteUserKeyMetricsError>>>;
|
|
128
|
-
export declare const getUserKeyMetrics: (options: import("../makeEndpoint.js").ClientOption & {
|
|
129
|
-
query?: undefined;
|
|
130
112
|
body?: undefined;
|
|
131
|
-
path
|
|
132
|
-
userName: string;
|
|
133
|
-
};
|
|
113
|
+
path?: undefined;
|
|
134
114
|
}) => Promise<import("../makeEndpoint.js").CallResult<{
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
amount: string;
|
|
140
|
-
source: string;
|
|
141
|
-
userName: string;
|
|
142
|
-
}[];
|
|
143
|
-
nextCursor: string | null;
|
|
144
|
-
hasMore: boolean;
|
|
145
|
-
}, {
|
|
146
|
-
error: string;
|
|
147
|
-
}>>;
|
|
148
|
-
export declare const getAllCustomersTags: (options: import("../makeEndpoint.js").ClientOption & {
|
|
115
|
+
ok: boolean;
|
|
116
|
+
tagsDeleted: number;
|
|
117
|
+
}, CamelCaseDeep<generatedTypes.DeleteCustomersTagsError>>>;
|
|
118
|
+
export declare const getCustomersTags: (options: import("../makeEndpoint.js").ClientOption & {
|
|
149
119
|
query?: {
|
|
120
|
+
customerNames?: string[] | undefined;
|
|
150
121
|
cursor?: string | undefined;
|
|
151
122
|
limit?: number | undefined;
|
|
152
123
|
} | undefined;
|
|
@@ -180,29 +151,3 @@ export declare const setCustomersTags: (options: import("../makeEndpoint.js").Cl
|
|
|
180
151
|
ok: boolean;
|
|
181
152
|
customersUpdated: number;
|
|
182
153
|
}, CamelCaseDeep<generatedTypes.SetCustomersTagsError>>>;
|
|
183
|
-
export declare const deleteCustomerTags: (options: import("../makeEndpoint.js").ClientOption & {
|
|
184
|
-
query?: undefined;
|
|
185
|
-
body?: undefined;
|
|
186
|
-
path: {
|
|
187
|
-
customerName: string;
|
|
188
|
-
};
|
|
189
|
-
}) => Promise<import("../makeEndpoint.js").CallResult<{
|
|
190
|
-
ok: boolean;
|
|
191
|
-
tagsDeleted: number;
|
|
192
|
-
}, {
|
|
193
|
-
error: string;
|
|
194
|
-
}>>;
|
|
195
|
-
export declare const getCustomerTags: (options: import("../makeEndpoint.js").ClientOption & {
|
|
196
|
-
query?: undefined;
|
|
197
|
-
body?: undefined;
|
|
198
|
-
path: {
|
|
199
|
-
customerName: string;
|
|
200
|
-
};
|
|
201
|
-
}) => Promise<import("../makeEndpoint.js").CallResult<{
|
|
202
|
-
customerName: string;
|
|
203
|
-
tags: {
|
|
204
|
-
[x: string]: string;
|
|
205
|
-
};
|
|
206
|
-
}, {
|
|
207
|
-
error: string;
|
|
208
|
-
}>>;
|
|
@@ -35,18 +35,15 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
35
35
|
};
|
|
36
36
|
})();
|
|
37
37
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
38
|
-
exports.
|
|
38
|
+
exports.setCustomersTags = exports.getCustomersTags = exports.deleteCustomersTags = exports.setKeyMetrics = exports.getKeyMetrics = exports.deleteKeyMetrics = exports.setRevenue = exports.getRevenue = exports.deleteRevenue = void 0;
|
|
39
39
|
const makeEndpoint_js_1 = require("../makeEndpoint.js");
|
|
40
40
|
const generated = __importStar(require("./sdk.gen.js"));
|
|
41
|
-
exports.
|
|
41
|
+
exports.deleteRevenue = (0, makeEndpoint_js_1.makeEndpoint)(generated.deleteRevenue);
|
|
42
|
+
exports.getRevenue = (0, makeEndpoint_js_1.makeEndpoint)(generated.getRevenue);
|
|
42
43
|
exports.setRevenue = (0, makeEndpoint_js_1.makeEndpoint)(generated.setRevenue);
|
|
43
|
-
exports.
|
|
44
|
-
exports.
|
|
45
|
-
exports.getAllKeyMetrics = (0, makeEndpoint_js_1.makeEndpoint)(generated.getAllKeyMetrics);
|
|
44
|
+
exports.deleteKeyMetrics = (0, makeEndpoint_js_1.makeEndpoint)(generated.deleteKeyMetrics);
|
|
45
|
+
exports.getKeyMetrics = (0, makeEndpoint_js_1.makeEndpoint)(generated.getKeyMetrics);
|
|
46
46
|
exports.setKeyMetrics = (0, makeEndpoint_js_1.makeEndpoint)(generated.setKeyMetrics);
|
|
47
|
-
exports.
|
|
48
|
-
exports.
|
|
49
|
-
exports.getAllCustomersTags = (0, makeEndpoint_js_1.makeEndpoint)(generated.getAllCustomersTags);
|
|
47
|
+
exports.deleteCustomersTags = (0, makeEndpoint_js_1.makeEndpoint)(generated.deleteCustomersTags);
|
|
48
|
+
exports.getCustomersTags = (0, makeEndpoint_js_1.makeEndpoint)(generated.getCustomersTags);
|
|
50
49
|
exports.setCustomersTags = (0, makeEndpoint_js_1.makeEndpoint)(generated.setCustomersTags);
|
|
51
|
-
exports.deleteCustomerTags = (0, makeEndpoint_js_1.makeEndpoint)(generated.deleteCustomerTags);
|
|
52
|
-
exports.getCustomerTags = (0, makeEndpoint_js_1.makeEndpoint)(generated.getCustomerTags);
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export {
|
|
2
|
-
export type { AllCustomerTagsOutput, ApiErrorOutput, ClientOptions, CustomersUpdatedOutput, CustomerTags, CustomerTagsOutput,
|
|
1
|
+
export { deleteCustomersTags, deleteKeyMetrics, deleteRevenue, getCustomersTags, getKeyMetrics, getRevenue, type Options, setCustomersTags, setKeyMetrics, setRevenue } from './sdk.gen.js';
|
|
2
|
+
export type { AllCustomerTagsOutput, ApiErrorOutput, ClientOptions, CustomersUpdatedOutput, CustomerTags, CustomerTagsOutput, DeleteCustomersTagsData, DeleteCustomersTagsError, DeleteCustomersTagsErrors, DeleteCustomersTagsResponse, DeleteCustomersTagsResponses, DeleteKeyMetricsData, DeleteKeyMetricsError, DeleteKeyMetricsErrors, DeleteKeyMetricsResponse, DeleteKeyMetricsResponses, DeleteRevenueData, DeleteRevenueError, DeleteRevenueErrors, DeleteRevenueResponse, DeleteRevenueResponses, GetCustomersTagsData, GetCustomersTagsError, GetCustomersTagsErrors, GetCustomersTagsResponse, GetCustomersTagsResponses, GetKeyMetricsData, GetKeyMetricsError, GetKeyMetricsErrors, GetKeyMetricsResponse, GetKeyMetricsResponses, GetRevenueData, GetRevenueError, GetRevenueErrors, GetRevenueResponse, GetRevenueResponses, InvalidFieldDetail, InvalidPayloadOutput, KeyMetricOutput, KeyMetricRow, KeyMetricRowOutput, RevenueOrKeyMetricDeletedRowOutput, RevenueOrKeyMetricImportedRowOutput, RevenueOutput, RevenueRow, RevenueRowOutput, SetCustomersTagsData, SetCustomersTagsError, SetCustomersTagsErrors, SetCustomersTagsResponse, SetCustomersTagsResponses, SetCustomerTagsInput, SetKeyMetricsData, SetKeyMetricsError, SetKeyMetricsErrors, SetKeyMetricsInput, SetKeyMetricsResponse, SetKeyMetricsResponses, SetRevenueData, SetRevenueError, SetRevenueErrors, SetRevenueInput, SetRevenueResponse, SetRevenueResponses, TagsDeletedOutput } from './types.gen.js';
|
|
@@ -1,17 +1,14 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
// This file is auto-generated by @hey-api/openapi-ts
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
exports.setRevenue = exports.setKeyMetrics = exports.setCustomersTags = exports.
|
|
4
|
+
exports.setRevenue = exports.setKeyMetrics = exports.setCustomersTags = exports.getRevenue = exports.getKeyMetrics = exports.getCustomersTags = exports.deleteRevenue = exports.deleteKeyMetrics = exports.deleteCustomersTags = void 0;
|
|
5
5
|
var sdk_gen_js_1 = require("./sdk.gen.js");
|
|
6
|
-
Object.defineProperty(exports, "
|
|
7
|
-
Object.defineProperty(exports, "
|
|
8
|
-
Object.defineProperty(exports, "
|
|
9
|
-
Object.defineProperty(exports, "
|
|
10
|
-
Object.defineProperty(exports, "
|
|
11
|
-
Object.defineProperty(exports, "
|
|
12
|
-
Object.defineProperty(exports, "getCustomerRevenue", { enumerable: true, get: function () { return sdk_gen_js_1.getCustomerRevenue; } });
|
|
13
|
-
Object.defineProperty(exports, "getCustomerTags", { enumerable: true, get: function () { return sdk_gen_js_1.getCustomerTags; } });
|
|
14
|
-
Object.defineProperty(exports, "getUserKeyMetrics", { enumerable: true, get: function () { return sdk_gen_js_1.getUserKeyMetrics; } });
|
|
6
|
+
Object.defineProperty(exports, "deleteCustomersTags", { enumerable: true, get: function () { return sdk_gen_js_1.deleteCustomersTags; } });
|
|
7
|
+
Object.defineProperty(exports, "deleteKeyMetrics", { enumerable: true, get: function () { return sdk_gen_js_1.deleteKeyMetrics; } });
|
|
8
|
+
Object.defineProperty(exports, "deleteRevenue", { enumerable: true, get: function () { return sdk_gen_js_1.deleteRevenue; } });
|
|
9
|
+
Object.defineProperty(exports, "getCustomersTags", { enumerable: true, get: function () { return sdk_gen_js_1.getCustomersTags; } });
|
|
10
|
+
Object.defineProperty(exports, "getKeyMetrics", { enumerable: true, get: function () { return sdk_gen_js_1.getKeyMetrics; } });
|
|
11
|
+
Object.defineProperty(exports, "getRevenue", { enumerable: true, get: function () { return sdk_gen_js_1.getRevenue; } });
|
|
15
12
|
Object.defineProperty(exports, "setCustomersTags", { enumerable: true, get: function () { return sdk_gen_js_1.setCustomersTags; } });
|
|
16
13
|
Object.defineProperty(exports, "setKeyMetrics", { enumerable: true, get: function () { return sdk_gen_js_1.setKeyMetrics; } });
|
|
17
14
|
Object.defineProperty(exports, "setRevenue", { enumerable: true, get: function () { return sdk_gen_js_1.setRevenue; } });
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { Client, ClientMeta, Options as Options2, RequestResult, TDataShape } from './client/index.js';
|
|
2
|
-
import type {
|
|
2
|
+
import type { DeleteCustomersTagsData, DeleteCustomersTagsErrors, DeleteCustomersTagsResponses, DeleteKeyMetricsData, DeleteKeyMetricsErrors, DeleteKeyMetricsResponses, DeleteRevenueData, DeleteRevenueErrors, DeleteRevenueResponses, GetCustomersTagsData, GetCustomersTagsErrors, GetCustomersTagsResponses, GetKeyMetricsData, GetKeyMetricsErrors, GetKeyMetricsResponses, GetRevenueData, GetRevenueErrors, GetRevenueResponses, SetCustomersTagsData, SetCustomersTagsErrors, SetCustomersTagsResponses, SetKeyMetricsData, SetKeyMetricsErrors, SetKeyMetricsResponses, SetRevenueData, SetRevenueErrors, SetRevenueResponses } from './types.gen.js';
|
|
3
3
|
export type Options<TData extends TDataShape = TDataShape, ThrowOnError extends boolean = boolean, TResponse = unknown> = Options2<TData, ThrowOnError, TResponse> & {
|
|
4
4
|
/**
|
|
5
5
|
* You can provide a client instance returned by `createClient()` instead of
|
|
@@ -14,50 +14,38 @@ export type Options<TData extends TDataShape = TDataShape, ThrowOnError extends
|
|
|
14
14
|
meta?: keyof ClientMeta extends never ? Record<string, unknown> : ClientMeta;
|
|
15
15
|
};
|
|
16
16
|
/**
|
|
17
|
-
*
|
|
17
|
+
* Delete the given customers' API-uploaded revenue values.
|
|
18
18
|
*/
|
|
19
|
-
export declare const
|
|
19
|
+
export declare const deleteRevenue: <ThrowOnError extends boolean = false>(options: Options<DeleteRevenueData, ThrowOnError>) => RequestResult<DeleteRevenueResponses, DeleteRevenueErrors, ThrowOnError>;
|
|
20
20
|
/**
|
|
21
|
-
*
|
|
21
|
+
* The project's revenue values, one row per booked value; pass customer_names to narrow to specific customers, omit it for every customer's.
|
|
22
22
|
*/
|
|
23
|
-
export declare const
|
|
23
|
+
export declare const getRevenue: <ThrowOnError extends boolean = false>(options?: Options<GetRevenueData, ThrowOnError>) => RequestResult<GetRevenueResponses, GetRevenueErrors, ThrowOnError>;
|
|
24
24
|
/**
|
|
25
|
-
*
|
|
25
|
+
* Book revenue values; set upsert=true to overwrite rows whose id already exists.
|
|
26
26
|
*/
|
|
27
|
-
export declare const
|
|
27
|
+
export declare const setRevenue: <ThrowOnError extends boolean = false>(options: Options<SetRevenueData, ThrowOnError>) => RequestResult<SetRevenueResponses, SetRevenueErrors, ThrowOnError>;
|
|
28
28
|
/**
|
|
29
|
-
*
|
|
29
|
+
* Delete the given users' API-uploaded key-metric values.
|
|
30
30
|
*/
|
|
31
|
-
export declare const
|
|
31
|
+
export declare const deleteKeyMetrics: <ThrowOnError extends boolean = false>(options: Options<DeleteKeyMetricsData, ThrowOnError>) => RequestResult<DeleteKeyMetricsResponses, DeleteKeyMetricsErrors, ThrowOnError>;
|
|
32
32
|
/**
|
|
33
|
-
*
|
|
33
|
+
* The project's key-metric values, one row per booked value; pass user_names to narrow to specific users, omit it for every user's.
|
|
34
34
|
*/
|
|
35
|
-
export declare const
|
|
35
|
+
export declare const getKeyMetrics: <ThrowOnError extends boolean = false>(options?: Options<GetKeyMetricsData, ThrowOnError>) => RequestResult<GetKeyMetricsResponses, GetKeyMetricsErrors, ThrowOnError>;
|
|
36
36
|
/**
|
|
37
37
|
* Book key-metric values; set upsert=true to overwrite rows whose id already exists.
|
|
38
38
|
*/
|
|
39
39
|
export declare const setKeyMetrics: <ThrowOnError extends boolean = false>(options: Options<SetKeyMetricsData, ThrowOnError>) => RequestResult<SetKeyMetricsResponses, SetKeyMetricsErrors, ThrowOnError>;
|
|
40
40
|
/**
|
|
41
|
-
* Delete
|
|
42
|
-
*/
|
|
43
|
-
export declare const deleteUserKeyMetrics: <ThrowOnError extends boolean = false>(options: Options<DeleteUserKeyMetricsData, ThrowOnError>) => RequestResult<DeleteUserKeyMetricsResponses, DeleteUserKeyMetricsErrors, ThrowOnError>;
|
|
44
|
-
/**
|
|
45
|
-
* One user's key-metric values; 404 when none are booked.
|
|
41
|
+
* Delete every tag of the given customers.
|
|
46
42
|
*/
|
|
47
|
-
export declare const
|
|
43
|
+
export declare const deleteCustomersTags: <ThrowOnError extends boolean = false>(options: Options<DeleteCustomersTagsData, ThrowOnError>) => RequestResult<DeleteCustomersTagsResponses, DeleteCustomersTagsErrors, ThrowOnError>;
|
|
48
44
|
/**
|
|
49
|
-
* Every known customer of the project with its tags (possibly empty).
|
|
45
|
+
* Every known customer of the project with its tags (possibly empty); pass customer_names to narrow to specific customers, omit it for every customer's.
|
|
50
46
|
*/
|
|
51
|
-
export declare const
|
|
47
|
+
export declare const getCustomersTags: <ThrowOnError extends boolean = false>(options?: Options<GetCustomersTagsData, ThrowOnError>) => RequestResult<GetCustomersTagsResponses, GetCustomersTagsErrors, ThrowOnError>;
|
|
52
48
|
/**
|
|
53
49
|
* Merge-set customer tags; set upsert=true to overwrite tags that already exist.
|
|
54
50
|
*/
|
|
55
51
|
export declare const setCustomersTags: <ThrowOnError extends boolean = false>(options: Options<SetCustomersTagsData, ThrowOnError>) => RequestResult<SetCustomersTagsResponses, SetCustomersTagsErrors, ThrowOnError>;
|
|
56
|
-
/**
|
|
57
|
-
* Delete every tag of one customer; 404 for a customer Weflayr has never seen.
|
|
58
|
-
*/
|
|
59
|
-
export declare const deleteCustomerTags: <ThrowOnError extends boolean = false>(options: Options<DeleteCustomerTagsData, ThrowOnError>) => RequestResult<DeleteCustomerTagsResponses, DeleteCustomerTagsErrors, ThrowOnError>;
|
|
60
|
-
/**
|
|
61
|
-
* One customer's tags; 404 for a customer Weflayr has never seen.
|
|
62
|
-
*/
|
|
63
|
-
export declare const getCustomerTags: <ThrowOnError extends boolean = false>(options: Options<GetCustomerTagsData, ThrowOnError>) => RequestResult<GetCustomerTagsResponses, GetCustomerTagsErrors, ThrowOnError>;
|
|
@@ -1,17 +1,26 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
// This file is auto-generated by @hey-api/openapi-ts
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
exports.
|
|
4
|
+
exports.setCustomersTags = exports.getCustomersTags = exports.deleteCustomersTags = exports.setKeyMetrics = exports.getKeyMetrics = exports.deleteKeyMetrics = exports.setRevenue = exports.getRevenue = exports.deleteRevenue = void 0;
|
|
5
5
|
const client_gen_js_1 = require("./client.gen.js");
|
|
6
6
|
/**
|
|
7
|
-
*
|
|
7
|
+
* Delete the given customers' API-uploaded revenue values.
|
|
8
8
|
*/
|
|
9
|
-
const
|
|
9
|
+
const deleteRevenue = (options) => (options.client ?? client_gen_js_1.client).delete({
|
|
10
10
|
security: [{ scheme: 'bearer', type: 'http' }],
|
|
11
11
|
url: '/revenue/',
|
|
12
12
|
...options
|
|
13
13
|
});
|
|
14
|
-
exports.
|
|
14
|
+
exports.deleteRevenue = deleteRevenue;
|
|
15
|
+
/**
|
|
16
|
+
* The project's revenue values, one row per booked value; pass customer_names to narrow to specific customers, omit it for every customer's.
|
|
17
|
+
*/
|
|
18
|
+
const getRevenue = (options) => (options?.client ?? client_gen_js_1.client).get({
|
|
19
|
+
security: [{ scheme: 'bearer', type: 'http' }],
|
|
20
|
+
url: '/revenue/',
|
|
21
|
+
...options
|
|
22
|
+
});
|
|
23
|
+
exports.getRevenue = getRevenue;
|
|
15
24
|
/**
|
|
16
25
|
* Book revenue values; set upsert=true to overwrite rows whose id already exists.
|
|
17
26
|
*/
|
|
@@ -26,32 +35,23 @@ const setRevenue = (options) => (options.client ?? client_gen_js_1.client).post(
|
|
|
26
35
|
});
|
|
27
36
|
exports.setRevenue = setRevenue;
|
|
28
37
|
/**
|
|
29
|
-
* Delete
|
|
30
|
-
*/
|
|
31
|
-
const deleteCustomerRevenue = (options) => (options.client ?? client_gen_js_1.client).delete({
|
|
32
|
-
security: [{ scheme: 'bearer', type: 'http' }],
|
|
33
|
-
url: '/revenue/{customer_name}/',
|
|
34
|
-
...options
|
|
35
|
-
});
|
|
36
|
-
exports.deleteCustomerRevenue = deleteCustomerRevenue;
|
|
37
|
-
/**
|
|
38
|
-
* One customer's revenue values; 404 when none are booked.
|
|
38
|
+
* Delete the given users' API-uploaded key-metric values.
|
|
39
39
|
*/
|
|
40
|
-
const
|
|
40
|
+
const deleteKeyMetrics = (options) => (options.client ?? client_gen_js_1.client).delete({
|
|
41
41
|
security: [{ scheme: 'bearer', type: 'http' }],
|
|
42
|
-
url: '/
|
|
42
|
+
url: '/key-metrics/',
|
|
43
43
|
...options
|
|
44
44
|
});
|
|
45
|
-
exports.
|
|
45
|
+
exports.deleteKeyMetrics = deleteKeyMetrics;
|
|
46
46
|
/**
|
|
47
|
-
*
|
|
47
|
+
* The project's key-metric values, one row per booked value; pass user_names to narrow to specific users, omit it for every user's.
|
|
48
48
|
*/
|
|
49
|
-
const
|
|
49
|
+
const getKeyMetrics = (options) => (options?.client ?? client_gen_js_1.client).get({
|
|
50
50
|
security: [{ scheme: 'bearer', type: 'http' }],
|
|
51
51
|
url: '/key-metrics/',
|
|
52
52
|
...options
|
|
53
53
|
});
|
|
54
|
-
exports.
|
|
54
|
+
exports.getKeyMetrics = getKeyMetrics;
|
|
55
55
|
/**
|
|
56
56
|
* Book key-metric values; set upsert=true to overwrite rows whose id already exists.
|
|
57
57
|
*/
|
|
@@ -66,32 +66,23 @@ const setKeyMetrics = (options) => (options.client ?? client_gen_js_1.client).po
|
|
|
66
66
|
});
|
|
67
67
|
exports.setKeyMetrics = setKeyMetrics;
|
|
68
68
|
/**
|
|
69
|
-
* Delete
|
|
70
|
-
*/
|
|
71
|
-
const deleteUserKeyMetrics = (options) => (options.client ?? client_gen_js_1.client).delete({
|
|
72
|
-
security: [{ scheme: 'bearer', type: 'http' }],
|
|
73
|
-
url: '/key-metrics/{user_name}/',
|
|
74
|
-
...options
|
|
75
|
-
});
|
|
76
|
-
exports.deleteUserKeyMetrics = deleteUserKeyMetrics;
|
|
77
|
-
/**
|
|
78
|
-
* One user's key-metric values; 404 when none are booked.
|
|
69
|
+
* Delete every tag of the given customers.
|
|
79
70
|
*/
|
|
80
|
-
const
|
|
71
|
+
const deleteCustomersTags = (options) => (options.client ?? client_gen_js_1.client).delete({
|
|
81
72
|
security: [{ scheme: 'bearer', type: 'http' }],
|
|
82
|
-
url: '/
|
|
73
|
+
url: '/customer-tags/',
|
|
83
74
|
...options
|
|
84
75
|
});
|
|
85
|
-
exports.
|
|
76
|
+
exports.deleteCustomersTags = deleteCustomersTags;
|
|
86
77
|
/**
|
|
87
|
-
* Every known customer of the project with its tags (possibly empty).
|
|
78
|
+
* Every known customer of the project with its tags (possibly empty); pass customer_names to narrow to specific customers, omit it for every customer's.
|
|
88
79
|
*/
|
|
89
|
-
const
|
|
80
|
+
const getCustomersTags = (options) => (options?.client ?? client_gen_js_1.client).get({
|
|
90
81
|
security: [{ scheme: 'bearer', type: 'http' }],
|
|
91
82
|
url: '/customer-tags/',
|
|
92
83
|
...options
|
|
93
84
|
});
|
|
94
|
-
exports.
|
|
85
|
+
exports.getCustomersTags = getCustomersTags;
|
|
95
86
|
/**
|
|
96
87
|
* Merge-set customer tags; set upsert=true to overwrite tags that already exist.
|
|
97
88
|
*/
|
|
@@ -105,21 +96,3 @@ const setCustomersTags = (options) => (options.client ?? client_gen_js_1.client)
|
|
|
105
96
|
}
|
|
106
97
|
});
|
|
107
98
|
exports.setCustomersTags = setCustomersTags;
|
|
108
|
-
/**
|
|
109
|
-
* Delete every tag of one customer; 404 for a customer Weflayr has never seen.
|
|
110
|
-
*/
|
|
111
|
-
const deleteCustomerTags = (options) => (options.client ?? client_gen_js_1.client).delete({
|
|
112
|
-
security: [{ scheme: 'bearer', type: 'http' }],
|
|
113
|
-
url: '/customer-tags/{customer_name}/',
|
|
114
|
-
...options
|
|
115
|
-
});
|
|
116
|
-
exports.deleteCustomerTags = deleteCustomerTags;
|
|
117
|
-
/**
|
|
118
|
-
* One customer's tags; 404 for a customer Weflayr has never seen.
|
|
119
|
-
*/
|
|
120
|
-
const getCustomerTags = (options) => (options.client ?? client_gen_js_1.client).get({
|
|
121
|
-
security: [{ scheme: 'bearer', type: 'http' }],
|
|
122
|
-
url: '/customer-tags/{customer_name}/',
|
|
123
|
-
...options
|
|
124
|
-
});
|
|
125
|
-
exports.getCustomerTags = getCustomerTags;
|