@closerplatform/spinner-openapi 0.12.1 → 0.12.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.
Files changed (3) hide show
  1. package/dist/api.d.ts +64 -64
  2. package/dist/api.js +106 -74
  3. package/package.json +1 -1
package/dist/api.d.ts CHANGED
@@ -9730,12 +9730,12 @@ export declare const MessageWidgetsApiFetchParamCreator: (configuration?: Config
9730
9730
  /**
9731
9731
  *
9732
9732
  * @summary update message widget config by widget id
9733
+ * @param {MessageWidgetForm} body
9733
9734
  * @param {string} value
9734
- * @param {MessageWidgetForm} [body]
9735
9735
  * @param {*} [options] Override http request option.
9736
9736
  * @throws {RequiredError}
9737
9737
  */
9738
- updateMessageWidgetConfig(value: string, body?: MessageWidgetForm, options?: any): FetchArgs;
9738
+ updateMessageWidgetConfig(body: MessageWidgetForm, value: string, options?: any): FetchArgs;
9739
9739
  };
9740
9740
  /**
9741
9741
  * MessageWidgetsApi - functional programming interface
@@ -9779,12 +9779,12 @@ export declare const MessageWidgetsApiFp: (configuration?: Configuration) => {
9779
9779
  /**
9780
9780
  *
9781
9781
  * @summary update message widget config by widget id
9782
+ * @param {MessageWidgetForm} body
9782
9783
  * @param {string} value
9783
- * @param {MessageWidgetForm} [body]
9784
9784
  * @param {*} [options] Override http request option.
9785
9785
  * @throws {RequiredError}
9786
9786
  */
9787
- updateMessageWidgetConfig(value: string, body?: MessageWidgetForm, options?: any): (fetch?: FetchAPI, basePath?: string) => Promise<MessageWidgetConfig>;
9787
+ updateMessageWidgetConfig(body: MessageWidgetForm, value: string, options?: any): (fetch?: FetchAPI, basePath?: string) => Promise<MessageWidgetConfig>;
9788
9788
  };
9789
9789
  /**
9790
9790
  * MessageWidgetsApi - factory interface
@@ -9828,12 +9828,12 @@ export declare const MessageWidgetsApiFactory: (configuration?: Configuration, f
9828
9828
  /**
9829
9829
  *
9830
9830
  * @summary update message widget config by widget id
9831
+ * @param {MessageWidgetForm} body
9831
9832
  * @param {string} value
9832
- * @param {MessageWidgetForm} [body]
9833
9833
  * @param {*} [options] Override http request option.
9834
9834
  * @throws {RequiredError}
9835
9835
  */
9836
- updateMessageWidgetConfig(value: string, body?: MessageWidgetForm, options?: any): Promise<MessageWidgetConfig>;
9836
+ updateMessageWidgetConfig(body: MessageWidgetForm, value: string, options?: any): Promise<MessageWidgetConfig>;
9837
9837
  };
9838
9838
  /**
9839
9839
  * MessageWidgetsApi - object-oriented interface
@@ -9883,13 +9883,13 @@ export declare class MessageWidgetsApi extends BaseAPI {
9883
9883
  /**
9884
9884
  *
9885
9885
  * @summary update message widget config by widget id
9886
+ * @param {MessageWidgetForm} body
9886
9887
  * @param {string} value
9887
- * @param {MessageWidgetForm} [body]
9888
9888
  * @param {*} [options] Override http request option.
9889
9889
  * @throws {RequiredError}
9890
9890
  * @memberof MessageWidgetsApi
9891
9891
  */
9892
- updateMessageWidgetConfig(value: string, body?: MessageWidgetForm, options?: any): Promise<MessageWidgetConfig>;
9892
+ updateMessageWidgetConfig(body: MessageWidgetForm, value: string, options?: any): Promise<MessageWidgetConfig>;
9893
9893
  }
9894
9894
  /**
9895
9895
  * NLUApi - fetch parameter creator
@@ -12115,29 +12115,29 @@ export declare const RolesApiFetchParamCreator: (configuration?: Configuration)
12115
12115
  /**
12116
12116
  *
12117
12117
  * @summary add permissions to role
12118
+ * @param {PermissionForm} body
12118
12119
  * @param {string} roleId
12119
- * @param {PermissionForm} [body]
12120
12120
  * @param {*} [options] Override http request option.
12121
12121
  * @throws {RequiredError}
12122
12122
  */
12123
- addPermissionsToRole(roleId: string, body?: PermissionForm, options?: any): FetchArgs;
12123
+ addPermissionsToRole(body: PermissionForm, roleId: string, options?: any): FetchArgs;
12124
12124
  /**
12125
12125
  *
12126
12126
  * @summary create role
12127
- * @param {CreateRoleForm} [body]
12127
+ * @param {CreateRoleForm} body
12128
12128
  * @param {*} [options] Override http request option.
12129
12129
  * @throws {RequiredError}
12130
12130
  */
12131
- createRole(body?: CreateRoleForm, options?: any): FetchArgs;
12131
+ createRole(body: CreateRoleForm, options?: any): FetchArgs;
12132
12132
  /**
12133
12133
  *
12134
12134
  * @summary delete permissions from role
12135
+ * @param {PermissionForm} body
12135
12136
  * @param {string} roleId
12136
- * @param {PermissionForm} [body]
12137
12137
  * @param {*} [options] Override http request option.
12138
12138
  * @throws {RequiredError}
12139
12139
  */
12140
- deletePermissionsFromRole(roleId: string, body?: PermissionForm, options?: any): FetchArgs;
12140
+ deletePermissionsFromRole(body: PermissionForm, roleId: string, options?: any): FetchArgs;
12141
12141
  /**
12142
12142
  *
12143
12143
  * @summary delete role
@@ -12164,12 +12164,12 @@ export declare const RolesApiFetchParamCreator: (configuration?: Configuration)
12164
12164
  /**
12165
12165
  *
12166
12166
  * @summary update role
12167
+ * @param {UpdateRoleForm} body
12167
12168
  * @param {string} roleId
12168
- * @param {UpdateRoleForm} [body]
12169
12169
  * @param {*} [options] Override http request option.
12170
12170
  * @throws {RequiredError}
12171
12171
  */
12172
- updateRole(roleId: string, body?: UpdateRoleForm, options?: any): FetchArgs;
12172
+ updateRole(body: UpdateRoleForm, roleId: string, options?: any): FetchArgs;
12173
12173
  };
12174
12174
  /**
12175
12175
  * RolesApi - functional programming interface
@@ -12179,29 +12179,29 @@ export declare const RolesApiFp: (configuration?: Configuration) => {
12179
12179
  /**
12180
12180
  *
12181
12181
  * @summary add permissions to role
12182
+ * @param {PermissionForm} body
12182
12183
  * @param {string} roleId
12183
- * @param {PermissionForm} [body]
12184
12184
  * @param {*} [options] Override http request option.
12185
12185
  * @throws {RequiredError}
12186
12186
  */
