@halo-dev/api-client 0.0.58 → 0.0.59

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/index.cjs CHANGED
@@ -77,7 +77,7 @@ const createRequestFunction = function(axiosArgs, globalAxios, BASE_PATH, config
77
77
 
78
78
  const ApiConsoleHaloRunV1alpha1AttachmentApiAxiosParamCreator = function(configuration) {
79
79
  return {
80
- searchAttachments: async (policy, sort, displayName, ungrouped, uploadedBy, group, size, page, labelSelector, fieldSelector, options = {}) => {
80
+ searchAttachments: async (policy, sort, displayName, group, ungrouped, uploadedBy, size, page, labelSelector, fieldSelector, options = {}) => {
81
81
  const localVarPath = `/apis/api.console.halo.run/v1alpha1/attachments`;
82
82
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
83
83
  let baseOptions;
@@ -98,15 +98,15 @@ const ApiConsoleHaloRunV1alpha1AttachmentApiAxiosParamCreator = function(configu
98
98
  if (displayName !== void 0) {
99
99
  localVarQueryParameter["displayName"] = displayName;
100
100
  }
101
+ if (group !== void 0) {
102
+ localVarQueryParameter["group"] = group;
103
+ }
101
104
  if (ungrouped !== void 0) {
102
105
  localVarQueryParameter["ungrouped"] = ungrouped;
103
106
  }
104
107
  if (uploadedBy !== void 0) {
105
108
  localVarQueryParameter["uploadedBy"] = uploadedBy;
106
109
  }
107
- if (group !== void 0) {
108
- localVarQueryParameter["group"] = group;
109
- }
110
110
  if (size !== void 0) {
111
111
  localVarQueryParameter["size"] = size;
112
112
  }
@@ -166,8 +166,8 @@ const ApiConsoleHaloRunV1alpha1AttachmentApiAxiosParamCreator = function(configu
166
166
  const ApiConsoleHaloRunV1alpha1AttachmentApiFp = function(configuration) {
167
167
  const localVarAxiosParamCreator = ApiConsoleHaloRunV1alpha1AttachmentApiAxiosParamCreator(configuration);
168
168
  return {
169
- async searchAttachments(policy, sort, displayName, ungrouped, uploadedBy, group, size, page, labelSelector, fieldSelector, options) {
170
- const localVarAxiosArgs = await localVarAxiosParamCreator.searchAttachments(policy, sort, displayName, ungrouped, uploadedBy, group, size, page, labelSelector, fieldSelector, options);
169
+ async searchAttachments(policy, sort, displayName, group, ungrouped, uploadedBy, size, page, labelSelector, fieldSelector, options) {
170
+ const localVarAxiosArgs = await localVarAxiosParamCreator.searchAttachments(policy, sort, displayName, group, ungrouped, uploadedBy, size, page, labelSelector, fieldSelector, options);
171
171
  return createRequestFunction(localVarAxiosArgs, globalAxios__default, BASE_PATH, configuration);
172
172
  },
173
173
  async uploadAttachment(file, policyName, groupName, options) {
@@ -179,8 +179,8 @@ const ApiConsoleHaloRunV1alpha1AttachmentApiFp = function(configuration) {
179
179
  const ApiConsoleHaloRunV1alpha1AttachmentApiFactory = function(configuration, basePath, axios) {
180
180
  const localVarFp = ApiConsoleHaloRunV1alpha1AttachmentApiFp(configuration);
181
181
  return {
182
- searchAttachments(policy, sort, displayName, ungrouped, uploadedBy, group, size, page, labelSelector, fieldSelector, options) {
183
- return localVarFp.searchAttachments(policy, sort, displayName, ungrouped, uploadedBy, group, size, page, labelSelector, fieldSelector, options).then((request) => request(axios, basePath));
182
+ searchAttachments(policy, sort, displayName, group, ungrouped, uploadedBy, size, page, labelSelector, fieldSelector, options) {
183
+ return localVarFp.searchAttachments(policy, sort, displayName, group, ungrouped, uploadedBy, size, page, labelSelector, fieldSelector, options).then((request) => request(axios, basePath));
184
184
  },
185
185
  uploadAttachment(file, policyName, groupName, options) {
186
186
  return localVarFp.uploadAttachment(file, policyName, groupName, options).then((request) => request(axios, basePath));
@@ -189,7 +189,7 @@ const ApiConsoleHaloRunV1alpha1AttachmentApiFactory = function(configuration, ba
189
189
  };
190
190
  class ApiConsoleHaloRunV1alpha1AttachmentApi extends BaseAPI {
191
191
  searchAttachments(requestParameters = {}, options) {
192
- return ApiConsoleHaloRunV1alpha1AttachmentApiFp(this.configuration).searchAttachments(requestParameters.policy, requestParameters.sort, requestParameters.displayName, requestParameters.ungrouped, requestParameters.uploadedBy, requestParameters.group, requestParameters.size, requestParameters.page, requestParameters.labelSelector, requestParameters.fieldSelector, options).then((request) => request(this.axios, this.basePath));
192
+ return ApiConsoleHaloRunV1alpha1AttachmentApiFp(this.configuration).searchAttachments(requestParameters.policy, requestParameters.sort, requestParameters.displayName, requestParameters.group, requestParameters.ungrouped, requestParameters.uploadedBy, requestParameters.size, requestParameters.page, requestParameters.labelSelector, requestParameters.fieldSelector, options).then((request) => request(this.axios, this.basePath));
193
193
  }
194
194
  uploadAttachment(requestParameters, options) {
195
195
  return ApiConsoleHaloRunV1alpha1AttachmentApiFp(this.configuration).uploadAttachment(requestParameters.file, requestParameters.policyName, requestParameters.groupName, options).then((request) => request(this.axios, this.basePath));
package/dist/index.d.ts CHANGED
@@ -2025,19 +2025,19 @@ interface Extension {
2025
2025
  * @type {string}
2026
2026
  * @memberof Extension
2027
2027
  */
2028
- apiVersion: string;
2028
+ kind: string;
2029
2029
  /**
2030
2030
  *
2031
- * @type {string}
2031
+ * @type {Metadata}
2032
2032
  * @memberof Extension
2033
2033
  */
2034
- kind: string;
2034
+ metadata: Metadata;
2035
2035
  /**
2036
2036
  *
2037
- * @type {Metadata}
2037
+ * @type {string}
2038
2038
  * @memberof Extension
2039
2039
  */
2040
- metadata: Metadata;
2040
+ apiVersion: string;
2041
2041
  }
2042
2042
 
2043
2043
  /**
@@ -4192,10 +4192,10 @@ interface PluginSpec {
4192
4192
  version: string;
4193
4193
  /**
4194
4194
  *
4195
- * @type {string}
4195
+ * @type {Author}
4196
4196
  * @memberof PluginSpec
4197
4197
  */
4198
- author?: string;
4198
+ author?: Author;
4199
4199
  /**
4200
4200
  *
4201
4201
  * @type {string}
@@ -6991,9 +6991,9 @@ declare const ApiConsoleHaloRunV1alpha1AttachmentApiAxiosParamCreator: (configur
6991
6991
  * @param {string} [policy] Name of policy
6992
6992
  * @param {Array<string>} [sort] Sort property and direction of the list result. Supported fields: creationTimestamp, size
6993
6993
  * @param {string} [displayName] Display name of attachment
6994
+ * @param {string} [group] Name of group
6994
6995
  * @param {boolean} [ungrouped] Filter attachments without group. This parameter will ignore group parameter.
6995
6996
  * @param {string} [uploadedBy] Name of user who uploaded the attachment
6996
- * @param {string} [group] Name of group
6997
6997
  * @param {number} [size] Size of one page. Zero indicates no limit.
6998
6998
  * @param {number} [page] The page number. Zero indicates no page.
6999
6999
  * @param {Array<string>} [labelSelector] Label selector for filtering.
@@ -7001,7 +7001,7 @@ declare const ApiConsoleHaloRunV1alpha1AttachmentApiAxiosParamCreator: (configur
7001
7001
  * @param {*} [options] Override http request option.
7002
7002
  * @throws {RequiredError}
7003
7003
  */
7004
- searchAttachments: (policy?: string, sort?: Array<string>, displayName?: string, ungrouped?: boolean, uploadedBy?: string, group?: string, size?: number, page?: number, labelSelector?: Array<string>, fieldSelector?: Array<string>, options?: AxiosRequestConfig) => Promise<RequestArgs>;
7004
+ searchAttachments: (policy?: string, sort?: Array<string>, displayName?: string, group?: string, ungrouped?: boolean, uploadedBy?: string, size?: number, page?: number, labelSelector?: Array<string>, fieldSelector?: Array<string>, options?: AxiosRequestConfig) => Promise<RequestArgs>;
7005
7005
  /**
7006
7006
  *
7007
7007
  * @param {any} file
@@ -7022,9 +7022,9 @@ declare const ApiConsoleHaloRunV1alpha1AttachmentApiFp: (configuration?: Configu
7022
7022
  * @param {string} [policy] Name of policy
7023
7023
  * @param {Array<string>} [sort] Sort property and direction of the list result. Supported fields: creationTimestamp, size
7024
7024
  * @param {string} [displayName] Display name of attachment
7025
+ * @param {string} [group] Name of group
7025
7026
  * @param {boolean} [ungrouped] Filter attachments without group. This parameter will ignore group parameter.
7026
7027
  * @param {string} [uploadedBy] Name of user who uploaded the attachment
7027
- * @param {string} [group] Name of group
7028
7028
  * @param {number} [size] Size of one page. Zero indicates no limit.
7029
7029
  * @param {number} [page] The page number. Zero indicates no page.
7030
7030
  * @param {Array<string>} [labelSelector] Label selector for filtering.
@@ -7032,7 +7032,7 @@ declare const ApiConsoleHaloRunV1alpha1AttachmentApiFp: (configuration?: Configu
7032
7032
  * @param {*} [options] Override http request option.
7033
7033
  * @throws {RequiredError}
7034
7034
  */
7035
- searchAttachments(policy?: string, sort?: Array<string>, displayName?: string, ungrouped?: boolean, uploadedBy?: string, group?: string, size?: number, page?: number, labelSelector?: Array<string>, fieldSelector?: Array<string>, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AttachmentList>>;
7035
+ searchAttachments(policy?: string, sort?: Array<string>, displayName?: string, group?: string, ungrouped?: boolean, uploadedBy?: string, size?: number, page?: number, labelSelector?: Array<string>, fieldSelector?: Array<string>, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AttachmentList>>;
7036
7036
  /**
7037
7037
  *
7038
7038
  * @param {any} file
@@ -7053,9 +7053,9 @@ declare const ApiConsoleHaloRunV1alpha1AttachmentApiFactory: (configuration?: Co
7053
7053
  * @param {string} [policy] Name of policy
7054
7054
  * @param {Array<string>} [sort] Sort property and direction of the list result. Supported fields: creationTimestamp, size
7055
7055
  * @param {string} [displayName] Display name of attachment
7056
+ * @param {string} [group] Name of group
7056
7057
  * @param {boolean} [ungrouped] Filter attachments without group. This parameter will ignore group parameter.
7057
7058
  * @param {string} [uploadedBy] Name of user who uploaded the attachment
7058
- * @param {string} [group] Name of group
7059
7059
  * @param {number} [size] Size of one page. Zero indicates no limit.
7060
7060
  * @param {number} [page] The page number. Zero indicates no page.
7061
7061
  * @param {Array<string>} [labelSelector] Label selector for filtering.
@@ -7063,7 +7063,7 @@ declare const ApiConsoleHaloRunV1alpha1AttachmentApiFactory: (configuration?: Co
7063
7063
  * @param {*} [options] Override http request option.
7064
7064
  * @throws {RequiredError}
7065
7065
  */
7066
- searchAttachments(policy?: string, sort?: Array<string>, displayName?: string, ungrouped?: boolean, uploadedBy?: string, group?: string, size?: number, page?: number, labelSelector?: Array<string>, fieldSelector?: Array<string>, options?: any): AxiosPromise<AttachmentList>;
7066
+ searchAttachments(policy?: string, sort?: Array<string>, displayName?: string, group?: string, ungrouped?: boolean, uploadedBy?: string, size?: number, page?: number, labelSelector?: Array<string>, fieldSelector?: Array<string>, options?: any): AxiosPromise<AttachmentList>;
7067
7067
  /**
7068
7068
  *
7069
7069
  * @param {any} file
@@ -7098,6 +7098,12 @@ interface ApiConsoleHaloRunV1alpha1AttachmentApiSearchAttachmentsRequest {
7098
7098
  * @memberof ApiConsoleHaloRunV1alpha1AttachmentApiSearchAttachments
7099
7099
  */
7100
7100
  readonly displayName?: string;
7101
+ /**
7102
+ * Name of group
7103
+ * @type {string}
7104
+ * @memberof ApiConsoleHaloRunV1alpha1AttachmentApiSearchAttachments
7105
+ */
7106
+ readonly group?: string;
7101
7107
  /**
7102
7108
  * Filter attachments without group. This parameter will ignore group parameter.
7103
7109
  * @type {boolean}
@@ -7110,12 +7116,6 @@ interface ApiConsoleHaloRunV1alpha1AttachmentApiSearchAttachmentsRequest {
7110
7116
  * @memberof ApiConsoleHaloRunV1alpha1AttachmentApiSearchAttachments
7111
7117
  */
7112
7118
  readonly uploadedBy?: string;
7113
- /**
7114
- * Name of group
7115
- * @type {string}
7116
- * @memberof ApiConsoleHaloRunV1alpha1AttachmentApiSearchAttachments
7117
- */
7118
- readonly group?: string;
7119
7119
  /**
7120
7120
  * Size of one page. Zero indicates no limit.
7121
7121
  * @type {number}
package/dist/index.mjs CHANGED
@@ -69,7 +69,7 @@ const createRequestFunction = function(axiosArgs, globalAxios, BASE_PATH, config
69
69
 
70
70
  const ApiConsoleHaloRunV1alpha1AttachmentApiAxiosParamCreator = function(configuration) {
71
71
  return {
72
- searchAttachments: async (policy, sort, displayName, ungrouped, uploadedBy, group, size, page, labelSelector, fieldSelector, options = {}) => {
72
+ searchAttachments: async (policy, sort, displayName, group, ungrouped, uploadedBy, size, page, labelSelector, fieldSelector, options = {}) => {
73
73
  const localVarPath = `/apis/api.console.halo.run/v1alpha1/attachments`;
74
74
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
75
75
  let baseOptions;
@@ -90,15 +90,15 @@ const ApiConsoleHaloRunV1alpha1AttachmentApiAxiosParamCreator = function(configu
90
90
  if (displayName !== void 0) {
91
91
  localVarQueryParameter["displayName"] = displayName;
92
92
  }
93
+ if (group !== void 0) {
94
+ localVarQueryParameter["group"] = group;
95
+ }
93
96
  if (ungrouped !== void 0) {
94
97
  localVarQueryParameter["ungrouped"] = ungrouped;
95
98
  }
96
99
  if (uploadedBy !== void 0) {
97
100
  localVarQueryParameter["uploadedBy"] = uploadedBy;
98
101
  }
99
- if (group !== void 0) {
100
- localVarQueryParameter["group"] = group;
101
- }
102
102
  if (size !== void 0) {
103
103
  localVarQueryParameter["size"] = size;
104
104
  }
@@ -158,8 +158,8 @@ const ApiConsoleHaloRunV1alpha1AttachmentApiAxiosParamCreator = function(configu
158
158
  const ApiConsoleHaloRunV1alpha1AttachmentApiFp = function(configuration) {
159
159
  const localVarAxiosParamCreator = ApiConsoleHaloRunV1alpha1AttachmentApiAxiosParamCreator(configuration);
160
160
  return {
161
- async searchAttachments(policy, sort, displayName, ungrouped, uploadedBy, group, size, page, labelSelector, fieldSelector, options) {
162
- const localVarAxiosArgs = await localVarAxiosParamCreator.searchAttachments(policy, sort, displayName, ungrouped, uploadedBy, group, size, page, labelSelector, fieldSelector, options);
161
+ async searchAttachments(policy, sort, displayName, group, ungrouped, uploadedBy, size, page, labelSelector, fieldSelector, options) {
162
+ const localVarAxiosArgs = await localVarAxiosParamCreator.searchAttachments(policy, sort, displayName, group, ungrouped, uploadedBy, size, page, labelSelector, fieldSelector, options);
163
163
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
164
164
  },
165
165
  async uploadAttachment(file, policyName, groupName, options) {
@@ -171,8 +171,8 @@ const ApiConsoleHaloRunV1alpha1AttachmentApiFp = function(configuration) {
171
171
  const ApiConsoleHaloRunV1alpha1AttachmentApiFactory = function(configuration, basePath, axios) {
172
172
  const localVarFp = ApiConsoleHaloRunV1alpha1AttachmentApiFp(configuration);
173
173
  return {
174
- searchAttachments(policy, sort, displayName, ungrouped, uploadedBy, group, size, page, labelSelector, fieldSelector, options) {
175
- return localVarFp.searchAttachments(policy, sort, displayName, ungrouped, uploadedBy, group, size, page, labelSelector, fieldSelector, options).then((request) => request(axios, basePath));
174
+ searchAttachments(policy, sort, displayName, group, ungrouped, uploadedBy, size, page, labelSelector, fieldSelector, options) {
175
+ return localVarFp.searchAttachments(policy, sort, displayName, group, ungrouped, uploadedBy, size, page, labelSelector, fieldSelector, options).then((request) => request(axios, basePath));
176
176
  },
177
177
  uploadAttachment(file, policyName, groupName, options) {
178
178
  return localVarFp.uploadAttachment(file, policyName, groupName, options).then((request) => request(axios, basePath));
@@ -181,7 +181,7 @@ const ApiConsoleHaloRunV1alpha1AttachmentApiFactory = function(configuration, ba
181
181
  };
182
182
  class ApiConsoleHaloRunV1alpha1AttachmentApi extends BaseAPI {
183
183
  searchAttachments(requestParameters = {}, options) {
184
- return ApiConsoleHaloRunV1alpha1AttachmentApiFp(this.configuration).searchAttachments(requestParameters.policy, requestParameters.sort, requestParameters.displayName, requestParameters.ungrouped, requestParameters.uploadedBy, requestParameters.group, requestParameters.size, requestParameters.page, requestParameters.labelSelector, requestParameters.fieldSelector, options).then((request) => request(this.axios, this.basePath));
184
+ return ApiConsoleHaloRunV1alpha1AttachmentApiFp(this.configuration).searchAttachments(requestParameters.policy, requestParameters.sort, requestParameters.displayName, requestParameters.group, requestParameters.ungrouped, requestParameters.uploadedBy, requestParameters.size, requestParameters.page, requestParameters.labelSelector, requestParameters.fieldSelector, options).then((request) => request(this.axios, this.basePath));
185
185
  }
186
186
  uploadAttachment(requestParameters, options) {
187
187
  return ApiConsoleHaloRunV1alpha1AttachmentApiFp(this.configuration).uploadAttachment(requestParameters.file, requestParameters.policyName, requestParameters.groupName, options).then((request) => request(this.axios, this.basePath));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@halo-dev/api-client",
3
- "version": "0.0.58",
3
+ "version": "0.0.59",
4
4
  "description": "",
5
5
  "keywords": [],
6
6
  "author": "@halo-dev",