@b-jones-rfd/qualtrics-api-tasks 0.3.3 → 0.3.4
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/CHANGELOG.md +6 -0
- package/README.md +2 -2
- package/dist/index.d.mts +4 -4
- package/dist/index.d.ts +4 -4
- package/dist/index.js +4 -2
- package/dist/index.mjs +4 -2
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
package/README.md
CHANGED
|
@@ -342,10 +342,10 @@ Implements [List Distributions](https://api.qualtrics.com/234bb6b16cf6d-list-dis
|
|
|
342
342
|
| Property | Type | Description | Required | Default |
|
|
343
343
|
| ----------------------- | ------- | ------------------------------- | -------- | ------- |
|
|
344
344
|
| surveyId | string | Quatrics Survey ID | Y | |
|
|
345
|
-
| distributionRequestType | string | Distribution Request Type | Y | |
|
|
346
|
-
| mailingListId | string | Mailing List ID | Y | |
|
|
347
345
|
| sendStartDate | Date | Export start date and time | Y | |
|
|
348
346
|
| sendEndDate | Date | Export end date and time | Y | |
|
|
347
|
+
| mailingListId | string | Mailing List ID | N | |
|
|
348
|
+
| distributionRequestType | string | Distribution Request Type | N | |
|
|
349
349
|
| skipToken | string | Pagination offset | N | |
|
|
350
350
|
| useNewPaginationScheme | boolean | Use updated pagination | N | false |
|
|
351
351
|
| pageSize | number | Distribution elements to return | N | 100 |
|
package/dist/index.d.mts
CHANGED
|
@@ -119,10 +119,10 @@ type Connection = {
|
|
|
119
119
|
importContacts: Action<StartContactsImportOptions, ContactsImportSummaryResponse>;
|
|
120
120
|
listDistributions: Action<{
|
|
121
121
|
surveyId: string;
|
|
122
|
-
distributionRequestType: DistributionRequestType;
|
|
123
|
-
mailingListId: string;
|
|
124
122
|
sendStartDate: Date;
|
|
125
123
|
sendEndDate: Date;
|
|
124
|
+
distributionRequestType?: DistributionRequestType;
|
|
125
|
+
mailingListId?: string;
|
|
126
126
|
skipToken?: string;
|
|
127
127
|
useNewPaginationScheme?: boolean;
|
|
128
128
|
pageSize?: number;
|
|
@@ -432,10 +432,10 @@ declare const importContacts: ActionFactory<StartContactsImportOptions, Contacts
|
|
|
432
432
|
*/
|
|
433
433
|
declare const listDistributions: ActionFactory<{
|
|
434
434
|
surveyId: string;
|
|
435
|
-
distributionRequestType: DistributionRequestType;
|
|
436
|
-
mailingListId: string;
|
|
437
435
|
sendStartDate: Date;
|
|
438
436
|
sendEndDate: Date;
|
|
437
|
+
distributionRequestType?: DistributionRequestType;
|
|
438
|
+
mailingListId?: string;
|
|
439
439
|
skipToken?: string;
|
|
440
440
|
useNewPaginationScheme?: boolean;
|
|
441
441
|
pageSize?: number;
|
package/dist/index.d.ts
CHANGED
|
@@ -119,10 +119,10 @@ type Connection = {
|
|
|
119
119
|
importContacts: Action<StartContactsImportOptions, ContactsImportSummaryResponse>;
|
|
120
120
|
listDistributions: Action<{
|
|
121
121
|
surveyId: string;
|
|
122
|
-
distributionRequestType: DistributionRequestType;
|
|
123
|
-
mailingListId: string;
|
|
124
122
|
sendStartDate: Date;
|
|
125
123
|
sendEndDate: Date;
|
|
124
|
+
distributionRequestType?: DistributionRequestType;
|
|
125
|
+
mailingListId?: string;
|
|
126
126
|
skipToken?: string;
|
|
127
127
|
useNewPaginationScheme?: boolean;
|
|
128
128
|
pageSize?: number;
|
|
@@ -432,10 +432,10 @@ declare const importContacts: ActionFactory<StartContactsImportOptions, Contacts
|
|
|
432
432
|
*/
|
|
433
433
|
declare const listDistributions: ActionFactory<{
|
|
434
434
|
surveyId: string;
|
|
435
|
-
distributionRequestType: DistributionRequestType;
|
|
436
|
-
mailingListId: string;
|
|
437
435
|
sendStartDate: Date;
|
|
438
436
|
sendEndDate: Date;
|
|
437
|
+
distributionRequestType?: DistributionRequestType;
|
|
438
|
+
mailingListId?: string;
|
|
439
439
|
skipToken?: string;
|
|
440
440
|
useNewPaginationScheme?: boolean;
|
|
441
441
|
pageSize?: number;
|
package/dist/index.js
CHANGED
|
@@ -657,11 +657,13 @@ var listDistributions = (connectionOptions) => async ({
|
|
|
657
657
|
const headers = getAuthHeaders(connectionOptions.apiToken, bearerToken);
|
|
658
658
|
const qs = new URLSearchParams({
|
|
659
659
|
surveyId,
|
|
660
|
-
distributionRequestType,
|
|
661
|
-
mailingListId,
|
|
662
660
|
sendStartDate: sendStartDate.toISOString(),
|
|
663
661
|
sendEndDate: sendEndDate.toISOString()
|
|
664
662
|
});
|
|
663
|
+
if (mailingListId)
|
|
664
|
+
qs.append("mailingListId", mailingListId);
|
|
665
|
+
if (distributionRequestType)
|
|
666
|
+
qs.append("distributionRequestType", distributionRequestType);
|
|
665
667
|
if (skipToken)
|
|
666
668
|
qs.append("skipToken", skipToken);
|
|
667
669
|
if (useNewPaginationScheme)
|
package/dist/index.mjs
CHANGED
|
@@ -614,11 +614,13 @@ var listDistributions = (connectionOptions) => async ({
|
|
|
614
614
|
const headers = getAuthHeaders(connectionOptions.apiToken, bearerToken);
|
|
615
615
|
const qs = new URLSearchParams({
|
|
616
616
|
surveyId,
|
|
617
|
-
distributionRequestType,
|
|
618
|
-
mailingListId,
|
|
619
617
|
sendStartDate: sendStartDate.toISOString(),
|
|
620
618
|
sendEndDate: sendEndDate.toISOString()
|
|
621
619
|
});
|
|
620
|
+
if (mailingListId)
|
|
621
|
+
qs.append("mailingListId", mailingListId);
|
|
622
|
+
if (distributionRequestType)
|
|
623
|
+
qs.append("distributionRequestType", distributionRequestType);
|
|
622
624
|
if (skipToken)
|
|
623
625
|
qs.append("skipToken", skipToken);
|
|
624
626
|
if (useNewPaginationScheme)
|