orgnote-api 0.20.0 → 0.20.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "orgnote-api",
3
- "version": "0.20.0",
3
+ "version": "0.20.2",
4
4
  "description": "Official API for creating extensions for OrgNote app",
5
5
  "type": "module",
6
6
  "main": "./index.js",
@@ -378,6 +378,25 @@ export interface HandlersSyncNotesResponse {
378
378
  */
379
379
  'notes'?: Array<ModelsPublicNote>;
380
380
  }
381
+ /**
382
+ *
383
+ * @export
384
+ * @interface HandlersSystemInfo
385
+ */
386
+ export interface HandlersSystemInfo {
387
+ /**
388
+ *
389
+ * @type {ModelsEnvironmentInfo}
390
+ * @memberof HandlersSystemInfo
391
+ */
392
+ 'environment'?: ModelsEnvironmentInfo;
393
+ /**
394
+ *
395
+ * @type {ModelsOrgNoteClientUpdateInfo}
396
+ * @memberof HandlersSystemInfo
397
+ */
398
+ 'update'?: ModelsOrgNoteClientUpdateInfo;
399
+ }
381
400
  /**
382
401
  *
383
402
  * @export
@@ -414,6 +433,19 @@ export declare const ModelsCategory: {
414
433
  readonly CategorySchedule: "schedule";
415
434
  };
416
435
  export type ModelsCategory = typeof ModelsCategory[keyof typeof ModelsCategory];
436
+ /**
437
+ *
438
+ * @export
439
+ * @interface ModelsEnvironmentInfo
440
+ */
441
+ export interface ModelsEnvironmentInfo {
442
+ /**
443
+ *
444
+ * @type {boolean}
445
+ * @memberof ModelsEnvironmentInfo
446
+ */
447
+ 'selfHosted'?: boolean;
448
+ }
417
449
  /**
418
450
  *
419
451
  * @export
@@ -705,19 +737,6 @@ export interface ModelsPublicUser {
705
737
  */
706
738
  'profileUrl'?: string;
707
739
  }
708
- /**
709
- *
710
- * @export
711
- * @interface ModelsSystemInfo
712
- */
713
- export interface ModelsSystemInfo {
714
- /**
715
- *
716
- * @type {boolean}
717
- * @memberof ModelsSystemInfo
718
- */
719
- 'selfHosted'?: boolean;
720
- }
721
740
  /**
722
741
  *
723
742
  * @export
@@ -1438,10 +1457,11 @@ export declare const SystemInfoApiAxiosParamCreator: (configuration?: Configurat
1438
1457
  /**
1439
1458
  * Get system info
1440
1459
  * @summary GetSystemInfo
1460
+ * @param {string} version provider
1441
1461
  * @param {*} [options] Override http request option.
1442
1462
  * @throws {RequiredError}
1443
1463
  */
