orgnote-api 0.7.17 → 0.8.1

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/api.ts CHANGED
@@ -29,6 +29,7 @@ export interface OrgNoteApi {
29
29
 
30
30
  system: {
31
31
  reload: (params?: { verbose: boolean }) => Promise<void>;
32
+ setNewFilesAvailable: (status?: boolean) => void;
32
33
  };
33
34
  navigation: {
34
35
  openNote: (id: string) => Promise<void | NavigationFailure>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "orgnote-api",
3
- "version": "0.7.17",
3
+ "version": "0.8.1",
4
4
  "description": "Official API for creating extensions for OrgNote app",
5
5
  "type": "module",
6
6
  "main": "./index.ts",
package/remote-api/api.ts CHANGED
@@ -47,7 +47,7 @@ export interface HandlersCreatingNote {
47
47
  * @type {string}
48
48
  * @memberof HandlersCreatingNote
49
49
  */
50
- 'content'?: string;
50
+ 'content': string;
51
51
  /**
52
52
  *
53
53
  * @type {string}
@@ -537,6 +537,31 @@ export interface ModelsNoteMeta {
537
537
  }
538
538
 
539
539
 
540
+ /**
541
+ *
542
+ * @export
543
+ * @interface ModelsOrgNoteClientUpdateInfo
544
+ */
545
+ export interface ModelsOrgNoteClientUpdateInfo {
546
+ /**
547
+ *
548
+ * @type {string}
549
+ * @memberof ModelsOrgNoteClientUpdateInfo
550
+ */
551
+ 'changeLog'?: string;
552
+ /**
553
+ *
554
+ * @type {string}
555
+ * @memberof ModelsOrgNoteClientUpdateInfo
556
+ */
557
+ 'url'?: string;
558
+ /**
559
+ *
560
+ * @type {string}
561
+ * @memberof ModelsOrgNoteClientUpdateInfo
562
+ */
563
+ 'version'?: string;
564
+ }
540
565
  /**
541
566
  *
542
567
  * @export
@@ -1969,6 +1994,111 @@ export class NotesApi extends BaseAPI {
1969
1994
  }
1970
1995
 
1971
1996
 
1997
+ /**
1998
+ * SystemInfoApi - axios parameter creator
1999
+ * @export
2000
+ */
2001
+ export const SystemInfoApiAxiosParamCreator = function (configuration?: Configuration) {
2002
+ return {
2003
+ /**
2004
+ *
2005
+ * @summary GetUpdatesFromVersion
2006
+ * @param {string} version provider
2007
+ * @param {*} [options] Override http request option.
2008
+ * @throws {RequiredError}
2009
+ */
2010
+ systemInfoClientUpdateVersionGet: async (version: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
2011
+ // verify required parameter 'version' is not null or undefined
2012
+ assertParamExists('systemInfoClientUpdateVersionGet', 'version', version)
2013
+ const localVarPath = `/system-info/client-update/{version}`
2014
+ .replace(`{${"version"}}`, encodeURIComponent(String(version)));
2015
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
2016
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2017
+ let baseOptions;
2018
+ if (configuration) {
2019
+ baseOptions = configuration.baseOptions;
2020
+ }
2021
+
2022
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
2023
+ const localVarHeaderParameter = {} as any;
2024
+ const localVarQueryParameter = {} as any;
2025
+
2026
+
2027
+
2028
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
2029
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2030
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
2031
+
2032
+ return {
2033
+ url: toPathString(localVarUrlObj),
2034
+ options: localVarRequestOptions,
2035
+ };
2036
+ },
2037
+ }
2038
+ };
2039
+
2040
+ /**
2041
+ * SystemInfoApi - functional programming interface
2042
+ * @export
2043
+ */
2044
+ export const SystemInfoApiFp = function(configuration?: Configuration) {
2045
+ const localVarAxiosParamCreator = SystemInfoApiAxiosParamCreator(configuration)
2046
+ return {
2047
+ /**
2048
+ *
2049
+ * @summary GetUpdatesFromVersion
2050
+ * @param {string} version provider
2051
+ * @param {*} [options] Override http request option.
2052
+ * @throws {RequiredError}
2053
+ */
2054
+ async systemInfoClientUpdateVersionGet(version: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ModelsOrgNoteClientUpdateInfo>> {
2055
+ const localVarAxiosArgs = await localVarAxiosParamCreator.systemInfoClientUpdateVersionGet(version, options);
2056
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
2057
+ },
2058
+ }
2059
+ };
2060
+
2061
+ /**
2062
+ * SystemInfoApi - factory interface
2063
+ * @export
2064
+ */
2065
+ export const SystemInfoApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
2066
+ const localVarFp = SystemInfoApiFp(configuration)
2067
+ return {
2068
+ /**
2069
+ *
2070
+ * @summary GetUpdatesFromVersion
2071
+ * @param {string} version provider
2072
+ * @param {*} [options] Override http request option.
2073
+ * @throws {RequiredError}
2074
+ */
2075
+ systemInfoClientUpdateVersionGet(version: string, options?: any): AxiosPromise<ModelsOrgNoteClientUpdateInfo> {
2076
+ return localVarFp.systemInfoClientUpdateVersionGet(version, options).then((request) => request(axios, basePath));
2077
+ },
2078
+ };
2079
+ };
2080
+
2081
+ /**
2082
+ * SystemInfoApi - object-oriented interface
2083
+ * @export
2084
+ * @class SystemInfoApi
2085
+ * @extends {BaseAPI}
2086
+ */
2087
+ export class SystemInfoApi extends BaseAPI {
2088
+ /**
2089
+ *
2090
+ * @summary GetUpdatesFromVersion
2091
+ * @param {string} version provider
2092
+ * @param {*} [options] Override http request option.
2093
+ * @throws {RequiredError}
2094
+ * @memberof SystemInfoApi
2095
+ */
2096
+ public systemInfoClientUpdateVersionGet(version: string, options?: AxiosRequestConfig) {
2097
+ return SystemInfoApiFp(this.configuration).systemInfoClientUpdateVersionGet(version, options).then((request) => request(this.axios, this.basePath));
2098
+ }
2099
+ }
2100
+
2101
+
1972
2102
  /**
1973
2103
  * TagsApi - axios parameter creator
1974
2104
  * @export