@wildix/wim-knowledge-base-client 0.0.64 → 0.0.65

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.
@@ -817,10 +817,10 @@ const de_GetDataSourceSyncStatusCommand = async (output, context) => {
817
817
  const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
818
818
  const doc = (0, smithy_client_1.take)(data, {
819
819
  'documentsStats': smithy_client_1._json,
820
- 'lastSyncErrorMessage': smithy_client_1.expectString,
821
- 'lastSyncMode': smithy_client_1.expectString,
822
- 'lastSyncedAt': smithy_client_1.expectString,
823
- 'syncStatus': smithy_client_1.expectString,
820
+ 'error': smithy_client_1.expectString,
821
+ 'mode': smithy_client_1.expectString,
822
+ 'status': smithy_client_1.expectString,
823
+ 'syncedAt': smithy_client_1.expectString,
824
824
  });
825
825
  Object.assign(contents, doc);
826
826
  return contents;
@@ -768,10 +768,10 @@ export const de_GetDataSourceSyncStatusCommand = async (output, context) => {
768
768
  const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
769
769
  const doc = take(data, {
770
770
  'documentsStats': _json,
771
- 'lastSyncErrorMessage': __expectString,
772
- 'lastSyncMode': __expectString,
773
- 'lastSyncedAt': __expectString,
774
- 'syncStatus': __expectString,
771
+ 'error': __expectString,
772
+ 'mode': __expectString,
773
+ 'status': __expectString,
774
+ 'syncedAt': __expectString,
775
775
  });
776
776
  Object.assign(contents, doc);
777
777
  return contents;
@@ -41,10 +41,10 @@ declare const GetDataSourceSyncStatusCommand_base: {
41
41
  * const command = new GetDataSourceSyncStatusCommand(input);
42
42
  * const response = await client.send(command);
43
43
  * // { // GetDataSourceSyncStatusOutput
44
- * // syncStatus: "idle" || "running" || "success" || "failed", // required
45
- * // lastSyncedAt: "STRING_VALUE",
46
- * // lastSyncMode: "full" || "incremental",
47
- * // lastSyncErrorMessage: "STRING_VALUE",
44
+ * // status: "idle" || "running" || "success" || "failed", // required
45
+ * // syncedAt: "STRING_VALUE",
46
+ * // mode: "full" || "incremental",
47
+ * // error: "STRING_VALUE",
48
48
  * // documentsStats: { // SyncStatusStats
49
49
  * // "<keys>": Number("int"),
50
50
  * // },
@@ -1124,10 +1124,30 @@ export type SyncDataSourceStatus = typeof SyncDataSourceStatus[keyof typeof Sync
1124
1124
  * @public
1125
1125
  */
1126
1126
  export interface GetDataSourceSyncStatusOutput {
1127
- syncStatus: SyncDataSourceStatus;
1128
- lastSyncedAt?: string | undefined;
1129
- lastSyncMode?: SyncDataSourceMode | undefined;
1130
- lastSyncErrorMessage?: string | undefined;
1127
+ /**
1128
+ * The current status of the data source synchronization.
1129
+ * @public
1130
+ */
1131
+ status: SyncDataSourceStatus;
1132
+ /**
1133
+ * Timestamp when the data source was last synced (ISO 8601 format). Example: 2021-01-01T00:00:00Z
1134
+ * @public
1135
+ */
1136
+ syncedAt?: string | undefined;
1137
+ /**
1138
+ * The synchronization mode used for the last sync.
1139
+ * @public
1140
+ */
1141
+ mode?: SyncDataSourceMode | undefined;
1142
+ /**
1143
+ * The error message from the last sync, if any.
1144
+ * @public
1145
+ */
1146
+ error?: string | undefined;
1147
+ /**
1148
+ * The statistics of the documents in the data source.
1149
+ * @public
1150
+ */
1131
1151
  documentsStats?: Partial<Record<DocumentStatus, number>> | undefined;
1132
1152
  }
1133
1153
  /**
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.64",
4
+ "version": "0.0.65",
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",