orgnote-api 0.19.9 → 0.20.0

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.19.9",
3
+ "version": "0.20.0",
4
4
  "description": "Official API for creating extensions for OrgNote app",
5
5
  "type": "module",
6
6
  "main": "./index.js",
@@ -46,7 +46,7 @@
46
46
  "@codemirror/view": "6.26.3",
47
47
  "axios": "1.7.3",
48
48
  "openpgp": "5.11.1",
49
- "org-mode-ast": "0.11.7",
49
+ "org-mode-ast": "0.11.8",
50
50
  "pinia": "2.1.7",
51
51
  "vue": "3.4.15",
52
52
  "vue-router": "4.2.5"
@@ -705,6 +705,19 @@ export interface ModelsPublicUser {
705
705
  */
706
706
  'profileUrl'?: string;
707
707
  }
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
+ }
708
721
  /**
709
722
  *
710
723
  * @export
@@ -1422,6 +1435,13 @@ export declare const SystemInfoApiAxiosParamCreator: (configuration?: Configurat
1422
1435
  * @throws {RequiredError}
1423
1436
  */
1424
1437
  systemInfoClientUpdateVersionGet: (version: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
1438
+ /**
1439
+ * Get system info
1440
+ * @summary GetSystemInfo
1441
+ * @param {*} [options] Override http request option.
1442
+ * @throws {RequiredError}
1443
+ */
1444
+ systemInfoGet: (options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
1425
1445
  };
1426
1446
  /**
1427
1447
  * SystemInfoApi - functional programming interface
@@ -1436,6 +1456,13 @@ export declare const SystemInfoApiFp: (configuration?: Configuration) => {
1436
1456
  * @throws {RequiredError}
1437
1457
  */
1438
1458
  systemInfoClientUpdateVersionGet(version: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ModelsOrgNoteClientUpdateInfo>>;
1459
+ /**
1460
+ * Get system info
1461
+ * @summary GetSystemInfo
1462
+ * @param {*} [options] Override http request option.
1463
+ * @throws {RequiredError}
1464
+ */
1465
+ systemInfoGet(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ModelsSystemInfo>>;
1439
1466
  };
1440
1467
  /**
1441
1468
  * SystemInfoApi - factory interface
@@ -1450,6 +1477,13 @@ export declare const SystemInfoApiFactory: (configuration?: Configuration, baseP
1450
1477
  * @throws {RequiredError}
1451
1478
  */
1452
1479
  systemInfoClientUpdateVersionGet(version: string, options?: any): AxiosPromise<ModelsOrgNoteClientUpdateInfo>;
1480
+ /**
1481
+ * Get system info
1482
+ * @summary GetSystemInfo
1483
+ * @param {*} [options] Override http request option.
1484
+ * @throws {RequiredError}
1485
+ */
1486
+ systemInfoGet(options?: any): AxiosPromise<ModelsSystemInfo>;
1453
1487
  };
1454
1488
  /**
1455
1489
  * SystemInfoApi - object-oriented interface
@@ -1467,6 +1501,14 @@ export declare class SystemInfoApi extends BaseAPI {
1467
1501
  * @memberof SystemInfoApi
1468
1502
  */
1469
1503
  systemInfoClientUpdateVersionGet(version: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ModelsOrgNoteClientUpdateInfo, any>>;
1504
+ /**
1505
+ * Get system info
1506
+ * @summary GetSystemInfo
1507
+ * @param {*} [options] Override http request option.
1508
+ * @throws {RequiredError}
1509
+ * @memberof SystemInfoApi
1510
+ */
1511
+ systemInfoGet(options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ModelsSystemInfo, any>>;
1470
1512
  }
1471
1513
  /**
1472
1514
  * TagsApi - axios parameter creator
package/remote-api/api.js CHANGED
@@ -1258,6 +1258,31 @@ export const SystemInfoApiAxiosParamCreator = function (configuration) {
1258
1258
  options: localVarRequestOptions,
1259
1259
  };
1260
1260
  },
1261
+ /**
1262
+ * Get system info
1263
+ * @summary GetSystemInfo
1264
+ * @param {*} [options] Override http request option.
1265
+ * @throws {RequiredError}
1266
+ */
1267
+ systemInfoGet: async (options = {}) => {
1268
+ const localVarPath = `/system-info`;
1269
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1270
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1271
+ let baseOptions;
1272
+ if (configuration) {
1273
+ baseOptions = configuration.baseOptions;
1274
+ }
1275
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
1276
+ const localVarHeaderParameter = {};
1277
+ const localVarQueryParameter = {};
1278
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1279
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1280
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
1281
+ return {
1282
+ url: toPathString(localVarUrlObj),
1283
+ options: localVarRequestOptions,
1284
+ };
1285
+ },
1261
1286
  };
1262
1287
  };
1263
1288
  /**
@@ -1280,6 +1305,18 @@ export const SystemInfoApiFp = function (configuration) {
1280
1305
  const localVarOperationServerBasePath = operationServerMap['SystemInfoApi.systemInfoClientUpdateVersionGet']?.[localVarOperationServerIndex]?.url;
1281
1306
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1282
1307
  },
1308
+ /**
1309
+ * Get system info
1310
+ * @summary GetSystemInfo
1311
+ * @param {*} [options] Override http request option.
1312
+ * @throws {RequiredError}
1313
+ */
1314
+ async systemInfoGet(options) {
1315
+ const localVarAxiosArgs = await localVarAxiosParamCreator.systemInfoGet(options);
1316
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1317
+ const localVarOperationServerBasePath = operationServerMap['SystemInfoApi.systemInfoGet']?.[localVarOperationServerIndex]?.url;
1318
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1319
+ },
1283
1320
  };
1284
1321
  };
1285
1322
  /**
@@ -1299,6 +1336,15 @@ export const SystemInfoApiFactory = function (configuration, basePath, axios) {
1299
1336
  systemInfoClientUpdateVersionGet(version, options) {
1300
1337
  return localVarFp.systemInfoClientUpdateVersionGet(version, options).then((request) => request(axios, basePath));
1301
1338
  },
1339
+ /**
1340
+ * Get system info
1341
+ * @summary GetSystemInfo
1342
+ * @param {*} [options] Override http request option.
1343
+ * @throws {RequiredError}
1344
+ */
1345
+ systemInfoGet(options) {
1346
+ return localVarFp.systemInfoGet(options).then((request) => request(axios, basePath));
1347
+ },
1302
1348
  };
1303
1349
  };
1304
1350
  /**
@@ -1319,6 +1365,16 @@ export class SystemInfoApi extends BaseAPI {
1319
1365
  systemInfoClientUpdateVersionGet(version, options) {
1320
1366
  return SystemInfoApiFp(this.configuration).systemInfoClientUpdateVersionGet(version, options).then((request) => request(this.axios, this.basePath));
1321
1367
  }
1368
+ /**
1369
+ * Get system info
1370
+ * @summary GetSystemInfo
1371
+ * @param {*} [options] Override http request option.
1372
+ * @throws {RequiredError}
1373
+ * @memberof SystemInfoApi
1374
+ */
1375
+ systemInfoGet(options) {
1376
+ return SystemInfoApiFp(this.configuration).systemInfoGet(options).then((request) => request(this.axios, this.basePath));
1377
+ }
1322
1378
  }
1323
1379
  /**
1324
1380
  * TagsApi - axios parameter creator