@b-jones-rfd/qualtrics-api-tasks 0.3.5 → 0.3.6
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 +1 -2
- package/dist/index.mjs +1 -2
- 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 | |
|
|
344
345
|
| sendStartDate | Date | Export start date and time | Y | |
|
|
345
346
|
| 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
|
@@ -120,7 +120,7 @@ type Connection = {
|
|
|
120
120
|
listDistributions: Action<{
|
|
121
121
|
sendStartDate: Date;
|
|
122
122
|
sendEndDate: Date;
|
|
123
|
-
surveyId
|
|
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;
|
|
434
435
|
sendStartDate: Date;
|
|
435
436
|
sendEndDate: Date;
|
|
436
|
-
surveyId?: string;
|
|
437
437
|
distributionRequestType?: DistributionRequestType;
|
|
438
438
|
mailingListId?: string;
|
|
439
439
|
skipToken?: string;
|
package/dist/index.d.ts
CHANGED
|
@@ -120,7 +120,7 @@ type Connection = {
|
|
|
120
120
|
listDistributions: Action<{
|
|
121
121
|
sendStartDate: Date;
|
|
122
122
|
sendEndDate: Date;
|
|
123
|
-
surveyId
|
|
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;
|
|
434
435
|
sendStartDate: Date;
|
|
435
436
|
sendEndDate: Date;
|
|
436
|
-
surveyId?: string;
|
|
437
437
|
distributionRequestType?: DistributionRequestType;
|
|
438
438
|
mailingListId?: string;
|
|
439
439
|
skipToken?: string;
|
package/dist/index.js
CHANGED
|
@@ -656,11 +656,10 @@ var listDistributions = (connectionOptions) => async ({
|
|
|
656
656
|
try {
|
|
657
657
|
const headers = getAuthHeaders(connectionOptions.apiToken, bearerToken);
|
|
658
658
|
const qs = new URLSearchParams({
|
|
659
|
+
surveyId,
|
|
659
660
|
sendStartDate: sendStartDate.toISOString(),
|
|
660
661
|
sendEndDate: sendEndDate.toISOString()
|
|
661
662
|
});
|
|
662
|
-
if (surveyId)
|
|
663
|
-
qs.append("surveyId", surveyId);
|
|
664
663
|
if (mailingListId)
|
|
665
664
|
qs.append("mailingListId", mailingListId);
|
|
666
665
|
if (distributionRequestType)
|
package/dist/index.mjs
CHANGED
|
@@ -613,11 +613,10 @@ var listDistributions = (connectionOptions) => async ({
|
|
|
613
613
|
try {
|
|
614
614
|
const headers = getAuthHeaders(connectionOptions.apiToken, bearerToken);
|
|
615
615
|
const qs = new URLSearchParams({
|
|
616
|
+
surveyId,
|
|
616
617
|
sendStartDate: sendStartDate.toISOString(),
|
|
617
618
|
sendEndDate: sendEndDate.toISOString()
|
|
618
619
|
});
|
|
619
|
-
if (surveyId)
|
|
620
|
-
qs.append("surveyId", surveyId);
|
|
621
620
|
if (mailingListId)
|
|
622
621
|
qs.append("mailingListId", mailingListId);
|
|
623
622
|
if (distributionRequestType)
|