12187
- addPermissionsToRole(roleId: string, body?: PermissionForm, options?: any): (fetch?: FetchAPI, basePath?: string) => Promise<Response>;
12187
+ addPermissionsToRole(body: PermissionForm, roleId: string, options?: any): (fetch?: FetchAPI, basePath?: string) => Promise<Response>;
12188
12188
  /**
12189
12189
  *
12190
12190
  * @summary create role
12191
- * @param {CreateRoleForm} [body]
12191
+ * @param {CreateRoleForm} body
12192
12192
  * @param {*} [options] Override http request option.
12193
12193
  * @throws {RequiredError}
12194
12194
  */
12195
- createRole(body?: CreateRoleForm, options?: any): (fetch?: FetchAPI, basePath?: string) => Promise<Role>;
12195
+ createRole(body: CreateRoleForm, options?: any): (fetch?: FetchAPI, basePath?: string) => Promise<Role>;
12196
12196
  /**
12197
12197
  *
12198
12198
  * @summary delete permissions from role
12199
+ * @param {PermissionForm} body
12199
12200
  * @param {string} roleId
12200
- * @param {PermissionForm} [body]
12201
12201
  * @param {*} [options] Override http request option.
12202
12202
  * @throws {RequiredError}
12203
12203
  */
12204
- deletePermissionsFromRole(roleId: string, body?: PermissionForm, options?: any): (fetch?: FetchAPI, basePath?: string) => Promise<Response>;
12204
+ deletePermissionsFromRole(body: PermissionForm, roleId: string, options?: any): (fetch?: FetchAPI, basePath?: string) => Promise<Response>;
12205
12205
  /**
12206
12206
  *
12207
12207
  * @summary delete role
@@ -12228,12 +12228,12 @@ export declare const RolesApiFp: (configuration?: Configuration) => {
12228
12228
  /**
12229
12229
  *
12230
12230
  * @summary update role
12231
+ * @param {UpdateRoleForm} body
12231
12232
  * @param {string} roleId
12232
- * @param {UpdateRoleForm} [body]
12233
12233
  * @param {*} [options] Override http request option.
12234
12234
  * @throws {RequiredError}
12235
12235
  */
12236
- updateRole(roleId: string, body?: UpdateRoleForm, options?: any): (fetch?: FetchAPI, basePath?: string) => Promise<Role>;
12236
+ updateRole(body: UpdateRoleForm, roleId: string, options?: any): (fetch?: FetchAPI, basePath?: string) => Promise<Role>;
12237
12237
  };
12238
12238
  /**
12239
12239
  * RolesApi - factory interface
@@ -12243,29 +12243,29 @@ export declare const RolesApiFactory: (configuration?: Configuration, fetch?: Fe
12243
12243
  /**
12244
12244
  *
12245
12245
  * @summary add permissions to role
12246
+ * @param {PermissionForm} body
12246
12247
  * @param {string} roleId
12247
- * @param {PermissionForm} [body]
12248
12248
  * @param {*} [options] Override http request option.
12249
12249
  * @throws {RequiredError}
12250
12250
  */
12251
- addPermissionsToRole(roleId: string, body?: PermissionForm, options?: any): Promise<Response>;
12251
+ addPermissionsToRole(body: PermissionForm, roleId: string, options?: any): Promise<Response>;
12252
12252
  /**
12253
12253
  *
12254
12254
  * @summary create role
12255
- * @param {CreateRoleForm} [body]
12255
+ * @param {CreateRoleForm} body
12256
12256
  * @param {*} [options] Override http request option.
12257
12257
  * @throws {RequiredError}
12258
12258
  */
12259
- createRole(body?: CreateRoleForm, options?: any): Promise<Role>;
12259
+ createRole(body: CreateRoleForm, options?: any): Promise<Role>;
12260
12260
  /**
12261
12261
  *
12262
12262
  * @summary delete permissions from role
12263
+ * @param {PermissionForm} body
12263
12264
  * @param {string} roleId
12264
- * @param {PermissionForm} [body]
12265
12265
  * @param {*} [options] Override http request option.
12266
12266
  * @throws {RequiredError}
12267
12267
  */
12268
- deletePermissionsFromRole(roleId: string, body?: PermissionForm, options?: any): Promise<Response>;
12268
+ deletePermissionsFromRole(body: PermissionForm, roleId: string, options?: any): Promise<Response>;
12269
12269
  /**
12270
12270
  *
12271
12271
  * @summary delete role
@@ -12292,12 +12292,12 @@ export declare const RolesApiFactory: (configuration?: Configuration, fetch?: Fe
12292
12292
  /**
12293
12293
  *
12294
12294
  * @summary update role
12295
+ * @param {UpdateRoleForm} body
12295
12296
  * @param {string} roleId
12296
- * @param {UpdateRoleForm} [body]
12297
12297
  * @param {*} [options] Override http request option.
12298
12298
  * @throws {RequiredError}
12299
12299
  */
12300
- updateRole(roleId: string, body?: UpdateRoleForm, options?: any): Promise<Role>;
12300
+ updateRole(body: UpdateRoleForm, roleId: string, options?: any): Promise<Role>;
12301
12301
  };
12302
12302
  /**
12303
12303
  * RolesApi - object-oriented interface
@@ -12309,32 +12309,32 @@ export declare class RolesApi extends BaseAPI {
12309
12309
  /**
12310
12310
  *
12311
12311
  * @summary add permissions to role
12312
+ * @param {PermissionForm} body
12312
12313
  * @param {string} roleId
12313
- * @param {PermissionForm} [body]
12314
12314
  * @param {*} [options] Override http request option.
12315
12315
  * @throws {RequiredError}
12316
12316
  * @memberof RolesApi
12317
12317
  */
12318
- addPermissionsToRole(roleId: string, body?: PermissionForm, options?: any): Promise<Response>;
12318
+ addPermissionsToRole(body: PermissionForm, roleId: string, options?: any): Promise<Response>;
12319
12319
  /**
12320
12320
  *
12321
12321
  * @summary create role
12322
- * @param {CreateRoleForm} [body]
12322
+ * @param {CreateRoleForm} body
12323
12323
  * @param {*} [options] Override http request option.
12324
12324
  * @throws {RequiredError}
12325
12325
  * @memberof RolesApi
12326
12326
  */
12327
- createRole(body?: CreateRoleForm, options?: any): Promise<Role>;
12327
+ createRole(body: CreateRoleForm, options?: any): Promise<Role>;
12328
12328
  /**
12329
12329
  *
12330
12330
  * @summary delete permissions from role
12331
+ * @param {PermissionForm} body
12331
12332
  * @param {string} roleId
12332
- * @param {PermissionForm} [body]
12333
12333
  * @param {*} [options] Override http request option.
12334
12334
  * @throws {RequiredError}
12335
12335
  * @memberof RolesApi
12336
12336
  */
