@wildix/wim-knowledge-base-client 0.0.32 → 0.0.34
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-cjs/models/models_0.js +1 -2
- package/dist-cjs/protocols/Aws_restJson1.js +0 -6
- package/dist-es/models/models_0.js +1 -2
- package/dist-es/protocols/Aws_restJson1.js +0 -6
- package/dist-types/commands/ConfigureDataSourceCommand.d.ts +2 -12
- package/dist-types/commands/CreateDataSourceCommand.d.ts +1 -6
- package/dist-types/commands/GetDataSourceCommand.d.ts +1 -6
- package/dist-types/commands/ListDataSourcesCommand.d.ts +1 -6
- package/dist-types/commands/UpdateDataSourceCommand.d.ts +1 -6
- package/dist-types/models/models_0.d.ts +2 -19
- package/package.json +1 -1
|
@@ -91,14 +91,13 @@ var DataSourceConfig;
|
|
|
91
91
|
return visitor.confluence(value.confluence);
|
|
92
92
|
if (value.gdrive !== undefined)
|
|
93
93
|
return visitor.gdrive(value.gdrive);
|
|
94
|
-
if (value.files !== undefined)
|
|
95
|
-
return visitor.files(value.files);
|
|
96
94
|
if (value.proxy !== undefined)
|
|
97
95
|
return visitor.proxy(value.proxy);
|
|
98
96
|
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
99
97
|
};
|
|
100
98
|
})(DataSourceConfig || (exports.DataSourceConfig = DataSourceConfig = {}));
|
|
101
99
|
exports.ScheduleConfiguration = {
|
|
100
|
+
DISABLED: "DISABLED",
|
|
102
101
|
EVERY_DAY: "EVERY_DAY",
|
|
103
102
|
EVERY_SIX_HOURS: "EVERY_SIX_HOURS",
|
|
104
103
|
EVERY_TWELVE_HOURS: "EVERY_TWELVE_HOURS",
|
|
@@ -1028,7 +1028,6 @@ const se_Document = (input, context) => {
|
|
|
1028
1028
|
const se_DataSourceConfig = (input, context) => {
|
|
1029
1029
|
return models_0_1.DataSourceConfig.visit(input, {
|
|
1030
1030
|
confluence: value => ({ "confluence": (0, smithy_client_1._json)(value) }),
|
|
1031
|
-
files: value => ({ "files": (0, smithy_client_1._json)(value) }),
|
|
1032
1031
|
gdrive: value => ({ "gdrive": (0, smithy_client_1._json)(value) }),
|
|
1033
1032
|
proxy: value => ({ "proxy": se_ProxyConfig(value, context) }),
|
|
1034
1033
|
_: (name, value) => ({ [name]: value })
|
|
@@ -1082,11 +1081,6 @@ const de_DataSourceConfig = (output, context) => {
|
|
|
1082
1081
|
confluence: (0, smithy_client_1._json)(output.confluence)
|
|
1083
1082
|
};
|
|
1084
1083
|
}
|
|
1085
|
-
if (output.files != null) {
|
|
1086
|
-
return {
|
|
1087
|
-
files: (0, smithy_client_1._json)(output.files)
|
|
1088
|
-
};
|
|
1089
|
-
}
|
|
1090
1084
|
if (output.gdrive != null) {
|
|
1091
1085
|
return {
|
|
1092
1086
|
gdrive: (0, smithy_client_1._json)(output.gdrive)
|
|
@@ -82,14 +82,13 @@ export var DataSourceConfig;
|
|
|
82
82
|
return visitor.confluence(value.confluence);
|
|
83
83
|
if (value.gdrive !== undefined)
|
|
84
84
|
return visitor.gdrive(value.gdrive);
|
|
85
|
-
if (value.files !== undefined)
|
|
86
|
-
return visitor.files(value.files);
|
|
87
85
|
if (value.proxy !== undefined)
|
|
88
86
|
return visitor.proxy(value.proxy);
|
|
89
87
|
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
90
88
|
};
|
|
91
89
|
})(DataSourceConfig || (DataSourceConfig = {}));
|
|
92
90
|
export const ScheduleConfiguration = {
|
|
91
|
+
DISABLED: "DISABLED",
|
|
93
92
|
EVERY_DAY: "EVERY_DAY",
|
|
94
93
|
EVERY_SIX_HOURS: "EVERY_SIX_HOURS",
|
|
95
94
|
EVERY_TWELVE_HOURS: "EVERY_TWELVE_HOURS",
|
|
@@ -970,7 +970,6 @@ const se_Document = (input, context) => {
|
|
|
970
970
|
const se_DataSourceConfig = (input, context) => {
|
|
971
971
|
return DataSourceConfig.visit(input, {
|
|
972
972
|
confluence: value => ({ "confluence": _json(value) }),
|
|
973
|
-
files: value => ({ "files": _json(value) }),
|
|
974
973
|
gdrive: value => ({ "gdrive": _json(value) }),
|
|
975
974
|
proxy: value => ({ "proxy": se_ProxyConfig(value, context) }),
|
|
976
975
|
_: (name, value) => ({ [name]: value })
|
|
@@ -1024,11 +1023,6 @@ const de_DataSourceConfig = (output, context) => {
|
|
|
1024
1023
|
confluence: _json(output.confluence)
|
|
1025
1024
|
};
|
|
1026
1025
|
}
|
|
1027
|
-
if (output.files != null) {
|
|
1028
|
-
return {
|
|
1029
|
-
files: _json(output.files)
|
|
1030
|
-
};
|
|
1031
|
-
}
|
|
1032
1026
|
if (output.gdrive != null) {
|
|
1033
1027
|
return {
|
|
1034
1028
|
gdrive: _json(output.gdrive)
|
|
@@ -61,11 +61,6 @@ declare const ConfigureDataSourceCommand_base: {
|
|
|
61
61
|
* ],
|
|
62
62
|
* },
|
|
63
63
|
* },
|
|
64
|
-
* files: { // UserFilesConfig
|
|
65
|
-
* allowedExtensions: [ // required
|
|
66
|
-
* "STRING_VALUE",
|
|
67
|
-
* ],
|
|
68
|
-
* },
|
|
69
64
|
* proxy: { // ProxyConfig
|
|
70
65
|
* url: "STRING_VALUE", // required
|
|
71
66
|
* method: "GET" || "POST",
|
|
@@ -82,7 +77,7 @@ declare const ConfigureDataSourceCommand_base: {
|
|
|
82
77
|
* ],
|
|
83
78
|
* },
|
|
84
79
|
* },
|
|
85
|
-
* syncSchedule: "EVERY_SIX_HOURS" || "EVERY_TWELVE_HOURS" || "EVERY_DAY" || "EVERY_WEEK",
|
|
80
|
+
* syncSchedule: "DISABLED" || "EVERY_SIX_HOURS" || "EVERY_TWELVE_HOURS" || "EVERY_DAY" || "EVERY_WEEK",
|
|
86
81
|
* companyId: "STRING_VALUE",
|
|
87
82
|
* dataSourceId: "STRING_VALUE", // required
|
|
88
83
|
* };
|
|
@@ -119,11 +114,6 @@ declare const ConfigureDataSourceCommand_base: {
|
|
|
119
114
|
* // ],
|
|
120
115
|
* // },
|
|
121
116
|
* // },
|
|
122
|
-
* // files: { // UserFilesConfig
|
|
123
|
-
* // allowedExtensions: [ // required
|
|
124
|
-
* // "STRING_VALUE",
|
|
125
|
-
* // ],
|
|
126
|
-
* // },
|
|
127
117
|
* // proxy: { // ProxyConfig
|
|
128
118
|
* // url: "STRING_VALUE", // required
|
|
129
119
|
* // method: "GET" || "POST",
|
|
@@ -140,7 +130,7 @@ declare const ConfigureDataSourceCommand_base: {
|
|
|
140
130
|
* // ],
|
|
141
131
|
* // },
|
|
142
132
|
* // },
|
|
143
|
-
* // syncSchedule: "EVERY_SIX_HOURS" || "EVERY_TWELVE_HOURS" || "EVERY_DAY" || "EVERY_WEEK",
|
|
133
|
+
* // syncSchedule: "DISABLED" || "EVERY_SIX_HOURS" || "EVERY_TWELVE_HOURS" || "EVERY_DAY" || "EVERY_WEEK",
|
|
144
134
|
* // id: "STRING_VALUE", // required
|
|
145
135
|
* // companyId: "STRING_VALUE", // required
|
|
146
136
|
* // documentsCount: Number("int"), // required
|
|
@@ -73,11 +73,6 @@ declare const CreateDataSourceCommand_base: {
|
|
|
73
73
|
* // ],
|
|
74
74
|
* // },
|
|
75
75
|
* // },
|
|
76
|
-
* // files: { // UserFilesConfig
|
|
77
|
-
* // allowedExtensions: [ // required
|
|
78
|
-
* // "STRING_VALUE",
|
|
79
|
-
* // ],
|
|
80
|
-
* // },
|
|
81
76
|
* // proxy: { // ProxyConfig
|
|
82
77
|
* // url: "STRING_VALUE", // required
|
|
83
78
|
* // method: "GET" || "POST",
|
|
@@ -94,7 +89,7 @@ declare const CreateDataSourceCommand_base: {
|
|
|
94
89
|
* // ],
|
|
95
90
|
* // },
|
|
96
91
|
* // },
|
|
97
|
-
* // syncSchedule: "EVERY_SIX_HOURS" || "EVERY_TWELVE_HOURS" || "EVERY_DAY" || "EVERY_WEEK",
|
|
92
|
+
* // syncSchedule: "DISABLED" || "EVERY_SIX_HOURS" || "EVERY_TWELVE_HOURS" || "EVERY_DAY" || "EVERY_WEEK",
|
|
98
93
|
* // id: "STRING_VALUE", // required
|
|
99
94
|
* // companyId: "STRING_VALUE", // required
|
|
100
95
|
* // documentsCount: Number("int"), // required
|
|
@@ -71,11 +71,6 @@ declare const GetDataSourceCommand_base: {
|
|
|
71
71
|
* // ],
|
|
72
72
|
* // },
|
|
73
73
|
* // },
|
|
74
|
-
* // files: { // UserFilesConfig
|
|
75
|
-
* // allowedExtensions: [ // required
|
|
76
|
-
* // "STRING_VALUE",
|
|
77
|
-
* // ],
|
|
78
|
-
* // },
|
|
79
74
|
* // proxy: { // ProxyConfig
|
|
80
75
|
* // url: "STRING_VALUE", // required
|
|
81
76
|
* // method: "GET" || "POST",
|
|
@@ -92,7 +87,7 @@ declare const GetDataSourceCommand_base: {
|
|
|
92
87
|
* // ],
|
|
93
88
|
* // },
|
|
94
89
|
* // },
|
|
95
|
-
* // syncSchedule: "EVERY_SIX_HOURS" || "EVERY_TWELVE_HOURS" || "EVERY_DAY" || "EVERY_WEEK",
|
|
90
|
+
* // syncSchedule: "DISABLED" || "EVERY_SIX_HOURS" || "EVERY_TWELVE_HOURS" || "EVERY_DAY" || "EVERY_WEEK",
|
|
96
91
|
* // id: "STRING_VALUE", // required
|
|
97
92
|
* // companyId: "STRING_VALUE", // required
|
|
98
93
|
* // documentsCount: Number("int"), // required
|
|
@@ -71,11 +71,6 @@ declare const ListDataSourcesCommand_base: {
|
|
|
71
71
|
* // ],
|
|
72
72
|
* // },
|
|
73
73
|
* // },
|
|
74
|
-
* // files: { // UserFilesConfig
|
|
75
|
-
* // allowedExtensions: [ // required
|
|
76
|
-
* // "STRING_VALUE",
|
|
77
|
-
* // ],
|
|
78
|
-
* // },
|
|
79
74
|
* // proxy: { // ProxyConfig
|
|
80
75
|
* // url: "STRING_VALUE", // required
|
|
81
76
|
* // method: "GET" || "POST",
|
|
@@ -92,7 +87,7 @@ declare const ListDataSourcesCommand_base: {
|
|
|
92
87
|
* // ],
|
|
93
88
|
* // },
|
|
94
89
|
* // },
|
|
95
|
-
* // syncSchedule: "EVERY_SIX_HOURS" || "EVERY_TWELVE_HOURS" || "EVERY_DAY" || "EVERY_WEEK",
|
|
90
|
+
* // syncSchedule: "DISABLED" || "EVERY_SIX_HOURS" || "EVERY_TWELVE_HOURS" || "EVERY_DAY" || "EVERY_WEEK",
|
|
96
91
|
* // id: "STRING_VALUE", // required
|
|
97
92
|
* // companyId: "STRING_VALUE", // required
|
|
98
93
|
* // documentsCount: Number("int"), // required
|
|
@@ -73,11 +73,6 @@ declare const UpdateDataSourceCommand_base: {
|
|
|
73
73
|
* // ],
|
|
74
74
|
* // },
|
|
75
75
|
* // },
|
|
76
|
-
* // files: { // UserFilesConfig
|
|
77
|
-
* // allowedExtensions: [ // required
|
|
78
|
-
* // "STRING_VALUE",
|
|
79
|
-
* // ],
|
|
80
|
-
* // },
|
|
81
76
|
* // proxy: { // ProxyConfig
|
|
82
77
|
* // url: "STRING_VALUE", // required
|
|
83
78
|
* // method: "GET" || "POST",
|
|
@@ -94,7 +89,7 @@ declare const UpdateDataSourceCommand_base: {
|
|
|
94
89
|
* // ],
|
|
95
90
|
* // },
|
|
96
91
|
* // },
|
|
97
|
-
* // syncSchedule: "EVERY_SIX_HOURS" || "EVERY_TWELVE_HOURS" || "EVERY_DAY" || "EVERY_WEEK",
|
|
92
|
+
* // syncSchedule: "DISABLED" || "EVERY_SIX_HOURS" || "EVERY_TWELVE_HOURS" || "EVERY_DAY" || "EVERY_WEEK",
|
|
98
93
|
* // id: "STRING_VALUE", // required
|
|
99
94
|
* // companyId: "STRING_VALUE", // required
|
|
100
95
|
* // documentsCount: Number("int"), // required
|
|
@@ -163,12 +163,6 @@ export interface ConfluenceConfig {
|
|
|
163
163
|
spaceId: string;
|
|
164
164
|
pages?: ConfluencePagesConfig | undefined;
|
|
165
165
|
}
|
|
166
|
-
/**
|
|
167
|
-
* @public
|
|
168
|
-
*/
|
|
169
|
-
export interface UserFilesConfig {
|
|
170
|
-
allowedExtensions: (string)[];
|
|
171
|
-
}
|
|
172
166
|
/**
|
|
173
167
|
* @public
|
|
174
168
|
*/
|
|
@@ -252,7 +246,7 @@ export interface ProxyConfig {
|
|
|
252
246
|
/**
|
|
253
247
|
* @public
|
|
254
248
|
*/
|
|
255
|
-
export type DataSourceConfig = DataSourceConfig.ConfluenceMember | DataSourceConfig.
|
|
249
|
+
export type DataSourceConfig = DataSourceConfig.ConfluenceMember | DataSourceConfig.GdriveMember | DataSourceConfig.ProxyMember | DataSourceConfig.$UnknownMember;
|
|
256
250
|
/**
|
|
257
251
|
* @public
|
|
258
252
|
*/
|
|
@@ -260,28 +254,18 @@ export declare namespace DataSourceConfig {
|
|
|
260
254
|
interface ConfluenceMember {
|
|
261
255
|
confluence: ConfluenceConfig;
|
|
262
256
|
gdrive?: never;
|
|
263
|
-
files?: never;
|
|
264
257
|
proxy?: never;
|
|
265
258
|
$unknown?: never;
|
|
266
259
|
}
|
|
267
260
|
interface GdriveMember {
|
|
268
261
|
confluence?: never;
|
|
269
262
|
gdrive: GDriveConfig;
|
|
270
|
-
files?: never;
|
|
271
|
-
proxy?: never;
|
|
272
|
-
$unknown?: never;
|
|
273
|
-
}
|
|
274
|
-
interface FilesMember {
|
|
275
|
-
confluence?: never;
|
|
276
|
-
gdrive?: never;
|
|
277
|
-
files: UserFilesConfig;
|
|
278
263
|
proxy?: never;
|
|
279
264
|
$unknown?: never;
|
|
280
265
|
}
|
|
281
266
|
interface ProxyMember {
|
|
282
267
|
confluence?: never;
|
|
283
268
|
gdrive?: never;
|
|
284
|
-
files?: never;
|
|
285
269
|
proxy: ProxyConfig;
|
|
286
270
|
$unknown?: never;
|
|
287
271
|
}
|
|
@@ -291,14 +275,12 @@ export declare namespace DataSourceConfig {
|
|
|
291
275
|
interface $UnknownMember {
|
|
292
276
|
confluence?: never;
|
|
293
277
|
gdrive?: never;
|
|
294
|
-
files?: never;
|
|
295
278
|
proxy?: never;
|
|
296
279
|
$unknown: [string, any];
|
|
297
280
|
}
|
|
298
281
|
interface Visitor<T> {
|
|
299
282
|
confluence: (value: ConfluenceConfig) => T;
|
|
300
283
|
gdrive: (value: GDriveConfig) => T;
|
|
301
|
-
files: (value: UserFilesConfig) => T;
|
|
302
284
|
proxy: (value: ProxyConfig) => T;
|
|
303
285
|
_: (name: string, value: any) => T;
|
|
304
286
|
}
|
|
@@ -309,6 +291,7 @@ export declare namespace DataSourceConfig {
|
|
|
309
291
|
* @enum
|
|
310
292
|
*/
|
|
311
293
|
export declare const ScheduleConfiguration: {
|
|
294
|
+
readonly DISABLED: "DISABLED";
|
|
312
295
|
readonly EVERY_DAY: "EVERY_DAY";
|
|
313
296
|
readonly EVERY_SIX_HOURS: "EVERY_SIX_HOURS";
|
|
314
297
|
readonly EVERY_TWELVE_HOURS: "EVERY_TWELVE_HOURS";
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wildix/wim-knowledge-base-client",
|
|
3
3
|
"description": "@wildix/wim-knowledge-base-client client",
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.34",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "tsc -p tsconfig.cjs.json",
|