@b-jones-rfd/qualtrics-api-tasks 0.3.4 → 0.3.5
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 +1 -1
- package/dist/index.d.mts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +2 -1
- package/dist/index.mjs +2 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
package/README.md
CHANGED
|
@@ -341,9 +341,9 @@ Implements [List Distributions](https://api.qualtrics.com/234bb6b16cf6d-list-dis
|
|
|
341
341
|
|
|
342
342
|
| Property | Type | Description | Required | Default |
|
|
343
343
|
| ----------------------- | ------- | ------------------------------- | -------- | ------- |
|
|
344
|
-
| surveyId | string | Quatrics Survey ID | Y | |
|
|
345
344
|
| sendStartDate | Date | Export start date and time | Y | |
|
|
346
345
|
| sendEndDate | Date | Export end date and time | Y | |
|
|
346
|
+
| surveyId | string | Quatrics Survey ID | N | |
|
|
347
347
|
| mailingListId | string | Mailing List ID | N | |
|
|
348
348
|
| distributionRequestType | string | Distribution Request Type | N | |
|
|
349
349
|
| skipToken | string | Pagination offset | N | |
|
package/dist/index.d.mts
CHANGED
|
@@ -118,9 +118,9 @@ type Connection = {
|
|
|
118
118
|
}, FileProgressResponse>;
|
|
119
119
|
importContacts: Action<StartContactsImportOptions, ContactsImportSummaryResponse>;
|
|
120
120
|
listDistributions: Action<{
|
|
121
|
-
surveyId: string;
|
|
122
121
|
sendStartDate: Date;
|
|
123
122
|
sendEndDate: Date;
|
|
123
|
+
surveyId?: string;
|
|
124
124
|
distributionRequestType?: DistributionRequestType;
|
|
125
125
|
mailingListId?: string;
|
|
126
126
|
skipToken?: string;
|
|
@@ -431,9 +431,9 @@ declare const importContacts: ActionFactory<StartContactsImportOptions, Contacts
|
|
|
431
431
|
* @see https://api.qualtrics.com/234bb6b16cf6d-list-distributions
|
|
432
432
|
*/
|
|
433
433
|
declare const listDistributions: ActionFactory<{
|
|
434
|
-
surveyId: string;
|
|
435
434
|
sendStartDate: Date;
|
|
436
435
|
sendEndDate: Date;
|
|
436
|
+
surveyId?: string;
|
|
437
437
|
distributionRequestType?: DistributionRequestType;
|
|
438
438
|
mailingListId?: string;
|
|
439
439
|
skipToken?: string;
|
package/dist/index.d.ts
CHANGED
|
@@ -118,9 +118,9 @@ type Connection = {
|
|
|
118
118
|
}, FileProgressResponse>;
|
|
119
119
|
importContacts: Action<StartContactsImportOptions, ContactsImportSummaryResponse>;
|
|
120
120
|
listDistributions: Action<{
|
|
121
|
-
surveyId: string;
|
|
122
121
|
sendStartDate: Date;
|
|
123
122
|
sendEndDate: Date;
|
|
123
|
+
surveyId?: string;
|
|
124
124
|
distributionRequestType?: DistributionRequestType;
|
|
125
125
|
mailingListId?: string;
|
|
126
126
|
skipToken?: string;
|
|
@@ -431,9 +431,9 @@ declare const importContacts: ActionFactory<StartContactsImportOptions, Contacts
|
|
|
431
431
|
* @see https://api.qualtrics.com/234bb6b16cf6d-list-distributions
|
|
432
432
|
*/
|
|
433
433
|
declare const listDistributions: ActionFactory<{
|
|
434
|
-
surveyId: string;
|
|
435
434
|
sendStartDate: Date;
|
|
436
435
|
sendEndDate: Date;
|
|
436
|
+
surveyId?: string;
|
|
437
437
|
distributionRequestType?: DistributionRequestType;
|
|
438
438
|
mailingListId?: string;
|
|
439
439
|
skipToken?: string;
|
package/dist/index.js
CHANGED
|
@@ -656,10 +656,11 @@ var listDistributions = (connectionOptions) => async ({
|
|
|
656
656
|
try {
|
|
657
657
|
const headers = getAuthHeaders(connectionOptions.apiToken, bearerToken);
|
|
658
658
|
const qs = new URLSearchParams({
|
|
659
|
-
surveyId,
|
|
660
659
|
sendStartDate: sendStartDate.toISOString(),
|
|
661
660
|
sendEndDate: sendEndDate.toISOString()
|
|
662
661
|
});
|
|
662
|
+
if (surveyId)
|
|
663
|
+
qs.append("surveyId", surveyId);
|
|
663
664
|
if (mailingListId)
|
|
664
665
|
qs.append("mailingListId", mailingListId);
|
|
665
666
|
if (distributionRequestType)
|
package/dist/index.mjs
CHANGED
|
@@ -613,10 +613,11 @@ var listDistributions = (connectionOptions) => async ({
|
|
|
613
613
|
try {
|
|
614
614
|
const headers = getAuthHeaders(connectionOptions.apiToken, bearerToken);
|
|
615
615
|
const qs = new URLSearchParams({
|
|
616
|
-
surveyId,
|
|
617
616
|
sendStartDate: sendStartDate.toISOString(),
|
|
618
617
|
sendEndDate: sendEndDate.toISOString()
|
|
619
618
|
});
|
|
619
|
+
if (surveyId)
|
|
620
|
+
qs.append("surveyId", surveyId);
|
|
620
621
|
if (mailingListId)
|
|
621
622
|
qs.append("mailingListId", mailingListId);
|
|
622
623
|
if (distributionRequestType)
|