@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/.openapi-generator/FILES +2 -0
- package/README.md +2 -2
- package/api.ts +277 -3
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +1 -1
- package/dist/api.d.ts +156 -3
- package/dist/api.js +215 -20
- package/dist/base.d.ts +1 -1
- package/dist/base.js +1 -1
- package/dist/common.d.ts +1 -1
- package/dist/common.js +1 -1
- package/dist/configuration.d.ts +1 -1
- package/dist/configuration.js +1 -1
- package/dist/esm/api.d.ts +156 -3
- package/dist/esm/api.js +196 -1
- package/dist/esm/base.d.ts +1 -1
- package/dist/esm/base.js +1 -1
- package/dist/esm/common.d.ts +1 -1
- package/dist/esm/common.js +1 -1
- package/dist/esm/configuration.d.ts +1 -1
- package/dist/esm/configuration.js +1 -1
- package/docs/BaseSurveyQuestion.md +4 -0
- package/docs/ImageDirectUploadInputs.md +1 -1
- package/docs/ReorderSurveyQuestionMatrixRows200Response.md +24 -0
- package/docs/ReorderSurveyQuestionMatrixRowsRequest.md +20 -0
- package/docs/SurveyQuestion.md +6 -0
- package/docs/SurveyQuestionCreateInputs.md +6 -0
- package/docs/SurveyQuestionType.md +2 -0
- package/docs/SurveyQuestionUpdateInputs.md +2 -0
- package/docs/SurveysQuestionsApi.md +126 -0
- package/package.json +1 -1
|
@@ -16,6 +16,8 @@ Name | Type | Description | Notes
|
|
|
16
16
|
**_default** | **string** | | [default to undefined]
|
|
17
17
|
**searchListId** | **string** | | [default to undefined]
|
|
18
18
|
**searchList** | [**BaseSearchList**](BaseSearchList.md) | | [default to undefined]
|
|
19
|
+
**matrixQuestionId** | **string** | | [default to undefined]
|
|
20
|
+
**matrixSortOrder** | **number** | | [default to undefined]
|
|
19
21
|
**mutable** | **boolean** | | [default to undefined]
|
|
20
22
|
**min** | **string** | | [default to undefined]
|
|
21
23
|
**max** | **string** | | [default to undefined]
|
|
@@ -44,6 +46,8 @@ const instance: BaseSurveyQuestion = {
|
|
|
44
46
|
_default,
|
|
45
47
|
searchListId,
|
|
46
48
|
searchList,
|
|
49
|
+
matrixQuestionId,
|
|
50
|
+
matrixSortOrder,
|
|
47
51
|
mutable,
|
|
48
52
|
min,
|
|
49
53
|
max,
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
Name | Type | Description | Notes
|
|
7
7
|
------------ | ------------- | ------------- | -------------
|
|
8
|
-
**type** |
|
|
8
|
+
**type** | **string** | | [default to undefined]
|
|
9
9
|
**name** | **string** | | [optional] [default to undefined]
|
|
10
10
|
**description** | **string** | | [optional] [default to undefined]
|
|
11
11
|
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# ReorderSurveyQuestionMatrixRows200Response
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**status** | **string** | | [default to undefined]
|
|
9
|
+
**message** | **string** | | [default to undefined]
|
|
10
|
+
**data** | [**Array<SurveyQuestion>**](SurveyQuestion.md) | | [default to undefined]
|
|
11
|
+
|
|
12
|
+
## Example
|
|
13
|
+
|
|
14
|
+
```typescript
|
|
15
|
+
import { ReorderSurveyQuestionMatrixRows200Response } from '@connectedxm/admin-sdk';
|
|
16
|
+
|
|
17
|
+
const instance: ReorderSurveyQuestionMatrixRows200Response = {
|
|
18
|
+
status,
|
|
19
|
+
message,
|
|
20
|
+
data,
|
|
21
|
+
};
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# ReorderSurveyQuestionMatrixRowsRequest
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**rowIds** | **Array<string>** | | [default to undefined]
|
|
9
|
+
|
|
10
|
+
## Example
|
|
11
|
+
|
|
12
|
+
```typescript
|
|
13
|
+
import { ReorderSurveyQuestionMatrixRowsRequest } from '@connectedxm/admin-sdk';
|
|
14
|
+
|
|
15
|
+
const instance: ReorderSurveyQuestionMatrixRowsRequest = {
|
|
16
|
+
rowIds,
|
|
17
|
+
};
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
package/docs/SurveyQuestion.md
CHANGED
|
@@ -16,6 +16,8 @@ Name | Type | Description | Notes
|
|
|
16
16
|
**_default** | **string** | | [default to undefined]
|
|
17
17
|
**searchListId** | **string** | | [default to undefined]
|
|
18
18
|
**searchList** | [**BaseSearchList**](BaseSearchList.md) | | [default to undefined]
|
|
19
|
+
**matrixQuestionId** | **string** | | [default to undefined]
|
|
20
|
+
**matrixSortOrder** | **number** | | [default to undefined]
|
|
19
21
|
**mutable** | **boolean** | | [default to undefined]
|
|
20
22
|
**min** | **string** | | [default to undefined]
|
|
21
23
|
**max** | **string** | | [default to undefined]
|
|
@@ -28,6 +30,7 @@ Name | Type | Description | Notes
|
|
|
28
30
|
**choices** | [**Array<BaseSurveyQuestionChoice>**](BaseSurveyQuestionChoice.md) | | [default to undefined]
|
|
29
31
|
**sections** | [**Array<BaseSurveySectionQuestion>**](BaseSurveySectionQuestion.md) | | [default to undefined]
|
|
30
32
|
**subQuestionOf** | [**Array<SurveyQuestionChoiceSubQuestion>**](SurveyQuestionChoiceSubQuestion.md) | | [default to undefined]
|
|
33
|
+
**matrixRows** | [**Array<BaseSurveyQuestion>**](BaseSurveyQuestion.md) | | [optional] [default to undefined]
|
|
31
34
|
**dashboardVisibility** | **boolean** | | [default to undefined]
|
|
32
35
|
**createdAt** | **string** | | [default to undefined]
|
|
33
36
|
**updatedAt** | **string** | | [default to undefined]
|
|
@@ -50,6 +53,8 @@ const instance: SurveyQuestion = {
|
|
|
50
53
|
_default,
|
|
51
54
|
searchListId,
|
|
52
55
|
searchList,
|
|
56
|
+
matrixQuestionId,
|
|
57
|
+
matrixSortOrder,
|
|
53
58
|
mutable,
|
|
54
59
|
min,
|
|
55
60
|
max,
|
|
@@ -62,6 +67,7 @@ const instance: SurveyQuestion = {
|
|
|
62
67
|
choices,
|
|
63
68
|
sections,
|
|
64
69
|
subQuestionOf,
|
|
70
|
+
matrixRows,
|
|
65
71
|
dashboardVisibility,
|
|
66
72
|
createdAt,
|
|
67
73
|
updatedAt,
|
|
@@ -10,6 +10,7 @@ Name | Type | Description | Notes
|
|
|
10
10
|
**sectionId** | **string** | | [optional] [default to undefined]
|
|
11
11
|
**questionId** | **string** | | [optional] [default to undefined]
|
|
12
12
|
**choiceId** | **string** | | [optional] [default to undefined]
|
|
13
|
+
**matrixQuestionId** | **string** | | [optional] [default to undefined]
|
|
13
14
|
**required** | **boolean** | | [optional] [default to undefined]
|
|
14
15
|
**label** | **string** | | [optional] [default to undefined]
|
|
15
16
|
**placeholder** | **string** | | [optional] [default to undefined]
|
|
@@ -26,6 +27,8 @@ Name | Type | Description | Notes
|
|
|
26
27
|
**sortOrder** | **number** | | [optional] [default to undefined]
|
|
27
28
|
**featured** | **boolean** | | [optional] [default to undefined]
|
|
28
29
|
**choices** | **Array<string>** | | [optional] [default to undefined]
|
|
30
|
+
**matrixRows** | **Array<string>** | | [optional] [default to undefined]
|
|
31
|
+
**matrixRowsType** | **string** | | [optional] [default to undefined]
|
|
29
32
|
**searchListId** | **string** | | [optional] [default to undefined]
|
|
30
33
|
**masked** | **boolean** | | [optional] [default to undefined]
|
|
31
34
|
|
|
@@ -40,6 +43,7 @@ const instance: SurveyQuestionCreateInputs = {
|
|
|
40
43
|
sectionId,
|
|
41
44
|
questionId,
|
|
42
45
|
choiceId,
|
|
46
|
+
matrixQuestionId,
|
|
43
47
|
required,
|
|
44
48
|
label,
|
|
45
49
|
placeholder,
|
|
@@ -56,6 +60,8 @@ const instance: SurveyQuestionCreateInputs = {
|
|
|
56
60
|
sortOrder,
|
|
57
61
|
featured,
|
|
58
62
|
choices,
|
|
63
|
+
matrixRows,
|
|
64
|
+
matrixRowsType,
|
|
59
65
|
searchListId,
|
|
60
66
|
masked,
|
|
61
67
|
};
|
|
@@ -24,6 +24,7 @@ Name | Type | Description | Notes
|
|
|
24
24
|
**sortOrder** | **number** | | [optional] [default to undefined]
|
|
25
25
|
**featured** | **boolean** | | [optional] [default to undefined]
|
|
26
26
|
**searchListId** | **string** | | [optional] [default to undefined]
|
|
27
|
+
**matrixRowsType** | **string** | | [optional] [default to undefined]
|
|
27
28
|
|
|
28
29
|
## Example
|
|
29
30
|
|
|
@@ -50,6 +51,7 @@ const instance: SurveyQuestionUpdateInputs = {
|
|
|
50
51
|
sortOrder,
|
|
51
52
|
featured,
|
|
52
53
|
searchListId,
|
|
54
|
+
matrixRowsType,
|
|
53
55
|
};
|
|
54
56
|
```
|
|
55
57
|
|
|
@@ -15,11 +15,13 @@ All URIs are relative to *https://admin-api.connected.dev*
|
|
|
15
15
|
|[**getSurveyQuestionChoice**](#getsurveyquestionchoice) | **GET** /surveys/{surveyId}/questions/{questionId}/choices/{choiceId} | Get a survey question choice|
|
|
16
16
|
|[**getSurveyQuestionChoiceSubQuestions**](#getsurveyquestionchoicesubquestions) | **GET** /surveys/{surveyId}/questions/{questionId}/choices/{choiceId}/subQuestions | List a choice\'s follow-up sub-questions|
|
|
17
17
|
|[**getSurveyQuestionChoices**](#getsurveyquestionchoices) | **GET** /surveys/{surveyId}/questions/{questionId}/choices | List a survey question\'s choices|
|
|
18
|
+
|[**getSurveyQuestionMatrixRows**](#getsurveyquestionmatrixrows) | **GET** /surveys/{surveyId}/questions/{questionId}/matrixRows | List a matrix question\'s rows|
|
|
18
19
|
|[**getSurveyQuestionResponses**](#getsurveyquestionresponses) | **GET** /surveys/{surveyId}/questions/{questionId}/responses | List responses to a survey question|
|
|
19
20
|
|[**getSurveyQuestions**](#getsurveyquestions) | **GET** /surveys/{surveyId}/questions | List a survey\'s questions|
|
|
20
21
|
|[**removeSurveyQuestionChoiceSubQuestion**](#removesurveyquestionchoicesubquestion) | **DELETE** /surveys/{surveyId}/questions/{questionId}/choices/{choiceId}/subQuestions/{subQuestionId} | Remove a follow-up sub-question from a choice|
|
|
21
22
|
|[**reorderSurveyQuestionChoiceSubQuestions**](#reordersurveyquestionchoicesubquestions) | **PUT** /surveys/{surveyId}/questions/{questionId}/choices/{choiceId}/subQuestions/reorder | Reorder a choice\'s follow-up sub-questions|
|
|
22
23
|
|[**reorderSurveyQuestionChoices**](#reordersurveyquestionchoices) | **PUT** /surveys/{surveyId}/questions/{questionId}/choices/reorder | Reorder a survey question\'s choices|
|
|
24
|
+
|[**reorderSurveyQuestionMatrixRows**](#reordersurveyquestionmatrixrows) | **PUT** /surveys/{surveyId}/questions/{questionId}/matrixRows/reorder | Reorder a matrix question\'s rows|
|
|
23
25
|
|[**updateSurveyQuestion**](#updatesurveyquestion) | **PUT** /surveys/{surveyId}/questions/{questionId} | Update a survey question|
|
|
24
26
|
|[**updateSurveyQuestionChoice**](#updatesurveyquestionchoice) | **PUT** /surveys/{surveyId}/questions/{questionId}/choices/{choiceId} | Update a survey question choice|
|
|
25
27
|
|[**updateSurveyQuestionChoiceSubQuestion**](#updatesurveyquestionchoicesubquestion) | **PUT** /surveys/{surveyId}/questions/{questionId}/choices/{choiceId}/subQuestions/{subQuestionId} | Reorder a choice\'s sub-question|
|
|
@@ -662,6 +664,72 @@ const { status, data } = await apiInstance.getSurveyQuestionChoices(
|
|
|
662
664
|
- **Accept**: application/json
|
|
663
665
|
|
|
664
666
|
|
|
667
|
+
### HTTP response details
|
|
668
|
+
| Status code | Description | Response headers |
|
|
669
|
+
|-------------|-------------|------------------|
|
|
670
|
+
|**200** | Successful response | - |
|
|
671
|
+
|
|
672
|
+
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
673
|
+
|
|
674
|
+
# **getSurveyQuestionMatrixRows**
|
|
675
|
+
> GetSurveyQuestions200Response getSurveyQuestionMatrixRows()
|
|
676
|
+
|
|
677
|
+
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.
|
|
678
|
+
|
|
679
|
+
### Example
|
|
680
|
+
|
|
681
|
+
```typescript
|
|
682
|
+
import {
|
|
683
|
+
SurveysQuestionsApi,
|
|
684
|
+
Configuration
|
|
685
|
+
} from '@connectedxm/admin-sdk';
|
|
686
|
+
|
|
687
|
+
const configuration = new Configuration();
|
|
688
|
+
const apiInstance = new SurveysQuestionsApi(configuration);
|
|
689
|
+
|
|
690
|
+
let surveyId: string; //The survey identifier (default to undefined)
|
|
691
|
+
let questionId: string; //The question identifier (default to undefined)
|
|
692
|
+
let page: number; //Page number (optional) (default to 1)
|
|
693
|
+
let pageSize: number; //Number of items per page (optional) (default to 25)
|
|
694
|
+
let orderBy: string; //Field to order by (optional) (default to undefined)
|
|
695
|
+
let search: string; //Search query (optional) (default to undefined)
|
|
696
|
+
|
|
697
|
+
const { status, data } = await apiInstance.getSurveyQuestionMatrixRows(
|
|
698
|
+
surveyId,
|
|
699
|
+
questionId,
|
|
700
|
+
page,
|
|
701
|
+
pageSize,
|
|
702
|
+
orderBy,
|
|
703
|
+
search
|
|
704
|
+
);
|
|
705
|
+
```
|
|
706
|
+
|
|
707
|
+
### Parameters
|
|
708
|
+
|
|
709
|
+
|Name | Type | Description | Notes|
|
|
710
|
+
|------------- | ------------- | ------------- | -------------|
|
|
711
|
+
| **surveyId** | [**string**] | The survey identifier | defaults to undefined|
|
|
712
|
+
| **questionId** | [**string**] | The question identifier | defaults to undefined|
|
|
713
|
+
| **page** | [**number**] | Page number | (optional) defaults to 1|
|
|
714
|
+
| **pageSize** | [**number**] | Number of items per page | (optional) defaults to 25|
|
|
715
|
+
| **orderBy** | [**string**] | Field to order by | (optional) defaults to undefined|
|
|
716
|
+
| **search** | [**string**] | Search query | (optional) defaults to undefined|
|
|
717
|
+
|
|
718
|
+
|
|
719
|
+
### Return type
|
|
720
|
+
|
|
721
|
+
**GetSurveyQuestions200Response**
|
|
722
|
+
|
|
723
|
+
### Authorization
|
|
724
|
+
|
|
725
|
+
[ApiKeyAuth](../README.md#ApiKeyAuth), [OrganizationId](../README.md#OrganizationId)
|
|
726
|
+
|
|
727
|
+
### HTTP request headers
|
|
728
|
+
|
|
729
|
+
- **Content-Type**: Not defined
|
|
730
|
+
- **Accept**: application/json
|
|
731
|
+
|
|
732
|
+
|
|
665
733
|
### HTTP response details
|
|
666
734
|
| Status code | Description | Response headers |
|
|
667
735
|
|-------------|-------------|------------------|
|
|
@@ -970,6 +1038,64 @@ const { status, data } = await apiInstance.reorderSurveyQuestionChoices(
|
|
|
970
1038
|
- **Accept**: application/json
|
|
971
1039
|
|
|
972
1040
|
|
|
1041
|
+
### HTTP response details
|
|
1042
|
+
| Status code | Description | Response headers |
|
|
1043
|
+
|-------------|-------------|------------------|
|
|
1044
|
+
|**200** | Successful response | - |
|
|
1045
|
+
|
|
1046
|
+
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
1047
|
+
|
|
1048
|
+
# **reorderSurveyQuestionMatrixRows**
|
|
1049
|
+
> ReorderSurveyQuestionMatrixRows200Response reorderSurveyQuestionMatrixRows(reorderSurveyQuestionMatrixRowsRequest)
|
|
1050
|
+
|
|
1051
|
+
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.
|
|
1052
|
+
|
|
1053
|
+
### Example
|
|
1054
|
+
|
|
1055
|
+
```typescript
|
|
1056
|
+
import {
|
|
1057
|
+
SurveysQuestionsApi,
|
|
1058
|
+
Configuration,
|
|
1059
|
+
ReorderSurveyQuestionMatrixRowsRequest
|
|
1060
|
+
} from '@connectedxm/admin-sdk';
|
|
1061
|
+
|
|
1062
|
+
const configuration = new Configuration();
|
|
1063
|
+
const apiInstance = new SurveysQuestionsApi(configuration);
|
|
1064
|
+
|
|
1065
|
+
let surveyId: string; //The survey identifier (default to undefined)
|
|
1066
|
+
let questionId: string; //The question identifier (default to undefined)
|
|
1067
|
+
let reorderSurveyQuestionMatrixRowsRequest: ReorderSurveyQuestionMatrixRowsRequest; //
|
|
1068
|
+
|
|
1069
|
+
const { status, data } = await apiInstance.reorderSurveyQuestionMatrixRows(
|
|
1070
|
+
surveyId,
|
|
1071
|
+
questionId,
|
|
1072
|
+
reorderSurveyQuestionMatrixRowsRequest
|
|
1073
|
+
);
|
|
1074
|
+
```
|
|
1075
|
+
|
|
1076
|
+
### Parameters
|
|
1077
|
+
|
|
1078
|
+
|Name | Type | Description | Notes|
|
|
1079
|
+
|------------- | ------------- | ------------- | -------------|
|
|
1080
|
+
| **reorderSurveyQuestionMatrixRowsRequest** | **ReorderSurveyQuestionMatrixRowsRequest**| | |
|
|
1081
|
+
| **surveyId** | [**string**] | The survey identifier | defaults to undefined|
|
|
1082
|
+
| **questionId** | [**string**] | The question identifier | defaults to undefined|
|
|
1083
|
+
|
|
1084
|
+
|
|
1085
|
+
### Return type
|
|
1086
|
+
|
|
1087
|
+
**ReorderSurveyQuestionMatrixRows200Response**
|
|
1088
|
+
|
|
1089
|
+
### Authorization
|
|
1090
|
+
|
|
1091
|
+
[ApiKeyAuth](../README.md#ApiKeyAuth), [OrganizationId](../README.md#OrganizationId)
|
|
1092
|
+
|
|
1093
|
+
### HTTP request headers
|
|
1094
|
+
|
|
1095
|
+
- **Content-Type**: application/json
|
|
1096
|
+
- **Accept**: application/json
|
|
1097
|
+
|
|
1098
|
+
|
|
973
1099
|
### HTTP response details
|
|
974
1100
|
| Status code | Description | Response headers |
|
|
975
1101
|
|-------------|-------------|------------------|
|