12337
- deletePermissionsFromRole(roleId: string, body?: PermissionForm, options?: any): Promise<Response>;
12337
+ deletePermissionsFromRole(body: PermissionForm, roleId: string, options?: any): Promise<Response>;
12338
12338
  /**
12339
12339
  *
12340
12340
  * @summary delete role
@@ -12364,13 +12364,13 @@ export declare class RolesApi extends BaseAPI {
12364
12364
  /**
12365
12365
  *
12366
12366
  * @summary update role
12367
+ * @param {UpdateRoleForm} body
12367
12368
  * @param {string} roleId
12368
- * @param {UpdateRoleForm} [body]
12369
12369
  * @param {*} [options] Override http request option.
12370
12370
  * @throws {RequiredError}
12371
12371
  * @memberof RolesApi
12372
12372
  */
12373
- updateRole(roleId: string, body?: UpdateRoleForm, options?: any): Promise<Role>;
12373
+ updateRole(body: UpdateRoleForm, roleId: string, options?: any): Promise<Role>;
12374
12374
  }
12375
12375
  /**
12376
12376
  * RoomsApi - fetch parameter creator
@@ -12907,11 +12907,11 @@ export declare const SessionApiFetchParamCreator: (configuration?: Configuration
12907
12907
  /**
12908
12908
  *
12909
12909
  * @summary Login user. Create session.
12910
- * @param {LoginCredentialsOrTokenForm} [body] Valid parameters are either token or credentials (email and password). Unless provided in mentioned form, Bad Request will be returned
12910
+ * @param {LoginCredentialsOrTokenForm} body Valid parameters are either token or credentials (email and password). Unless provided in mentioned form, Bad Request will be returned
12911
12911
  * @param {*} [options] Override http request option.
12912
12912
  * @throws {RequiredError}
12913
12913
  */
12914
- login(body?: LoginCredentialsOrTokenForm, options?: any): FetchArgs;
12914
+ login(body: LoginCredentialsOrTokenForm, options?: any): FetchArgs;
12915
12915
  /**
12916
12916
  *
12917
12917
  * @summary Logout user. Delete session.
@@ -12967,11 +12967,11 @@ export declare const SessionApiFp: (configuration?: Configuration) => {
12967
12967
  /**
12968
12968
  *
12969
12969
  * @summary Login user. Create session.
12970
- * @param {LoginCredentialsOrTokenForm} [body] Valid parameters are either token or credentials (email and password). Unless provided in mentioned form, Bad Request will be returned
12970
+ * @param {LoginCredentialsOrTokenForm} body Valid parameters are either token or credentials (email and password). Unless provided in mentioned form, Bad Request will be returned
12971
12971
  * @param {*} [options] Override http request option.
12972
12972
  * @throws {RequiredError}
12973
12973
  */
12974
- login(body?: LoginCredentialsOrTokenForm, options?: any): (fetch?: FetchAPI, basePath?: string) => Promise<AgentCtx>;
12974
+ login(body: LoginCredentialsOrTokenForm, options?: any): (fetch?: FetchAPI, basePath?: string) => Promise<AgentCtx>;
12975
12975
  /**
12976
12976
  *
12977
12977
  * @summary Logout user. Delete session.
@@ -13027,11 +13027,11 @@ export declare const SessionApiFactory: (configuration?: Configuration, fetch?:
13027
13027
  /**
13028
13028
  *
13029
13029
  * @summary Login user. Create session.
13030
- * @param {LoginCredentialsOrTokenForm} [body] Valid parameters are either token or credentials (email and password). Unless provided in mentioned form, Bad Request will be returned
13030
+ * @param {LoginCredentialsOrTokenForm} body Valid parameters are either token or credentials (email and password). Unless provided in mentioned form, Bad Request will be returned
13031
13031
  * @param {*} [options] Override http request option.
13032
13032
  * @throws {RequiredError}
13033
13033
  */
13034
- login(body?: LoginCredentialsOrTokenForm, options?: any): Promise<AgentCtx>;
13034
+ login(body: LoginCredentialsOrTokenForm, options?: any): Promise<AgentCtx>;
13035
13035
  /**
13036
13036
  *
13037
13037
  * @summary Logout user. Delete session.
@@ -13092,12 +13092,12 @@ export declare class SessionApi extends BaseAPI {
13092
13092
  /**
13093
13093
  *
13094
13094
  * @summary Login user. Create session.
13095
- * @param {LoginCredentialsOrTokenForm} [body] Valid parameters are either token or credentials (email and password). Unless provided in mentioned form, Bad Request will be returned
13095
+ * @param {LoginCredentialsOrTokenForm} body Valid parameters are either token or credentials (email and password). Unless provided in mentioned form, Bad Request will be returned
13096
13096
  * @param {*} [options] Override http request option.
13097
13097
  * @throws {RequiredError}
13098
13098
  * @memberof SessionApi
13099
13099
  */
13100
- login(body?: LoginCredentialsOrTokenForm, options?: any): Promise<AgentCtx>;
13100
+ login(body: LoginCredentialsOrTokenForm, options?: any): Promise<AgentCtx>;
13101
13101
  /**
13102
13102
  *
13103
13103
  * @summary Logout user. Delete session.
@@ -15854,12 +15854,12 @@ export declare const WidgetsFormsSubmissionsApiFetchParamCreator: (configuration
15854
15854
  /**
15855
15855
  *
15856
15856
  * @summary create form for room
15857
+ * @param {AddWidgetForm} body
15857
15858
  * @param {string} id
15858
- * @param {AddWidgetForm} [body]
15859
15859
  * @param {*} [options] Override http request option.
15860
15860
  * @throws {RequiredError}
15861
15861
  */
15862
- createWidgetFormForRoomId(id: string, body?: AddWidgetForm, options?: any): FetchArgs;
15862
+ createWidgetFormForRoomId(body: AddWidgetForm, id: string, options?: any): FetchArgs;
15863
15863
  /**
15864
15864
  *
15865
15865
  * @summary get form with widget
@@ -15871,12 +15871,12 @@ export declare const WidgetsFormsSubmissionsApiFetchParamCreator: (configuration
15871
15871
  /**
15872
15872
  *
15873
15873
  * @summary submit form
15874
+ * @param {SubmitWidgetForm} body
15874
15875
  * @param {string} formId
15875
- * @param {SubmitWidgetForm} [body]
15876
15876
  * @param {*} [options] Override http request option.
15877
15877
  * @throws {RequiredError}
15878
15878
  */
15879
- submitWidgetForm(formId: string, body?: SubmitWidgetForm, options?: any): FetchArgs;
15879
+ submitWidgetForm(body: SubmitWidgetForm, formId: string, options?: any): FetchArgs;
15880
15880
  };
15881
15881
  /**
15882
15882
  * WidgetsFormsSubmissionsApi - functional programming interface
@@ -15886,12 +15886,12 @@ export declare const WidgetsFormsSubmissionsApiFp: (configuration?: Configuratio
15886
15886
  /**
15887
15887
  *
15888
15888
  * @summary create form for room
15889
+ * @param {AddWidgetForm} body
15889
15890
  * @param {string} id
15890
- * @param {AddWidgetForm} [body]
15891
15891
  * @param {*} [options] Override http request option.
15892
15892
  * @throws {RequiredError}
15893
15893
  */
