@connectedxm/admin-sdk 10.0.0 → 10.2.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/dist/api.d.ts CHANGED
@@ -2,7 +2,7 @@
2
2
  * Connected Admin API
3
3
  * The Admin API allows you to manage your Connected community programmatically.
4
4
  *
5
- * The version of the OpenAPI document: 10.0.0
5
+ * The version of the OpenAPI document: 10.2.1
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -2321,6 +2321,8 @@ export interface BaseSurveyQuestion {
2321
2321
  'default': string | null;
2322
2322
  'searchListId': string | null;
2323
2323
  'searchList': BaseSearchList | null;
2324
+ 'matrixQuestionId': string | null;
2325
+ 'matrixSortOrder': number | null;
2324
2326
  'mutable': boolean;
2325
2327
  'min': string | null;
2326
2328
  'max': string | null;
@@ -9119,10 +9121,13 @@ export interface ImageDirectUpload {
9119
9121
  'uploadURL': string;
9120
9122
  }
9121
9123
  export interface ImageDirectUploadInputs {
9122
- 'type': ImageType;
9124
+ 'type': ImageDirectUploadInputsTypeEnum;
9123
9125
  'name'?: string | null;
9124
9126
  'description'?: string | null;
9125
9127
  }
9128
+ export declare enum ImageDirectUploadInputsTypeEnum {
9129
+ Admin = "admin"
9130
+ }
9126
9131
  export declare enum ImageModerationLevel {
9127
9132
  Safe = "safe",
9128
9133
  Warning = "warning"
@@ -11085,6 +11090,17 @@ export interface ReorderSurveyQuestionChoices200Response {
11085
11090
  export declare enum ReorderSurveyQuestionChoices200ResponseStatusEnum {
11086
11091
  Ok = "ok"
11087
11092
  }
11093
+ export interface ReorderSurveyQuestionMatrixRows200Response {
11094
+ 'status': ReorderSurveyQuestionMatrixRows200ResponseStatusEnum;
11095
+ 'message': string;
11096
+ 'data': Array<SurveyQuestion>;
11097
+ }
11098
+ export declare enum ReorderSurveyQuestionMatrixRows200ResponseStatusEnum {
11099
+ Ok = "ok"
11100
+ }
11101
+ export interface ReorderSurveyQuestionMatrixRowsRequest {
11102
+ 'rowIds': Array<string>;
11103
+ }
11088
11104
  export interface ReorderSurveySectionQuestions200Response {
11089
11105
  'status': ReorderSurveySectionQuestions200ResponseStatusEnum;
11090
11106
  'message': string;
@@ -12108,6 +12124,8 @@ export interface SurveyQuestion {
12108
12124
  'default': string | null;
12109
12125
  'searchListId': string | null;
12110
12126
  'searchList': BaseSearchList | null;
12127
+ 'matrixQuestionId': string | null;
12128
+ 'matrixSortOrder': number | null;
12111
12129
  'mutable': boolean;
12112
12130
  'min': string | null;
12113
12131
  'max': string | null;
@@ -12120,6 +12138,7 @@ export interface SurveyQuestion {
12120
12138
  'choices': Array<BaseSurveyQuestionChoice>;
12121
12139
  'sections': Array<BaseSurveySectionQuestion>;
12122
12140
  'subQuestionOf': Array<SurveyQuestionChoiceSubQuestion>;
12141
+ 'matrixRows'?: Array<BaseSurveyQuestion>;
12123
12142
  'dashboardVisibility': boolean;
12124
12143
  'createdAt': string;
12125
12144
  'updatedAt': string;
@@ -12182,6 +12201,7 @@ export interface SurveyQuestionCreateInputs {
12182
12201
  'sectionId'?: string;
12183
12202
  'questionId'?: string;
12184
12203
  'choiceId'?: string;
12204
+ 'matrixQuestionId'?: string;
12185
12205
  'required'?: boolean;
12186
12206
  'label'?: string | null;
12187
12207
  'placeholder'?: string | null;
@@ -12198,9 +12218,15 @@ export interface SurveyQuestionCreateInputs {
12198
12218
  'sortOrder'?: number | null;
12199
12219
  'featured'?: boolean;
12200
12220
  'choices'?: Array<string> | null;
12221
+ 'matrixRows'?: Array<string> | null;
12222
+ 'matrixRowsType'?: SurveyQuestionCreateInputsMatrixRowsTypeEnum;
12201
12223
  'searchListId'?: string | null;
12202
12224
  'masked'?: boolean;
12203
12225
  }
12226
+ export declare enum SurveyQuestionCreateInputsMatrixRowsTypeEnum {
12227
+ Radio = "radio",
12228
+ Checkbox = "checkbox"
12229
+ }
12204
12230
  export interface SurveyQuestionResponse {
12205
12231
  'id': string;
12206
12232
  'value': string;
@@ -12247,7 +12273,8 @@ export declare enum SurveyQuestionType {
12247
12273
  Checkbox = "checkbox",
12248
12274
  Search = "search",
12249
12275
  File = "file",
12250
- Location = "location"
12276
+ Location = "location",
12277
+ Matrix = "matrix"
12251
12278
  }
12252
12279
  export interface SurveyQuestionUpdateInputs {
12253
12280
  'name'?: string | null;
@@ -12269,6 +12296,11 @@ export interface SurveyQuestionUpdateInputs {
12269
12296
  'sortOrder'?: number | null;
12270
12297
  'featured'?: boolean;
12271
12298
  'searchListId'?: string | null;
12299
+ 'matrixRowsType'?: SurveyQuestionUpdateInputsMatrixRowsTypeEnum;
12300
+ }
12301
+ export declare enum SurveyQuestionUpdateInputsMatrixRowsTypeEnum {
12302
+ Radio = "radio",
12303
+ Checkbox = "checkbox"
12272
12304
  }
12273
12305
  export interface SurveySection {
12274
12306
  'id': string;
@@ -77527,6 +77559,19 @@ export declare const SurveysQuestionsApiAxiosParamCreator: (configuration?: Conf
77527
77559
  * @throws {RequiredError}
77528
77560
  */
77529
77561
  getSurveyQuestionChoices: (surveyId: string, questionId: string, page?: number, pageSize?: number, orderBy?: string, search?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
77562
+ /**
77563
+ * Returns a paginated list of the row questions that belong to a matrix survey question, ordered by their matrix sort order and supporting search by row name, label, or description; requires read access to the surveys module.
77564
+ * @summary List a matrix question\'s rows
77565
+ * @param {string} surveyId The survey identifier
77566
+ * @param {string} questionId The question identifier
77567
+ * @param {number} [page] Page number
77568
+ * @param {number} [pageSize] Number of items per page
77569
+ * @param {string} [orderBy] Field to order by
77570
+ * @param {string} [search] Search query
77571
+ * @param {*} [options] Override http request option.
77572
+ * @throws {RequiredError}
77573
+ */
77574
+ getSurveyQuestionMatrixRows: (surveyId: string, questionId: string, page?: number, pageSize?: number, orderBy?: string, search?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
77530
77575
  /**
77531
77576
  * Returns a paginated list of submitted responses for a survey question from completed submissions, supporting search by respondent name or email; file-upload responses include a temporary signed download URL, and read access to the surveys module is required.
77532
77577
  * @summary List responses to a survey question
@@ -77584,6 +77629,16 @@ export declare const SurveysQuestionsApiAxiosParamCreator: (configuration?: Conf
77584
77629
  * @throws {RequiredError}
77585
77630
  */
77586
77631
  reorderSurveyQuestionChoices: (surveyId: string, questionId: string, reorderBookingSpaceQuestionChoicesRequest: ReorderBookingSpaceQuestionChoicesRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
77632
+ /**
77633
+ * Sets the display order of the rows belonging to a matrix survey question to match the given full list of row IDs, rejecting the request if any row is missing or unknown, and requires update permission on surveys.
77634
+ * @summary Reorder a matrix question\'s rows
77635
+ * @param {string} surveyId The survey identifier
77636
+ * @param {string} questionId The question identifier
77637
+ * @param {ReorderSurveyQuestionMatrixRowsRequest} reorderSurveyQuestionMatrixRowsRequest
77638
+ * @param {*} [options] Override http request option.
77639
+ * @throws {RequiredError}
77640
+ */
77641
+ reorderSurveyQuestionMatrixRows: (surveyId: string, questionId: string, reorderSurveyQuestionMatrixRowsRequest: ReorderSurveyQuestionMatrixRowsRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
77587
77642
  /**
77588
77643
  * Updates a question\'s fields (such as name, description, type, or required flag) on the given survey, and reorders it among the survey\'s other questions when a new sortOrder is provided; requires the update surveys permission.
77589
77644
  * @summary Update a survey question
@@ -77737,6 +77792,19 @@ export declare const SurveysQuestionsApiFp: (configuration?: Configuration) => {
77737
77792
  * @throws {RequiredError}
77738
77793
  */
77739
77794
  getSurveyQuestionChoices(surveyId: string, questionId: string, page?: number, pageSize?: number, orderBy?: string, search?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetSurveyQuestionChoices200Response>>;
77795
+ /**
77796
+ * Returns a paginated list of the row questions that belong to a matrix survey question, ordered by their matrix sort order and supporting search by row name, label, or description; requires read access to the surveys module.
77797
+ * @summary List a matrix question\'s rows
77798
+ * @param {string} surveyId The survey identifier
77799
+ * @param {string} questionId The question identifier
77800
+ * @param {number} [page] Page number
77801
+ * @param {number} [pageSize] Number of items per page
77802
+ * @param {string} [orderBy] Field to order by
77803
+ * @param {string} [search] Search query
77804
+ * @param {*} [options] Override http request option.
77805
+ * @throws {RequiredError}
77806
+ */
77807
+ getSurveyQuestionMatrixRows(surveyId: string, questionId: string, page?: number, pageSize?: number, orderBy?: string, search?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetSurveyQuestions200Response>>;
77740
77808
  /**
77741
77809
  * Returns a paginated list of submitted responses for a survey question from completed submissions, supporting search by respondent name or email; file-upload responses include a temporary signed download URL, and read access to the surveys module is required.
77742
77810
  * @summary List responses to a survey question
@@ -77794,6 +77862,16 @@ export declare const SurveysQuestionsApiFp: (configuration?: Configuration) => {
77794
77862
  * @throws {RequiredError}
77795
77863
  */
77796
77864
  reorderSurveyQuestionChoices(surveyId: string, questionId: string, reorderBookingSpaceQuestionChoicesRequest: ReorderBookingSpaceQuestionChoicesRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ReorderSurveyQuestionChoices200Response>>;
77865
+ /**
77866
+ * Sets the display order of the rows belonging to a matrix survey question to match the given full list of row IDs, rejecting the request if any row is missing or unknown, and requires update permission on surveys.
77867
+ * @summary Reorder a matrix question\'s rows
77868
+ * @param {string} surveyId The survey identifier
77869
+ * @param {string} questionId The question identifier
77870
+ * @param {ReorderSurveyQuestionMatrixRowsRequest} reorderSurveyQuestionMatrixRowsRequest
77871
+ * @param {*} [options] Override http request option.
77872
+ * @throws {RequiredError}
77873
+ */
77874
+ reorderSurveyQuestionMatrixRows(surveyId: string, questionId: string, reorderSurveyQuestionMatrixRowsRequest: ReorderSurveyQuestionMatrixRowsRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ReorderSurveyQuestionMatrixRows200Response>>;
77797
77875
  /**
77798
77876
  * Updates a question\'s fields (such as name, description, type, or required flag) on the given survey, and reorders it among the survey\'s other questions when a new sortOrder is provided; requires the update surveys permission.
77799
77877
  * @summary Update a survey question
@@ -77920,6 +77998,14 @@ export declare const SurveysQuestionsApiFactory: (configuration?: Configuration,
77920
77998
  * @throws {RequiredError}
77921
77999
  */
77922
78000
  getSurveyQuestionChoices(requestParameters: SurveysQuestionsApiGetSurveyQuestionChoicesRequest, options?: RawAxiosRequestConfig): AxiosPromise<GetSurveyQuestionChoices200Response>;
78001
+ /**
78002
+ * Returns a paginated list of the row questions that belong to a matrix survey question, ordered by their matrix sort order and supporting search by row name, label, or description; requires read access to the surveys module.
78003
+ * @summary List a matrix question\'s rows
78004
+ * @param {SurveysQuestionsApiGetSurveyQuestionMatrixRowsRequest} requestParameters Request parameters.
78005
+ * @param {*} [options] Override http request option.
78006
+ * @throws {RequiredError}
78007
+ */
78008
+ getSurveyQuestionMatrixRows(requestParameters: SurveysQuestionsApiGetSurveyQuestionMatrixRowsRequest, options?: RawAxiosRequestConfig): AxiosPromise<GetSurveyQuestions200Response>;
77923
78009
  /**
77924
78010
  * Returns a paginated list of submitted responses for a survey question from completed submissions, supporting search by respondent name or email; file-upload responses include a temporary signed download URL, and read access to the surveys module is required.
77925
78011
  * @summary List responses to a survey question
@@ -77960,6 +78046,14 @@ export declare const SurveysQuestionsApiFactory: (configuration?: Configuration,
77960
78046
  * @throws {RequiredError}
77961
78047
  */
77962
78048
  reorderSurveyQuestionChoices(requestParameters: SurveysQuestionsApiReorderSurveyQuestionChoicesRequest, options?: RawAxiosRequestConfig): AxiosPromise<ReorderSurveyQuestionChoices200Response>;
78049
+ /**
78050
+ * Sets the display order of the rows belonging to a matrix survey question to match the given full list of row IDs, rejecting the request if any row is missing or unknown, and requires update permission on surveys.
78051
+ * @summary Reorder a matrix question\'s rows
78052
+ * @param {SurveysQuestionsApiReorderSurveyQuestionMatrixRowsRequest} requestParameters Request parameters.
78053
+ * @param {*} [options] Override http request option.
78054
+ * @throws {RequiredError}
78055
+ */
78056
+ reorderSurveyQuestionMatrixRows(requestParameters: SurveysQuestionsApiReorderSurveyQuestionMatrixRowsRequest, options?: RawAxiosRequestConfig): AxiosPromise<ReorderSurveyQuestionMatrixRows200Response>;
77963
78057
  /**
77964
78058
  * Updates a question\'s fields (such as name, description, type, or required flag) on the given survey, and reorders it among the survey\'s other questions when a new sortOrder is provided; requires the update surveys permission.
77965
78059
  * @summary Update a survey question
@@ -78183,6 +78277,35 @@ export interface SurveysQuestionsApiGetSurveyQuestionChoicesRequest {
78183
78277
  */
78184
78278
  readonly search?: string;
78185
78279
  }
78280
+ /**
78281
+ * Request parameters for getSurveyQuestionMatrixRows operation in SurveysQuestionsApi.
78282
+ */
78283
+ export interface SurveysQuestionsApiGetSurveyQuestionMatrixRowsRequest {
78284
+ /**
78285
+ * The survey identifier
78286
+ */
78287
+ readonly surveyId: string;
78288
+ /**
78289
+ * The question identifier
78290
+ */
78291
+ readonly questionId: string;
78292
+ /**
78293
+ * Page number
78294
+ */
78295
+ readonly page?: number;
78296
+ /**
78297
+ * Number of items per page
78298
+ */
78299
+ readonly pageSize?: number;
78300
+ /**
78301
+ * Field to order by
78302
+ */
78303
+ readonly orderBy?: string;
78304
+ /**
78305
+ * Search query
78306
+ */
78307
+ readonly search?: string;
78308
+ }
78186
78309
  /**
78187
78310
  * Request parameters for getSurveyQuestionResponses operation in SurveysQuestionsApi.
78188
78311
  */
@@ -78290,6 +78413,20 @@ export interface SurveysQuestionsApiReorderSurveyQuestionChoicesRequest {
78290
78413
  readonly questionId: string;
78291
78414
  readonly reorderBookingSpaceQuestionChoicesRequest: ReorderBookingSpaceQuestionChoicesRequest;
78292
78415
  }
78416
+ /**
78417
+ * Request parameters for reorderSurveyQuestionMatrixRows operation in SurveysQuestionsApi.
78418
+ */
78419
+ export interface SurveysQuestionsApiReorderSurveyQuestionMatrixRowsRequest {
78420
+ /**
78421
+ * The survey identifier
78422
+ */
78423
+ readonly surveyId: string;
78424
+ /**
78425
+ * The question identifier
78426
+ */
78427
+ readonly questionId: string;
78428
+ readonly reorderSurveyQuestionMatrixRowsRequest: ReorderSurveyQuestionMatrixRowsRequest;
78429
+ }
78293
78430
  /**
78294
78431
  * Request parameters for updateSurveyQuestion operation in SurveysQuestionsApi.
78295
78432
  */
@@ -78436,6 +78573,14 @@ export declare class SurveysQuestionsApi extends BaseAPI {
78436
78573
  * @throws {RequiredError}
78437
78574
  */
78438
78575
  getSurveyQuestionChoices(requestParameters: SurveysQuestionsApiGetSurveyQuestionChoicesRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<GetSurveyQuestionChoices200Response, any, {}>>;
78576
+ /**
78577
+ * Returns a paginated list of the row questions that belong to a matrix survey question, ordered by their matrix sort order and supporting search by row name, label, or description; requires read access to the surveys module.
78578
+ * @summary List a matrix question\'s rows
78579
+ * @param {SurveysQuestionsApiGetSurveyQuestionMatrixRowsRequest} requestParameters Request parameters.
78580
+ * @param {*} [options] Override http request option.
78581
+ * @throws {RequiredError}
78582
+ */
78583
+ getSurveyQuestionMatrixRows(requestParameters: SurveysQuestionsApiGetSurveyQuestionMatrixRowsRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<GetSurveyQuestions200Response, any, {}>>;
78439
78584
  /**
78440
78585
  * Returns a paginated list of submitted responses for a survey question from completed submissions, supporting search by respondent name or email; file-upload responses include a temporary signed download URL, and read access to the surveys module is required.
78441
78586
  * @summary List responses to a survey question
@@ -78476,6 +78621,14 @@ export declare class SurveysQuestionsApi extends BaseAPI {
78476
78621
  * @throws {RequiredError}
78477
78622
  */
78478
78623
  reorderSurveyQuestionChoices(requestParameters: SurveysQuestionsApiReorderSurveyQuestionChoicesRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ReorderSurveyQuestionChoices200Response, any, {}>>;
78624
+ /**
78625
+ * Sets the display order of the rows belonging to a matrix survey question to match the given full list of row IDs, rejecting the request if any row is missing or unknown, and requires update permission on surveys.
78626
+ * @summary Reorder a matrix question\'s rows
78627
+ * @param {SurveysQuestionsApiReorderSurveyQuestionMatrixRowsRequest} requestParameters Request parameters.
78628
+ * @param {*} [options] Override http request option.
78629
+ * @throws {RequiredError}
78630
+ */
78631
+ reorderSurveyQuestionMatrixRows(requestParameters: SurveysQuestionsApiReorderSurveyQuestionMatrixRowsRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ReorderSurveyQuestionMatrixRows200Response, any, {}>>;
78479
78632
  /**
78480
78633
  * Updates a question\'s fields (such as name, description, type, or required flag) on the given survey, and reorders it among the survey\'s other questions when a new sortOrder is provided; requires the update surveys permission.
78481
78634
  * @summary Update a survey question