1444
- systemInfoGet: (options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
1464
+ systemInfoVersionGet: (version: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
1445
1465
  };
1446
1466
  /**
1447
1467
  * SystemInfoApi - functional programming interface
@@ -1459,10 +1479,11 @@ export declare const SystemInfoApiFp: (configuration?: Configuration) => {
1459
1479
  /**
1460
1480
  * Get system info
1461
1481
  * @summary GetSystemInfo
1482
+ * @param {string} version provider
1462
1483
  * @param {*} [options] Override http request option.
1463
1484
  * @throws {RequiredError}
1464
1485
  */
1465
- systemInfoGet(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ModelsSystemInfo>>;
1486
+ systemInfoVersionGet(version: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<HandlersSystemInfo>>;
1466
1487
  };
1467
1488
  /**
1468
1489
  * SystemInfoApi - factory interface
@@ -1480,10 +1501,11 @@ export declare const SystemInfoApiFactory: (configuration?: Configuration, baseP
1480
1501
  /**
1481
1502
  * Get system info
1482
1503
  * @summary GetSystemInfo
1504
+ * @param {string} version provider
1483
1505
  * @param {*} [options] Override http request option.
1484
1506
  * @throws {RequiredError}
1485
1507
  */
1486
- systemInfoGet(options?: any): AxiosPromise<ModelsSystemInfo>;
1508
+ systemInfoVersionGet(version: string, options?: any): AxiosPromise<HandlersSystemInfo>;
1487
1509
  };
1488
1510
  /**
1489
1511
  * SystemInfoApi - object-oriented interface
@@ -1504,11 +1526,12 @@ export declare class SystemInfoApi extends BaseAPI {
1504
1526
  /**
1505
1527
  * Get system info
1506
1528
  * @summary GetSystemInfo
1529
+ * @param {string} version provider
1507
1530
  * @param {*} [options] Override http request option.
1508
1531
  * @throws {RequiredError}
1509
1532
  * @memberof SystemInfoApi
1510
1533
  */
1511
- systemInfoGet(options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ModelsSystemInfo, any>>;
1534
+ systemInfoVersionGet(version: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<HandlersSystemInfo, any>>;
1512
1535
  }
1513
1536
  /**
1514
1537
  * TagsApi - axios parameter creator
package/remote-api/api.js CHANGED
@@ -1261,11 +1261,15 @@ export const SystemInfoApiAxiosParamCreator = function (configuration) {
1261
1261
  /**
1262
1262
  * Get system info
1263
1263
  * @summary GetSystemInfo
1264
+ * @param {string} version provider
1264
1265
  * @param {*} [options] Override http request option.
1265
1266
  * @throws {RequiredError}
1266
1267
  */
1267
- systemInfoGet: async (options = {}) => {
1268
- const localVarPath = `/system-info`;
1268
+ systemInfoVersionGet: async (version, options = {}) => {
1269
+ // verify required parameter 'version' is not null or undefined
1270
+ assertParamExists('systemInfoVersionGet', 'version', version);
1271
+ const localVarPath = `/system-info/{version}`
1272
+ .replace(`{${"version"}}`, encodeURIComponent(String(version)));
1269
1273
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
1270
1274
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1271
1275
  let baseOptions;
@@ -1308,13 +1312,14 @@ export const SystemInfoApiFp = function (configuration) {
1308
1312
  /**
1309
1313
  * Get system info
1310
1314
  * @summary GetSystemInfo
1315
+ * @param {string} version provider
1311
1316
  * @param {*} [options] Override http request option.
1312
1317
  * @throws {RequiredError}
1313
1318
  */
1314
- async systemInfoGet(options) {
1315
- const localVarAxiosArgs = await localVarAxiosParamCreator.systemInfoGet(options);
1319
+ async systemInfoVersionGet(version, options) {
1320
+ const localVarAxiosArgs = await localVarAxiosParamCreator.systemInfoVersionGet(version, options);
1316
1321
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1317
- const localVarOperationServerBasePath = operationServerMap['SystemInfoApi.systemInfoGet']?.[localVarOperationServerIndex]?.url;
1322
+ const localVarOperationServerBasePath = operationServerMap['SystemInfoApi.systemInfoVersionGet']?.[localVarOperationServerIndex]?.url;
1318
1323
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1319
1324
  },
1320
1325
  };
@@ -1339,11 +1344,12 @@ export const SystemInfoApiFactory = function (configuration, basePath, axios) {
1339
1344
  /**
1340
1345
  * Get system info
1341
1346
  * @summary GetSystemInfo
1347
+ * @param {string} version provider
1342
1348
  * @param {*} [options] Override http request option.
1343
1349
  * @throws {RequiredError}
1344
1350
  */
1345
- systemInfoGet(options) {
1346
- return localVarFp.systemInfoGet(options).then((request) => request(axios, basePath));
1351
+ systemInfoVersionGet(version, options) {
1352
+ return localVarFp.systemInfoVersionGet(version, options).then((request) => request(axios, basePath));
1347
1353
  },
1348
1354
  };
1349
1355
  };
@@ -1368,12 +1374,13 @@ export class SystemInfoApi extends BaseAPI {
1368
1374
  /**
1369
1375
  * Get system info
1370
1376
  * @summary GetSystemInfo
1377
+ * @param {string} version provider
1371
1378
  * @param {*} [options] Override http request option.
1372
1379
  * @throws {RequiredError}
1373
1380
  * @memberof SystemInfoApi
1374
1381
  */
1375
- systemInfoGet(options) {
1376
- return SystemInfoApiFp(this.configuration).systemInfoGet(options).then((request) => request(this.axios, this.basePath));
1382
+ systemInfoVersionGet(version, options) {
1383
+ return SystemInfoApiFp(this.configuration).systemInfoVersionGet(version, options).then((request) => request(this.axios, this.basePath));
1377
1384
  }
1378
1385
  }
1379
1386
  /**