15894
- createWidgetFormForRoomId(id: string, body?: AddWidgetForm, options?: any): (fetch?: FetchAPI, basePath?: string) => Promise<WidgetFormSubmission>;
15894
+ createWidgetFormForRoomId(body: AddWidgetForm, id: string, options?: any): (fetch?: FetchAPI, basePath?: string) => Promise<WidgetFormSubmission>;
15895
15895
  /**
15896
15896
  *
15897
15897
  * @summary get form with widget
@@ -15903,12 +15903,12 @@ export declare const WidgetsFormsSubmissionsApiFp: (configuration?: Configuratio
15903
15903
  /**
15904
15904
  *
15905
15905
  * @summary submit form
15906
+ * @param {SubmitWidgetForm} body
15906
15907
  * @param {string} formId
15907
- * @param {SubmitWidgetForm} [body]
15908
15908
  * @param {*} [options] Override http request option.
15909
15909
  * @throws {RequiredError}
15910
15910
  */
15911
- submitWidgetForm(formId: string, body?: SubmitWidgetForm, options?: any): (fetch?: FetchAPI, basePath?: string) => Promise<WidgetFormSubmission>;
15911
+ submitWidgetForm(body: SubmitWidgetForm, formId: string, options?: any): (fetch?: FetchAPI, basePath?: string) => Promise<WidgetFormSubmission>;
15912
15912
  };
15913
15913
  /**
15914
15914
  * WidgetsFormsSubmissionsApi - factory interface
@@ -15918,12 +15918,12 @@ export declare const WidgetsFormsSubmissionsApiFactory: (configuration?: Configu
15918
15918
  /**
15919
15919
  *
15920
15920
  * @summary create form for room
15921
+ * @param {AddWidgetForm} body
15921
15922
  * @param {string} id
15922
- * @param {AddWidgetForm} [body]
15923
15923
  * @param {*} [options] Override http request option.
15924
15924
  * @throws {RequiredError}
15925
15925
  */
15926
- createWidgetFormForRoomId(id: string, body?: AddWidgetForm, options?: any): Promise<WidgetFormSubmission>;
15926
+ createWidgetFormForRoomId(body: AddWidgetForm, id: string, options?: any): Promise<WidgetFormSubmission>;
15927
15927
  /**
15928
15928
  *
15929
15929
  * @summary get form with widget
@@ -15935,12 +15935,12 @@ export declare const WidgetsFormsSubmissionsApiFactory: (configuration?: Configu
15935
15935
  /**
15936
15936
  *
15937
15937
  * @summary submit form
15938
+ * @param {SubmitWidgetForm} body
15938
15939
  * @param {string} formId
15939
- * @param {SubmitWidgetForm} [body]
15940
15940
  * @param {*} [options] Override http request option.
15941
15941
  * @throws {RequiredError}
15942
15942
  */
15943
- submitWidgetForm(formId: string, body?: SubmitWidgetForm, options?: any): Promise<WidgetFormSubmission>;
15943
+ submitWidgetForm(body: SubmitWidgetForm, formId: string, options?: any): Promise<WidgetFormSubmission>;
15944
15944
  };
15945
15945
  /**
15946
15946
  * WidgetsFormsSubmissionsApi - object-oriented interface
@@ -15952,13 +15952,13 @@ export declare class WidgetsFormsSubmissionsApi extends BaseAPI {
15952
15952
  /**
15953
15953
  *
15954
15954
  * @summary create form for room
15955
+ * @param {AddWidgetForm} body
15955
15956
  * @param {string} id
15956
- * @param {AddWidgetForm} [body]
15957
15957
  * @param {*} [options] Override http request option.
15958
15958
  * @throws {RequiredError}
15959
15959
  * @memberof WidgetsFormsSubmissionsApi
15960
15960
  */
15961
- createWidgetFormForRoomId(id: string, body?: AddWidgetForm, options?: any): Promise<WidgetFormSubmission>;
15961
+ createWidgetFormForRoomId(body: AddWidgetForm, id: string, options?: any): Promise<WidgetFormSubmission>;
15962
15962
  /**
15963
15963
  *
15964
15964
  * @summary get form with widget
@@ -15971,11 +15971,11 @@ export declare class WidgetsFormsSubmissionsApi extends BaseAPI {
15971
15971
  /**
15972
15972
  *
15973
15973
  * @summary submit form
15974
+ * @param {SubmitWidgetForm} body
15974
15975
  * @param {string} formId
15975
- * @param {SubmitWidgetForm} [body]
15976
15976
  * @param {*} [options] Override http request option.
15977
15977
  * @throws {RequiredError}
15978
15978
  * @memberof WidgetsFormsSubmissionsApi
15979
15979
  */
15980
- submitWidgetForm(formId: string, body?: SubmitWidgetForm, options?: any): Promise<WidgetFormSubmission>;
15980
+ submitWidgetForm(body: SubmitWidgetForm, formId: string, options?: any): Promise<WidgetFormSubmission>;
15981
15981
  }
package/dist/api.js CHANGED
@@ -7076,12 +7076,16 @@ exports.MessageWidgetsApiFetchParamCreator = function (configuration) {
7076
7076
  /**
7077
7077
  *
7078
7078
  * @summary update message widget config by widget id
7079
+ * @param {MessageWidgetForm} body
7079
7080
  * @param {string} value
7080
- * @param {MessageWidgetForm} [body]
7081
7081
  * @param {*} [options] Override http request option.
7082
7082
  * @throws {RequiredError}
7083
7083
  */
7084
- updateMessageWidgetConfig(value, body, options = {}) {
7084
+ updateMessageWidgetConfig(body, value, options = {}) {
7085
+ // verify required parameter 'body' is not null or undefined
7086
+ if (body === null || body === undefined) {
7087
+ throw new RequiredError('body', 'Required parameter body was null or undefined when calling updateMessageWidgetConfig.');
7088
+ }
7085
7089
  // verify required parameter 'value' is not null or undefined
7086
7090
  if (value === null || value === undefined) {
7087
7091
  throw new RequiredError('value', 'Required parameter value was null or undefined when calling updateMessageWidgetConfig.');
@@ -7204,13 +7208,13 @@ exports.MessageWidgetsApiFp = function (configuration) {
7204
7208
  /**
7205
7209
  *
7206
7210
  * @summary update message widget config by widget id
7211
+ * @param {MessageWidgetForm} body
7207
7212
  * @param {string} value
7208
- * @param {MessageWidgetForm} [body]
7209
7213
  * @param {*} [options] Override http request option.
7210
7214
  * @throws {RequiredError}
7211
7215
  */
7212
- updateMessageWidgetConfig(value, body, options) {
7213
- const localVarFetchArgs = exports.MessageWidgetsApiFetchParamCreator(configuration).updateMessageWidgetConfig(value, body, options);
7216
+ updateMessageWidgetConfig(body, value, options) {
7217
+ const localVarFetchArgs = exports.MessageWidgetsApiFetchParamCreator(configuration).updateMessageWidgetConfig(body, value, options);
7214
7218
  return (fetch = isomorphicFetch, basePath = BASE_PATH) => {
7215
7219
  return fetch(basePath + localVarFetchArgs.url, localVarFetchArgs.options).then((response) => {
7216
7220
  if (response.status >= 200 && response.status < 300) {
@@ -7275,13 +7279,13 @@ exports.MessageWidgetsApiFactory = function (configuration, fetch, basePath) {
7275
7279
  /**
7276
7280
  *
7277
7281
  * @summary update message widget config by widget id
7282
+ * @param {MessageWidgetForm} body
7278
7283
  * @param {string} value
7279
- * @param {MessageWidgetForm} [body]
7280
7284
  * @param {*} [options] Override http request option.
7281
7285
  * @throws {RequiredError}
7282
7286
  */
7283
- updateMessageWidgetConfig(value, body, options) {
7284
- return exports.MessageWidgetsApiFp(configuration).updateMessageWidgetConfig(value, body, options)(fetch, basePath);
7287
+ updateMessageWidgetConfig(body, value, options) {
7288
+ return exports.MessageWidgetsApiFp(configuration).updateMessageWidgetConfig(body, value, options)(fetch, basePath);
7285
7289
  },
7286
7290
  };
7287
7291
  };
@@ -7341,14 +7345,14 @@ class MessageWidgetsApi extends BaseAPI {
7341
7345
  /**
7342
7346
  *
7343
7347
  * @summary update message widget config by widget id
7348
+ * @param {MessageWidgetForm} body
7344
7349
  * @param {string} value
7345
- * @param {MessageWidgetForm} [body]
7346
7350
  * @param {*} [options] Override http request option.
7347
7351
  * @throws {RequiredError}
7348
7352
  * @memberof MessageWidgetsApi
7349
7353
  */
7350
- updateMessageWidgetConfig(value, body, options) {
7351
- return exports.MessageWidgetsApiFp(this.configuration).updateMessageWidgetConfig(value, body, options)(this.fetch, this.basePath);
7354
+ updateMessageWidgetConfig(body, value, options) {
7355
+ return exports.MessageWidgetsApiFp(this.configuration).updateMessageWidgetConfig(body, value, options)(this.fetch, this.basePath);
7352
7356
  }
7353
7357
  }
7354
7358
  exports.MessageWidgetsApi = MessageWidgetsApi;
@@ -12163,12 +12167,16 @@ exports.RolesApiFetchParamCreator = function (configuration) {
12163
12167
  /**
12164
12168
  *
12165
12169
  * @summary add permissions to role
12170
+ * @param {PermissionForm} body
12166
12171
  * @param {string} roleId
12167
- * @param {PermissionForm} [body]
12168
12172
  * @param {*} [options] Override http request option.
12169
12173
  * @throws {RequiredError}
12170
12174
  */
12171
- addPermissionsToRole(roleId, body, options = {}) {
12175
+ addPermissionsToRole(body, roleId, options = {}) {
12176
+ // verify required parameter 'body' is not null or undefined
12177
+ if (body === null || body === undefined) {
12178
+ throw new RequiredError('body', 'Required parameter body was null or undefined when calling addPermissionsToRole.');
12179
+ }
12172
12180
  // verify required parameter 'roleId' is not null or undefined
12173
12181
  if (roleId === null || roleId === undefined) {
12174
12182
  throw new RequiredError('roleId', 'Required parameter roleId was null or undefined when calling addPermissionsToRole.');
@@ -12201,11 +12209,15 @@ exports.RolesApiFetchParamCreator = function (configuration) {
12201
12209
  /**
12202
12210
  *
12203
12211
  * @summary create role
12204
- * @param {CreateRoleForm} [body]
12212
+ * @param {CreateRoleForm} body
12205
12213
  * @param {*} [options] Override http request option.
12206
12214
  * @throws {RequiredError}
12207
12215
  */
12208
12216
  createRole(body, options = {}) {
12217
+ // verify required parameter 'body' is not null or undefined
12218
+ if (body === null || body === undefined) {
12219
+ throw new RequiredError('body', 'Required parameter body was null or undefined when calling createRole.');
12220
+ }
12209
12221
  const localVarPath = `/roles`;
12210
12222
  const localVarUrlObj = url.parse(localVarPath, true);
12211
12223
  const localVarRequestOptions = Object.assign({ method: 'POST' }, options);
@@ -12233,12 +12245,16 @@ exports.RolesApiFetchParamCreator = function (configuration) {
12233
12245
  /**
12234
12246
  *
12235
12247
  * @summary delete permissions from role
12248
+ * @param {PermissionForm} body
12236
12249
  * @param {string} roleId
12237
- * @param {PermissionForm} [body]
12238
12250
  * @param {*} [options] Override http request option.
12239
12251
  * @throws {RequiredError}
12240
12252
  */
12241
- deletePermissionsFromRole(roleId, body, options = {}) {
12253
+ deletePermissionsFromRole(body, roleId, options = {}) {
12254
+ // verify required parameter 'body' is not null or undefined
12255
+ if (body === null || body === undefined) {
12256
+ throw new RequiredError('body', 'Required parameter body was null or undefined when calling deletePermissionsFromRole.');
12257
+ }
12242
12258
  // verify required parameter 'roleId' is not null or undefined
12243
12259
  if (roleId === null || roleId === undefined) {
12244
12260
  throw new RequiredError('roleId', 'Required parameter roleId was null or undefined when calling deletePermissionsFromRole.');
@@ -12367,12 +12383,16 @@ exports.RolesApiFetchParamCreator = function (configuration) {
12367
12383
  /**
12368
12384
  *
12369
12385
  * @summary update role
12386
+ * @param {UpdateRoleForm} body
12370
12387
  * @param {string} roleId
12371
- * @param {UpdateRoleForm} [body]
12372
12388
  * @param {*} [options] Override http request option.
12373
12389
  * @throws {RequiredError}
12374
12390
  */
12375
- updateRole(roleId, body, options = {}) {
12391
+ updateRole(body, roleId, options = {}) {
12392
+ // verify required parameter 'body' is not null or undefined
12393
+ if (body === null || body === undefined) {
12394
+ throw new RequiredError('body', 'Required parameter body was null or undefined when calling updateRole.');
12395
+ }
12376
12396
  // verify required parameter 'roleId' is not null or undefined
12377
12397
  if (roleId === null || roleId === undefined) {
12378
12398
  throw new RequiredError('roleId', 'Required parameter roleId was null or undefined when calling updateRole.');
@@ -12413,13 +12433,13 @@ exports.RolesApiFp = function (configuration) {
12413
12433
  /**
12414
12434
  *
12415
12435
  * @summary add permissions to role
12436
+ * @param {PermissionForm} body
12416
12437
  * @param {string} roleId
12417
- * @param {PermissionForm} [body]
12418
12438
  * @param {*} [options] Override http request option.
12419
12439
  * @throws {RequiredError}
12420
12440
  */
12421
- addPermissionsToRole(roleId, body, options) {
12422
- const localVarFetchArgs = exports.RolesApiFetchParamCreator(configuration).addPermissionsToRole(roleId, body, options);
12441
+ addPermissionsToRole(body, roleId, options) {
12442
+ const localVarFetchArgs = exports.RolesApiFetchParamCreator(configuration).addPermissionsToRole(body, roleId, options);
12423
12443
  return (fetch = isomorphicFetch, basePath = BASE_PATH) => {
12424
12444
  return fetch(basePath + localVarFetchArgs.url, localVarFetchArgs.options).then((response) => {
12425
12445
  if (response.status >= 200 && response.status < 300) {
@@ -12434,7 +12454,7 @@ exports.RolesApiFp = function (configuration) {
12434
12454
  /**
12435
12455
  *
12436
12456
  * @summary create role
12437
- * @param {CreateRoleForm} [body]
12457
+ * @param {CreateRoleForm} body
12438
12458
  * @param {*} [options] Override http request option.
12439
12459
  * @throws {RequiredError}
12440
12460
  */
@@ -12454,13 +12474,13 @@ exports.RolesApiFp = function (configuration) {
12454
12474
  /**
12455
12475
  *
12456
12476
  * @summary delete permissions from role
12477
+ * @param {PermissionForm} body
12457
12478
  * @param {string} roleId
12458
- * @param {PermissionForm} [body]
12459
12479
  * @param {*} [options] Override http request option.
12460
12480
  * @throws {RequiredError}
12461
12481
  */
12462
- deletePermissionsFromRole(roleId, body, options) {
12463
- const localVarFetchArgs = exports.RolesApiFetchParamCreator(configuration).deletePermissionsFromRole(roleId, body, options);
12482
+ deletePermissionsFromRole(body, roleId, options) {
12483
+ const localVarFetchArgs = exports.RolesApiFetchParamCreator(configuration).deletePermissionsFromRole(body, roleId, options);
12464
12484
  return (fetch = isomorphicFetch, basePath = BASE_PATH) => {
12465
12485
  return fetch(basePath + localVarFetchArgs.url, localVarFetchArgs.options).then((response) => {
12466
12486
  if (response.status >= 200 && response.status < 300) {
@@ -12534,13 +12554,13 @@ exports.RolesApiFp = function (configuration) {
12534
12554
  /**
12535
12555
  *
12536
12556
  * @summary update role
12557
+ * @param {UpdateRoleForm} body
12537
12558
  * @param {string} roleId
12538
- * @param {UpdateRoleForm} [body]
12539
12559
  * @param {*} [options] Override http request option.
12540
12560
  * @throws {RequiredError}
12541
12561
  */
12542
- updateRole(roleId, body, options) {
12543
- const localVarFetchArgs = exports.RolesApiFetchParamCreator(configuration).updateRole(roleId, body, options);
12562
+ updateRole(body, roleId, options) {
12563
+ const localVarFetchArgs = exports.RolesApiFetchParamCreator(configuration).updateRole(body, roleId, options);
12544
12564
  return (fetch = isomorphicFetch, basePath = BASE_PATH) => {
12545
12565
  return fetch(basePath + localVarFetchArgs.url, localVarFetchArgs.options).then((response) => {
12546
12566
  if (response.status >= 200 && response.status < 300) {
@@ -12563,18 +12583,18 @@ exports.RolesApiFactory = function (configuration, fetch, basePath) {
12563
12583
  /**
12564
12584
  *
12565
12585
  * @summary add permissions to role
12586
+ * @param {PermissionForm} body
12566
12587
  * @param {string} roleId
12567
- * @param {PermissionForm} [body]
12568
12588
  * @param {*} [options] Override http request option.
12569
12589
  * @throws {RequiredError}
12570
12590
  */
12571
- addPermissionsToRole(roleId, body, options) {
12572
- return exports.RolesApiFp(configuration).addPermissionsToRole(roleId, body, options)(fetch, basePath);
12591
+ addPermissionsToRole(body, roleId, options) {
12592
+ return exports.RolesApiFp(configuration).addPermissionsToRole(body, roleId, options)(fetch, basePath);
12573
12593
  },
12574
12594
  /**
12575
12595
  *
12576
12596
  * @summary create role
12577
- * @param {CreateRoleForm} [body]
12597
+ * @param {CreateRoleForm} body
12578
12598
  * @param {*} [options] Override http request option.
12579
12599
  * @throws {RequiredError}
12580
12600
  */
@@ -12584,13 +12604,13 @@ exports.RolesApiFactory = function (configuration, fetch, basePath) {
12584
12604
  /**
12585
12605
  *
12586
12606
  * @summary delete permissions from role
12607
+ * @param {PermissionForm} body
12587
12608
  * @param {string} roleId
12588
- * @param {PermissionForm} [body]
12589
12609
  * @param {*} [options] Override http request option.
12590
12610
  * @throws {RequiredError}
12591
12611
  */
12592
- deletePermissionsFromRole(roleId, body, options) {
12593
- return exports.RolesApiFp(configuration).deletePermissionsFromRole(roleId, body, options)(fetch, basePath);
12612
+ deletePermissionsFromRole(body, roleId, options) {
12613
+ return exports.RolesApiFp(configuration).deletePermissionsFromRole(body, roleId, options)(fetch, basePath);
12594
12614
  },
12595
12615
  /**
12596
12616
  *
@@ -12624,13 +12644,13 @@ exports.RolesApiFactory = function (configuration, fetch, basePath) {
12624
12644
  /**
12625
12645
  *
12626
12646
  * @summary update role
12647
+ * @param {UpdateRoleForm} body
12627
12648
  * @param {string} roleId
12628
- * @param {UpdateRoleForm} [body]
12629
12649
  * @param {*} [options] Override http request option.
12630
12650
  * @throws {RequiredError}
12631
12651
  */
12632
- updateRole(roleId, body, options) {
12633
- return exports.RolesApiFp(configuration).updateRole(roleId, body, options)(fetch, basePath);
12652
+ updateRole(body, roleId, options) {
12653
+ return exports.RolesApiFp(configuration).updateRole(body, roleId, options)(fetch, basePath);
12634
12654
  },
12635
12655
  };
12636
12656
  };
@@ -12644,19 +12664,19 @@ class RolesApi extends BaseAPI {
12644
12664
  /**
12645
12665
  *
12646
12666
  * @summary add permissions to role
12667
+ * @param {PermissionForm} body
12647
12668
  * @param {string} roleId
12648
- * @param {PermissionForm} [body]
12649
12669
  * @param {*} [options] Override http request option.
12650
12670
  * @throws {RequiredError}
12651
12671
  * @memberof RolesApi
12652
12672
  */
12653
- addPermissionsToRole(roleId, body, options) {
12654
- return exports.RolesApiFp(this.configuration).addPermissionsToRole(roleId, body, options)(this.fetch, this.basePath);
12673
+ addPermissionsToRole(body, roleId, options) {
12674
+ return exports.RolesApiFp(this.configuration).addPermissionsToRole(body, roleId, options)(this.fetch, this.basePath);
12655
12675
  }
12656
12676
  /**
12657
12677
  *
12658
12678
  * @summary create role
12659
- * @param {CreateRoleForm} [body]
12679
+ * @param {CreateRoleForm} body
12660
12680
  * @param {*} [options] Override http request option.
12661
12681
  * @throws {RequiredError}
12662
12682
  * @memberof RolesApi
@@ -12667,14 +12687,14 @@ class RolesApi extends BaseAPI {
12667
12687
  /**
12668
12688
  *
12669
12689
  * @summary delete permissions from role
12690
+ * @param {PermissionForm} body
12670
12691
  * @param {string} roleId
12671
- * @param {PermissionForm} [body]
12672
12692
  * @param {*} [options] Override http request option.
12673
12693
  * @throws {RequiredError}
12674
12694
  * @memberof RolesApi
12675
12695
  */
12676
- deletePermissionsFromRole(roleId, body, options) {
12677
- return exports.RolesApiFp(this.configuration).deletePermissionsFromRole(roleId, body, options)(this.fetch, this.basePath);
12696
+ deletePermissionsFromRole(body, roleId, options) {
12697
+ return exports.RolesApiFp(this.configuration).deletePermissionsFromRole(body, roleId, options)(this.fetch, this.basePath);
12678
12698
  }
12679
12699
  /**
12680
12700
  *
@@ -12711,14 +12731,14 @@ class RolesApi extends BaseAPI {
12711
12731
  /**
12712
12732
  *
12713
12733
  * @summary update role
12734
+ * @param {UpdateRoleForm} body
12714
12735
  * @param {string} roleId
12715
- * @param {UpdateRoleForm} [body]
12716
12736
  * @param {*} [options] Override http request option.
12717
12737
  * @throws {RequiredError}
12718
12738
  * @memberof RolesApi
12719
12739
  */
12720
- updateRole(roleId, body, options) {
12721
- return exports.RolesApiFp(this.configuration).updateRole(roleId, body, options)(this.fetch, this.basePath);
12740
+ updateRole(body, roleId, options) {
12741
+ return exports.RolesApiFp(this.configuration).updateRole(body, roleId, options)(this.fetch, this.basePath);
12722
12742
  }
12723
12743
  }
12724
12744
  exports.RolesApi = RolesApi;
@@ -13946,11 +13966,15 @@ exports.SessionApiFetchParamCreator = function (configuration) {
13946
13966
  /**
13947
13967
  *
13948
13968
  * @summary Login user. Create session.
13949
- * @param {LoginCredentialsOrTokenForm} [body] Valid parameters are either token or credentials (email and password). Unless provided in mentioned form, Bad Request will be returned
13969
+ * @param {LoginCredentialsOrTokenForm} body Valid parameters are either token or credentials (email and password). Unless provided in mentioned form, Bad Request will be returned
13950
13970
  * @param {*} [options] Override http request option.
13951
13971
  * @throws {RequiredError}
13952
13972
  */
13953
13973
  login(body, options = {}) {
13974
+ // verify required parameter 'body' is not null or undefined
13975
+ if (body === null || body === undefined) {
13976
+ throw new RequiredError('body', 'Required parameter body was null or undefined when calling login.');
13977
+ }
13954
13978
  const localVarPath = `/session`;
13955
13979
  const localVarUrlObj = url.parse(localVarPath, true);
13956
13980
  const localVarRequestOptions = Object.assign({ method: 'POST' }, options);
@@ -14117,7 +14141,7 @@ exports.SessionApiFp = function (configuration) {
14117
14141
  /**
14118
14142
  *
14119
14143
  * @summary Login user. Create session.
14120
- * @param {LoginCredentialsOrTokenForm} [body] Valid parameters are either token or credentials (email and password). Unless provided in mentioned form, Bad Request will be returned
14144
+ * @param {LoginCredentialsOrTokenForm} body Valid parameters are either token or credentials (email and password). Unless provided in mentioned form, Bad Request will be returned
14121
14145
  * @param {*} [options] Override http request option.
14122
14146
  * @throws {RequiredError}
14123
14147
  */
@@ -14233,7 +14257,7 @@ exports.SessionApiFactory = function (configuration, fetch, basePath) {
14233
14257
  /**
14234
14258
  *
14235
14259
  * @summary Login user. Create session.
14236
- * @param {LoginCredentialsOrTokenForm} [body] Valid parameters are either token or credentials (email and password). Unless provided in mentioned form, Bad Request will be returned
14260
+ * @param {LoginCredentialsOrTokenForm} body Valid parameters are either token or credentials (email and password). Unless provided in mentioned form, Bad Request will be returned
14237
14261
  * @param {*} [options] Override http request option.
14238
14262
  * @throws {RequiredError}
14239
14263
  */
@@ -14313,7 +14337,7 @@ class SessionApi extends BaseAPI {
14313
14337
  /**
14314
14338
  *
14315
14339
  * @summary Login user. Create session.
14316
- * @param {LoginCredentialsOrTokenForm} [body] Valid parameters are either token or credentials (email and password). Unless provided in mentioned form, Bad Request will be returned
14340
+ * @param {LoginCredentialsOrTokenForm} body Valid parameters are either token or credentials (email and password). Unless provided in mentioned form, Bad Request will be returned
14317
14341
  * @param {*} [options] Override http request option.
14318
14342
  * @throws {RequiredError}
14319
14343
  * @memberof SessionApi
@@ -20338,12 +20362,16 @@ exports.WidgetsFormsSubmissionsApiFetchParamCreator = function (configuration) {
20338
20362
  /**
20339
20363
  *
20340
20364
  * @summary create form for room
20365
+ * @param {AddWidgetForm} body
20341
20366
  * @param {string} id
20342
- * @param {AddWidgetForm} [body]
20343
20367
  * @param {*} [options] Override http request option.
20344
20368
  * @throws {RequiredError}
20345
20369
  */
20346
- createWidgetFormForRoomId(id, body, options = {}) {
20370
+ createWidgetFormForRoomId(body, id, options = {}) {
20371
+ // verify required parameter 'body' is not null or undefined
20372
+ if (body === null || body === undefined) {
20373
+ throw new RequiredError('body', 'Required parameter body was null or undefined when calling createWidgetFormForRoomId.');
20374
+ }
20347
20375
  // verify required parameter 'id' is not null or undefined
20348
20376
  if (id === null || id === undefined) {
20349
20377
  throw new RequiredError('id', 'Required parameter id was null or undefined when calling createWidgetFormForRoomId.');
@@ -20410,12 +20438,16 @@ exports.WidgetsFormsSubmissionsApiFetchParamCreator = function (configuration) {
20410
20438
  /**
20411
20439
  *
20412
20440
  * @summary submit form
20441
+ * @param {SubmitWidgetForm} body
20413
20442
  * @param {string} formId
20414
- * @param {SubmitWidgetForm} [body]
20415
20443
  * @param {*} [options] Override http request option.
20416
20444
  * @throws {RequiredError}
20417
20445
  */
20418
- submitWidgetForm(formId, body, options = {}) {
20446
+ submitWidgetForm(body, formId, options = {}) {
20447
+ // verify required parameter 'body' is not null or undefined
20448
+ if (body === null || body === undefined) {
20449
+ throw new RequiredError('body', 'Required parameter body was null or undefined when calling submitWidgetForm.');
20450
+ }
20419
20451
  // verify required parameter 'formId' is not null or undefined
20420
20452
  if (formId === null || formId === undefined) {
20421
20453
  throw new RequiredError('formId', 'Required parameter formId was null or undefined when calling submitWidgetForm.');
@@ -20456,13 +20488,13 @@ exports.WidgetsFormsSubmissionsApiFp = function (configuration) {
20456
20488
  /**
20457
20489
  *
20458
20490
  * @summary create form for room
20491
+ * @param {AddWidgetForm} body
20459
20492
  * @param {string} id
20460
- * @param {AddWidgetForm} [body]
20461
20493
  * @param {*} [options] Override http request option.
20462
20494
  * @throws {RequiredError}
20463
20495
  */
20464
- createWidgetFormForRoomId(id, body, options) {
20465
- const localVarFetchArgs = exports.WidgetsFormsSubmissionsApiFetchParamCreator(configuration).createWidgetFormForRoomId(id, body, options);
20496
+ createWidgetFormForRoomId(body, id, options) {
20497
+ const localVarFetchArgs = exports.WidgetsFormsSubmissionsApiFetchParamCreator(configuration).createWidgetFormForRoomId(body, id, options);
20466
20498
  return (fetch = isomorphicFetch, basePath = BASE_PATH) => {
20467
20499
  return fetch(basePath + localVarFetchArgs.url, localVarFetchArgs.options).then((response) => {
20468
20500
  if (response.status >= 200 && response.status < 300) {
@@ -20497,13 +20529,13 @@ exports.WidgetsFormsSubmissionsApiFp = function (configuration) {
20497
20529
  /**
20498
20530
  *
20499
20531
  * @summary submit form
20532
+ * @param {SubmitWidgetForm} body
20500
20533
  * @param {string} formId
20501
- * @param {SubmitWidgetForm} [body]
20502
20534
  * @param {*} [options] Override http request option.
20503
20535
  * @throws {RequiredError}
20504
20536
  */
20505
- submitWidgetForm(formId, body, options) {
20506
- const localVarFetchArgs = exports.WidgetsFormsSubmissionsApiFetchParamCreator(configuration).submitWidgetForm(formId, body, options);
20537
+ submitWidgetForm(body, formId, options) {
20538
+ const localVarFetchArgs = exports.WidgetsFormsSubmissionsApiFetchParamCreator(configuration).submitWidgetForm(body, formId, options);
20507
20539
  return (fetch = isomorphicFetch, basePath = BASE_PATH) => {
20508
20540
  return fetch(basePath + localVarFetchArgs.url, localVarFetchArgs.options).then((response) => {
20509
20541
  if (response.status >= 200 && response.status < 300) {
@@ -20526,13 +20558,13 @@ exports.WidgetsFormsSubmissionsApiFactory = function (configuration, fetch, base
20526
20558
  /**
20527
20559
  *
20528
20560
  * @summary create form for room
20561
+ * @param {AddWidgetForm} body
20529
20562
  * @param {string} id
20530
- * @param {AddWidgetForm} [body]
20531
20563
  * @param {*} [options] Override http request option.
20532
20564
  * @throws {RequiredError}
20533
20565
  */
20534
- createWidgetFormForRoomId(id, body, options) {
20535
- return exports.WidgetsFormsSubmissionsApiFp(configuration).createWidgetFormForRoomId(id, body, options)(fetch, basePath);
20566
+ createWidgetFormForRoomId(body, id, options) {
20567
+ return exports.WidgetsFormsSubmissionsApiFp(configuration).createWidgetFormForRoomId(body, id, options)(fetch, basePath);
20536
20568
  },
20537
20569
  /**
20538
20570
  *
@@ -20547,13 +20579,13 @@ exports.WidgetsFormsSubmissionsApiFactory = function (configuration, fetch, base
20547
20579
  /**
20548
20580
  *
20549
20581
  * @summary submit form
20582
+ * @param {SubmitWidgetForm} body
20550
20583
  * @param {string} formId
20551
- * @param {SubmitWidgetForm} [body]
20552
20584
  * @param {*} [options] Override http request option.
20553
20585
  * @throws {RequiredError}
20554
20586
  */
20555
- submitWidgetForm(formId, body, options) {
20556
- return exports.WidgetsFormsSubmissionsApiFp(configuration).submitWidgetForm(formId, body, options)(fetch, basePath);
20587
+ submitWidgetForm(body, formId, options) {
20588
+ return exports.WidgetsFormsSubmissionsApiFp(configuration).submitWidgetForm(body, formId, options)(fetch, basePath);
20557
20589
  },
20558
20590
  };
20559
20591
  };
@@ -20567,14 +20599,14 @@ class WidgetsFormsSubmissionsApi extends BaseAPI {
20567
20599
  /**
20568
20600
  *
20569
20601
  * @summary create form for room
20602
+ * @param {AddWidgetForm} body
20570
20603
  * @param {string} id
20571
- * @param {AddWidgetForm} [body]
20572
20604
  * @param {*} [options] Override http request option.
20573
20605
  * @throws {RequiredError}
20574
20606
  * @memberof WidgetsFormsSubmissionsApi
20575
20607
  */
20576
- createWidgetFormForRoomId(id, body, options) {
20577
- return exports.WidgetsFormsSubmissionsApiFp(this.configuration).createWidgetFormForRoomId(id, body, options)(this.fetch, this.basePath);
20608
+ createWidgetFormForRoomId(body, id, options) {
20609
+ return exports.WidgetsFormsSubmissionsApiFp(this.configuration).createWidgetFormForRoomId(body, id, options)(this.fetch, this.basePath);
20578
20610
  }
20579
20611
  /**
20580
20612
  *
@@ -20590,14 +20622,14 @@ class WidgetsFormsSubmissionsApi extends BaseAPI {
20590
20622
  /**
20591
20623
  *
20592
20624
  * @summary submit form
20625
+ * @param {SubmitWidgetForm} body
20593
20626
  * @param {string} formId
20594
- * @param {SubmitWidgetForm} [body]
20595
20627
  * @param {*} [options] Override http request option.
20596
20628
  * @throws {RequiredError}
20597
20629
  * @memberof WidgetsFormsSubmissionsApi
20598
20630
  */
20599
- submitWidgetForm(formId, body, options) {
20600
- return exports.WidgetsFormsSubmissionsApiFp(this.configuration).submitWidgetForm(formId, body, options)(this.fetch, this.basePath);
20631
+ submitWidgetForm(body, formId, options) {
20632
+ return exports.WidgetsFormsSubmissionsApiFp(this.configuration).submitWidgetForm(body, formId, options)(this.fetch, this.basePath);
20601
20633
  }
20602
20634
  }
20603
20635
  exports.WidgetsFormsSubmissionsApi = WidgetsFormsSubmissionsApi;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@closerplatform/spinner-openapi",
3
- "version": "0.12.1",
3
+ "version": "0.12.2",
4
4
  "description": "swagger client for @closerplatform/spinner-openapi",
5
5
  "author": "Swagger Codegen Contributors",
6
6
  "keywords": [