@proca/cli 3.1.1 → 3.3.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/campaign.d.ts +2 -2
- package/dist/index.d.ts +1 -0
- package/dist/index.js +6 -1
- package/dist/index.js.map +1 -1
- package/dist/proca.d.ts +157 -29
- package/dist/proca.js +42 -17
- package/dist/proca.js.map +1 -1
- package/dist/queueMessage.d.ts +5 -2
- package/dist/queueMessage.js +8 -2
- package/dist/queueMessage.js.map +1 -1
- package/dist/service/distance.d.ts +3 -0
- package/dist/service/distance.js +92 -0
- package/dist/service/distance.js.map +1 -0
- package/dist/service/identity.d.ts +7 -5
- package/dist/service/identity.js +54 -14
- package/dist/service/identity.js.map +1 -1
- package/dist/service/index.js.map +1 -1
- package/package.json +5 -5
package/dist/campaign.d.ts
CHANGED
|
@@ -87,7 +87,7 @@ export declare function getActionPage(argv: GetActionPageOpts & FormatOpts, conf
|
|
|
87
87
|
} & Pick<admin.PublicOrg, "title" | "name">);
|
|
88
88
|
} & {
|
|
89
89
|
__typename: "PrivateActionPage";
|
|
90
|
-
} & Pick<admin.PrivateActionPage, "live" | "name" | "id" | "config" | "locale" | "thankYouTemplateRef">) | ({
|
|
90
|
+
} & Pick<admin.PrivateActionPage, "live" | "name" | "id" | "config" | "locale" | "thankYouTemplate" | "thankYouTemplateRef">) | ({
|
|
91
91
|
__typename?: "PublicActionPage";
|
|
92
92
|
} & {
|
|
93
93
|
__typename?: "PublicActionPage";
|
|
@@ -132,7 +132,7 @@ export declare function getActionPage(argv: GetActionPageOpts & FormatOpts, conf
|
|
|
132
132
|
} & Pick<admin.PublicOrg, "title" | "name">);
|
|
133
133
|
} & {
|
|
134
134
|
__typename: "PublicActionPage";
|
|
135
|
-
} & Pick<admin.PublicActionPage, "live" | "name" | "id" | "config" | "locale" | "thankYouTemplateRef">)>;
|
|
135
|
+
} & Pick<admin.PublicActionPage, "live" | "name" | "id" | "config" | "locale" | "thankYouTemplate" | "thankYouTemplateRef">)>;
|
|
136
136
|
interface UpdateActionPageOpts {
|
|
137
137
|
id: number;
|
|
138
138
|
name?: string;
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export { load as loadConfig, CliConfig } from './config';
|
|
2
2
|
export * as cli from './cli';
|
|
3
|
+
export { default as getClient } from './client';
|
|
3
4
|
export * as crypto from './crypto';
|
|
4
5
|
export * as identity from './service/identity';
|
|
5
6
|
export * as email from './service/email';
|
package/dist/index.js
CHANGED
|
@@ -18,11 +18,16 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
18
18
|
__setModuleDefault(result, mod);
|
|
19
19
|
return result;
|
|
20
20
|
};
|
|
21
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
22
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
23
|
+
};
|
|
21
24
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
22
|
-
exports.queue = exports.email = exports.identity = exports.crypto = exports.cli = exports.loadConfig = void 0;
|
|
25
|
+
exports.queue = exports.email = exports.identity = exports.crypto = exports.getClient = exports.cli = exports.loadConfig = void 0;
|
|
23
26
|
var config_1 = require("./config");
|
|
24
27
|
Object.defineProperty(exports, "loadConfig", { enumerable: true, get: function () { return config_1.load; } });
|
|
25
28
|
exports.cli = __importStar(require("./cli"));
|
|
29
|
+
var client_1 = require("./client");
|
|
30
|
+
Object.defineProperty(exports, "getClient", { enumerable: true, get: function () { return __importDefault(client_1).default; } });
|
|
26
31
|
exports.crypto = __importStar(require("./crypto"));
|
|
27
32
|
exports.identity = __importStar(require("./service/identity"));
|
|
28
33
|
exports.email = __importStar(require("./service/email"));
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAAA,mCAAsD;AAA9C,oGAAA,IAAI,OAAc;AAC1B,6CAA4B;AAC5B,mCAA6C;AAArC,oHAAA,OAAO,OAAa;AAC5B,mDAAkC;AAClC,+DAA8C;AAC9C,yDAAwC;AACxC,iDAAgC"}
|
package/dist/proca.d.ts
CHANGED
|
@@ -45,7 +45,10 @@ export declare type Action = {
|
|
|
45
45
|
actionType: Scalars['String'];
|
|
46
46
|
contact: Contact;
|
|
47
47
|
customFields: Scalars['Json'];
|
|
48
|
-
/**
|
|
48
|
+
/**
|
|
49
|
+
* Deprecated, use customFields
|
|
50
|
+
* @deprecated use custom_fields
|
|
51
|
+
*/
|
|
49
52
|
fields: Array<CustomField>;
|
|
50
53
|
tracking: Maybe<Tracking>;
|
|
51
54
|
campaign: Campaign;
|
|
@@ -59,6 +62,7 @@ export declare type ActionCustomFields = {
|
|
|
59
62
|
actionType: Scalars['String'];
|
|
60
63
|
insertedAt: Scalars['NaiveDateTime'];
|
|
61
64
|
customFields: Scalars['Json'];
|
|
65
|
+
/** @deprecated use custom_fields */
|
|
62
66
|
fields: Array<CustomField>;
|
|
63
67
|
};
|
|
64
68
|
/** Custom field added to action. For signature it can be contact, for mail it can be subject and body */
|
|
@@ -71,6 +75,10 @@ export declare type ActionInput = {
|
|
|
71
75
|
fields?: Maybe<Array<CustomFieldInput>>;
|
|
72
76
|
/** Donation payload */
|
|
73
77
|
donation?: Maybe<DonationActionInput>;
|
|
78
|
+
/** MTT payload */
|
|
79
|
+
mtt?: Maybe<MttActionInput>;
|
|
80
|
+
/** Test mode */
|
|
81
|
+
testing?: Maybe<Scalars['Boolean']>;
|
|
74
82
|
};
|
|
75
83
|
export declare type ActionPage = {
|
|
76
84
|
id: Scalars['Int'];
|
|
@@ -78,7 +86,9 @@ export declare type ActionPage = {
|
|
|
78
86
|
locale: Scalars['String'];
|
|
79
87
|
/** Name where the widget is hosted */
|
|
80
88
|
name: Scalars['String'];
|
|
81
|
-
/**
|
|
89
|
+
/** Thank you email templated of this Action Page */
|
|
90
|
+
thankYouTemplate: Maybe<Scalars['String']>;
|
|
91
|
+
/** A reference to thank you email template of this ActionPage */
|
|
82
92
|
thankYouTemplateRef: Maybe<Scalars['String']>;
|
|
83
93
|
/** Is live? */
|
|
84
94
|
live: Scalars['Boolean'];
|
|
@@ -105,12 +115,16 @@ export declare type ActionPageInput = {
|
|
|
105
115
|
name?: Maybe<Scalars['String']>;
|
|
106
116
|
/** 2-letter, lowercase, code of ActionPage language */
|
|
107
117
|
locale?: Maybe<Scalars['String']>;
|
|
108
|
-
/**
|
|
109
|
-
|
|
118
|
+
/** Thank you email template of this ActionPage */
|
|
119
|
+
thankYouTemplate?: Maybe<Scalars['String']>;
|
|
120
|
+
/** Supporter confirm email template of this ActionPage */
|
|
121
|
+
supporterConfirmTemplate?: Maybe<Scalars['String']>;
|
|
110
122
|
/** Extra supporter count. If you want to add a number of signatories you have offline or kept in another system, you can specify the number here. */
|
|
111
123
|
extraSupporters?: Maybe<Scalars['Int']>;
|
|
112
124
|
/** JSON string containing Action Page config */
|
|
113
125
|
config?: Maybe<Scalars['Json']>;
|
|
126
|
+
/** Collected PII is processed even with no opt-in */
|
|
127
|
+
delivery?: Maybe<Scalars['Boolean']>;
|
|
114
128
|
};
|
|
115
129
|
export declare enum ActionPageStatus {
|
|
116
130
|
/** This action page is ready to receive first action or is stalled for over 1 year */
|
|
@@ -177,6 +191,7 @@ export declare type Campaign = {
|
|
|
177
191
|
org: Org;
|
|
178
192
|
/** Fetch public actions */
|
|
179
193
|
actions: PublicActionsResult;
|
|
194
|
+
targets: Maybe<Array<Maybe<Target>>>;
|
|
180
195
|
};
|
|
181
196
|
export declare type CampaignActionsArgs = {
|
|
182
197
|
actionType: Scalars['String'];
|
|
@@ -185,7 +200,7 @@ export declare type CampaignActionsArgs = {
|
|
|
185
200
|
/** Campaign input */
|
|
186
201
|
export declare type CampaignInput = {
|
|
187
202
|
/** Campaign unchanging identifier */
|
|
188
|
-
name
|
|
203
|
+
name?: Maybe<Scalars['String']>;
|
|
189
204
|
/** Campaign external_id. If provided, it will be used to find campaign. Can be used to rename a campaign */
|
|
190
205
|
externalId?: Maybe<Scalars['Int']>;
|
|
191
206
|
/** Campaign human readable title */
|
|
@@ -196,6 +211,21 @@ export declare type CampaignInput = {
|
|
|
196
211
|
config?: Maybe<Scalars['Json']>;
|
|
197
212
|
/** Action pages of this campaign */
|
|
198
213
|
actionPages?: Maybe<Array<ActionPageInput>>;
|
|
214
|
+
/** MTT configuration */
|
|
215
|
+
mtt?: Maybe<CampaignMttInput>;
|
|
216
|
+
};
|
|
217
|
+
export declare type CampaignMtt = {
|
|
218
|
+
__typename?: 'CampaignMtt';
|
|
219
|
+
startAt: Scalars['DateTime'];
|
|
220
|
+
endAt: Scalars['DateTime'];
|
|
221
|
+
messageTemplate: Maybe<Scalars['String']>;
|
|
222
|
+
testEmail: Maybe<Scalars['String']>;
|
|
223
|
+
};
|
|
224
|
+
export declare type CampaignMttInput = {
|
|
225
|
+
startAt?: Maybe<Scalars['DateTime']>;
|
|
226
|
+
endAt?: Maybe<Scalars['DateTime']>;
|
|
227
|
+
messageTemplate?: Maybe<Scalars['String']>;
|
|
228
|
+
testEmail?: Maybe<Scalars['String']>;
|
|
199
229
|
};
|
|
200
230
|
/** Campaign statistics */
|
|
201
231
|
export declare type CampaignStats = {
|
|
@@ -237,12 +267,16 @@ export declare type ConfirmResult = {
|
|
|
237
267
|
actionPage: Maybe<ActionPage>;
|
|
238
268
|
campaign: Maybe<Campaign>;
|
|
239
269
|
org: Maybe<Org>;
|
|
270
|
+
message: Maybe<Scalars['String']>;
|
|
240
271
|
};
|
|
241
272
|
/** GDPR consent data for this org */
|
|
242
273
|
export declare type Consent = {
|
|
243
274
|
__typename?: 'Consent';
|
|
244
275
|
optIn: Scalars['Boolean'];
|
|
245
276
|
givenAt: Scalars['NaiveDateTime'];
|
|
277
|
+
emailStatus: EmailStatus;
|
|
278
|
+
emailStatusChanged: Maybe<Scalars['NaiveDateTime']>;
|
|
279
|
+
withConsent: Scalars['Boolean'];
|
|
246
280
|
};
|
|
247
281
|
/** GDPR consent data structure */
|
|
248
282
|
export declare type ConsentInput = {
|
|
@@ -339,6 +373,14 @@ export declare enum DonationFrequencyUnit {
|
|
|
339
373
|
export declare enum DonationSchema {
|
|
340
374
|
StripePaymentIntent = "STRIPE_PAYMENT_INTENT"
|
|
341
375
|
}
|
|
376
|
+
export declare enum EmailStatus {
|
|
377
|
+
None = "NONE",
|
|
378
|
+
DoubleOptIn = "DOUBLE_OPT_IN",
|
|
379
|
+
Bounce = "BOUNCE",
|
|
380
|
+
Blocked = "BLOCKED",
|
|
381
|
+
Spam = "SPAM",
|
|
382
|
+
Unsub = "UNSUB"
|
|
383
|
+
}
|
|
342
384
|
export declare type GenKeyInput = {
|
|
343
385
|
name: Scalars['String'];
|
|
344
386
|
};
|
|
@@ -378,6 +420,14 @@ export declare type LaunchActionPageResult = {
|
|
|
378
420
|
__typename?: 'LaunchActionPageResult';
|
|
379
421
|
status: Status;
|
|
380
422
|
};
|
|
423
|
+
export declare type MttActionInput = {
|
|
424
|
+
/** Subject line */
|
|
425
|
+
subject: Scalars['String'];
|
|
426
|
+
/** Body */
|
|
427
|
+
body: Scalars['String'];
|
|
428
|
+
/** Target ids */
|
|
429
|
+
targets: Array<Scalars['String']>;
|
|
430
|
+
};
|
|
381
431
|
export declare type NationalityInput = {
|
|
382
432
|
/** Nationality / issuer of id document */
|
|
383
433
|
country: Scalars['String'];
|
|
@@ -410,18 +460,24 @@ export declare type OrgInput = {
|
|
|
410
460
|
/** Schema for contact personal information */
|
|
411
461
|
contactSchema?: Maybe<ContactSchema>;
|
|
412
462
|
/** Email opt in enabled */
|
|
413
|
-
|
|
463
|
+
supporterConfirm?: Maybe<Scalars['Boolean']>;
|
|
414
464
|
/** Email opt in template name */
|
|
415
|
-
|
|
465
|
+
supporterConfirmTemplate?: Maybe<Scalars['String']>;
|
|
466
|
+
/** Only send thank you emails to opt-ins */
|
|
467
|
+
doiThankYou?: Maybe<Scalars['Boolean']>;
|
|
416
468
|
/** Config */
|
|
417
469
|
config?: Maybe<Scalars['Json']>;
|
|
418
470
|
};
|
|
419
471
|
export declare type OrgUser = {
|
|
420
472
|
__typename?: 'OrgUser';
|
|
421
473
|
email: Scalars['String'];
|
|
474
|
+
/** Role in an org */
|
|
422
475
|
role: Scalars['String'];
|
|
476
|
+
/** Date and time the user was created on this instance */
|
|
423
477
|
createdAt: Scalars['NaiveDateTime'];
|
|
478
|
+
/** Date and time when user joined org */
|
|
424
479
|
joinedAt: Scalars['NaiveDateTime'];
|
|
480
|
+
/** Will be removed */
|
|
425
481
|
lastSigninAt: Maybe<Scalars['NaiveDateTime']>;
|
|
426
482
|
};
|
|
427
483
|
export declare type OrgUserInput = {
|
|
@@ -433,17 +489,20 @@ export declare type Partnership = {
|
|
|
433
489
|
org: Org;
|
|
434
490
|
actionPages: Array<ActionPage>;
|
|
435
491
|
launchRequests: Array<Confirm>;
|
|
492
|
+
launchRequesters: Array<User>;
|
|
436
493
|
};
|
|
437
494
|
export declare type PersonalData = {
|
|
438
495
|
__typename?: 'PersonalData';
|
|
439
496
|
/** Schema for contact personal information */
|
|
440
497
|
contactSchema: ContactSchema;
|
|
441
498
|
/** Email opt in enabled */
|
|
442
|
-
|
|
499
|
+
supporterConfirm: Scalars['Boolean'];
|
|
443
500
|
/** Email opt in template name */
|
|
444
|
-
|
|
501
|
+
supporterConfirmTemplate: Maybe<Scalars['String']>;
|
|
445
502
|
/** High data security enabled */
|
|
446
503
|
highSecurity: Scalars['Boolean'];
|
|
504
|
+
/** Only send thank you emails to opt-ins */
|
|
505
|
+
doiThankYou: Scalars['Boolean'];
|
|
447
506
|
};
|
|
448
507
|
export declare type PrivateActionPage = ActionPage & {
|
|
449
508
|
__typename?: 'PrivateActionPage';
|
|
@@ -452,7 +511,9 @@ export declare type PrivateActionPage = ActionPage & {
|
|
|
452
511
|
locale: Scalars['String'];
|
|
453
512
|
/** Name where the widget is hosted */
|
|
454
513
|
name: Scalars['String'];
|
|
455
|
-
/**
|
|
514
|
+
/** Thank you email templated of this Action Page */
|
|
515
|
+
thankYouTemplate: Maybe<Scalars['String']>;
|
|
516
|
+
/** A reference to thank you email template of this ActionPage */
|
|
456
517
|
thankYouTemplateRef: Maybe<Scalars['String']>;
|
|
457
518
|
/** Is live? */
|
|
458
519
|
live: Scalars['Boolean'];
|
|
@@ -467,6 +528,8 @@ export declare type PrivateActionPage = ActionPage & {
|
|
|
467
528
|
extraSupporters: Scalars['Int'];
|
|
468
529
|
/** Action page collects also opt-out actions */
|
|
469
530
|
delivery: Scalars['Boolean'];
|
|
531
|
+
/** Email template to confirm supporter */
|
|
532
|
+
supporterConfirmTemplate: Maybe<Scalars['String']>;
|
|
470
533
|
/** Location of the widget as last seen in HTTP REFERER header */
|
|
471
534
|
location: Maybe<Scalars['String']>;
|
|
472
535
|
/** Status of action page */
|
|
@@ -491,11 +554,15 @@ export declare type PrivateCampaign = Campaign & {
|
|
|
491
554
|
org: Org;
|
|
492
555
|
/** Fetch public actions */
|
|
493
556
|
actions: PublicActionsResult;
|
|
557
|
+
targets: Maybe<Array<Maybe<Target>>>;
|
|
494
558
|
/** Campaign onwer collects opt-out actions for delivery even if campaign partner is */
|
|
495
559
|
forceDelivery: Scalars['Boolean'];
|
|
560
|
+
/** Action Pages of this campaign that are accessible to current user */
|
|
561
|
+
actionPages: Array<PrivateActionPage>;
|
|
496
562
|
/** List of partnerships and requests */
|
|
497
563
|
partnerships: Maybe<Array<Partnership>>;
|
|
498
|
-
|
|
564
|
+
/** MTT configuration */
|
|
565
|
+
mtt: Maybe<CampaignMtt>;
|
|
499
566
|
};
|
|
500
567
|
export declare type PrivateCampaignActionsArgs = {
|
|
501
568
|
actionType: Scalars['String'];
|
|
@@ -549,17 +616,29 @@ export declare type PrivateOrgActionPageArgs = {
|
|
|
549
616
|
export declare type PrivateOrgCampaignArgs = {
|
|
550
617
|
id: Scalars['Int'];
|
|
551
618
|
};
|
|
619
|
+
export declare type PrivateTarget = Target & {
|
|
620
|
+
__typename?: 'PrivateTarget';
|
|
621
|
+
id: Scalars['String'];
|
|
622
|
+
name: Scalars['String'];
|
|
623
|
+
externalId: Scalars['String'];
|
|
624
|
+
area: Maybe<Scalars['String']>;
|
|
625
|
+
fields: Maybe<Scalars['Json']>;
|
|
626
|
+
emails: Array<Maybe<TargetEmail>>;
|
|
627
|
+
};
|
|
552
628
|
export declare type Processing = {
|
|
553
629
|
__typename?: 'Processing';
|
|
554
630
|
emailFrom: Maybe<Scalars['String']>;
|
|
555
631
|
emailBackend: Maybe<ServiceName>;
|
|
632
|
+
supporterConfirm: Scalars['Boolean'];
|
|
633
|
+
supporterConfirmTemplate: Maybe<Scalars['String']>;
|
|
634
|
+
doiThankYou: Scalars['Boolean'];
|
|
556
635
|
customSupporterConfirm: Scalars['Boolean'];
|
|
557
636
|
customActionConfirm: Scalars['Boolean'];
|
|
558
637
|
customActionDeliver: Scalars['Boolean'];
|
|
559
638
|
sqsDeliver: Scalars['Boolean'];
|
|
560
639
|
eventBackend: Maybe<ServiceName>;
|
|
561
640
|
eventProcessing: Scalars['Boolean'];
|
|
562
|
-
|
|
641
|
+
emailTemplates: Maybe<Array<Scalars['String']>>;
|
|
563
642
|
};
|
|
564
643
|
export declare type PublicActionPage = ActionPage & {
|
|
565
644
|
__typename?: 'PublicActionPage';
|
|
@@ -568,7 +647,9 @@ export declare type PublicActionPage = ActionPage & {
|
|
|
568
647
|
locale: Scalars['String'];
|
|
569
648
|
/** Name where the widget is hosted */
|
|
570
649
|
name: Scalars['String'];
|
|
571
|
-
/**
|
|
650
|
+
/** Thank you email templated of this Action Page */
|
|
651
|
+
thankYouTemplate: Maybe<Scalars['String']>;
|
|
652
|
+
/** A reference to thank you email template of this ActionPage */
|
|
572
653
|
thankYouTemplateRef: Maybe<Scalars['String']>;
|
|
573
654
|
/** Is live? */
|
|
574
655
|
live: Scalars['Boolean'];
|
|
@@ -606,6 +687,7 @@ export declare type PublicCampaign = Campaign & {
|
|
|
606
687
|
org: Org;
|
|
607
688
|
/** Fetch public actions */
|
|
608
689
|
actions: PublicActionsResult;
|
|
690
|
+
targets: Maybe<Array<Maybe<Target>>>;
|
|
609
691
|
};
|
|
610
692
|
export declare type PublicCampaignActionsArgs = {
|
|
611
693
|
actionType: Scalars['String'];
|
|
@@ -620,6 +702,14 @@ export declare type PublicOrg = Org & {
|
|
|
620
702
|
/** config */
|
|
621
703
|
config: Scalars['Json'];
|
|
622
704
|
};
|
|
705
|
+
export declare type PublicTarget = Target & {
|
|
706
|
+
__typename?: 'PublicTarget';
|
|
707
|
+
id: Scalars['String'];
|
|
708
|
+
name: Scalars['String'];
|
|
709
|
+
externalId: Scalars['String'];
|
|
710
|
+
area: Maybe<Scalars['String']>;
|
|
711
|
+
fields: Maybe<Scalars['Json']>;
|
|
712
|
+
};
|
|
623
713
|
export declare type RootMutationType = {
|
|
624
714
|
__typename?: 'RootMutationType';
|
|
625
715
|
/**
|
|
@@ -686,9 +776,11 @@ export declare type RootMutationType = {
|
|
|
686
776
|
acceptOrgConfirm: ConfirmResult;
|
|
687
777
|
/** Reject a confirm on behalf of organisation. */
|
|
688
778
|
rejectOrgConfirm: ConfirmResult;
|
|
779
|
+
/** Accept a confirm by user */
|
|
689
780
|
acceptUserConfirm: ConfirmResult;
|
|
781
|
+
/** Reject a confirm by user */
|
|
690
782
|
rejectUserConfirm: ConfirmResult;
|
|
691
|
-
upsertTargets: Array<Maybe<
|
|
783
|
+
upsertTargets: Array<Maybe<PrivateTarget>>;
|
|
692
784
|
};
|
|
693
785
|
export declare type RootMutationTypeUpsertCampaignArgs = {
|
|
694
786
|
orgName: Scalars['String'];
|
|
@@ -710,7 +802,8 @@ export declare type RootMutationTypeDeleteCampaignArgs = {
|
|
|
710
802
|
externalId?: Maybe<Scalars['Int']>;
|
|
711
803
|
};
|
|
712
804
|
export declare type RootMutationTypeUpdateActionPageArgs = {
|
|
713
|
-
id
|
|
805
|
+
id?: Maybe<Scalars['Int']>;
|
|
806
|
+
name?: Maybe<Scalars['String']>;
|
|
714
807
|
input: ActionPageInput;
|
|
715
808
|
};
|
|
716
809
|
export declare type RootMutationTypeCopyActionPageArgs = {
|
|
@@ -791,13 +884,15 @@ export declare type RootMutationTypeUpdateOrgProcessingArgs = {
|
|
|
791
884
|
name: Scalars['String'];
|
|
792
885
|
emailBackend?: Maybe<ServiceName>;
|
|
793
886
|
emailFrom?: Maybe<Scalars['String']>;
|
|
887
|
+
supporterConfirm?: Maybe<Scalars['Boolean']>;
|
|
888
|
+
supporterConfirmTemplate?: Maybe<Scalars['String']>;
|
|
889
|
+
doiThankYou?: Maybe<Scalars['Boolean']>;
|
|
794
890
|
customSupporterConfirm?: Maybe<Scalars['Boolean']>;
|
|
795
891
|
customActionConfirm?: Maybe<Scalars['Boolean']>;
|
|
796
892
|
customActionDeliver?: Maybe<Scalars['Boolean']>;
|
|
797
893
|
sqsDeliver?: Maybe<Scalars['Boolean']>;
|
|
798
894
|
eventBackend?: Maybe<ServiceName>;
|
|
799
895
|
eventProcessing?: Maybe<Scalars['Boolean']>;
|
|
800
|
-
confirmProcessing?: Maybe<Scalars['Boolean']>;
|
|
801
896
|
};
|
|
802
897
|
export declare type RootMutationTypeJoinOrgArgs = {
|
|
803
898
|
name: Scalars['String'];
|
|
@@ -851,8 +946,9 @@ export declare type RootMutationTypeRejectUserConfirmArgs = {
|
|
|
851
946
|
confirm: ConfirmInput;
|
|
852
947
|
};
|
|
853
948
|
export declare type RootMutationTypeUpsertTargetsArgs = {
|
|
854
|
-
targets: Array<
|
|
949
|
+
targets: Array<TargetInput>;
|
|
855
950
|
campaignId: Scalars['Int'];
|
|
951
|
+
replace?: Maybe<Scalars['Boolean']>;
|
|
856
952
|
};
|
|
857
953
|
export declare type RootQueryType = {
|
|
858
954
|
__typename?: 'RootQueryType';
|
|
@@ -864,10 +960,10 @@ export declare type RootQueryType = {
|
|
|
864
960
|
actionPage: ActionPage;
|
|
865
961
|
exportActions: Array<Maybe<Action>>;
|
|
866
962
|
currentUser: User;
|
|
963
|
+
/** Select users from this instnace. Requires a manage users admin permission. */
|
|
867
964
|
users: Array<User>;
|
|
868
965
|
/** Organization api (authenticated) */
|
|
869
966
|
org: PrivateOrg;
|
|
870
|
-
targets: Array<Maybe<Target>>;
|
|
871
967
|
};
|
|
872
968
|
export declare type RootQueryTypeCampaignsArgs = {
|
|
873
969
|
title?: Maybe<Scalars['String']>;
|
|
@@ -892,6 +988,8 @@ export declare type RootQueryTypeExportActionsArgs = {
|
|
|
892
988
|
after?: Maybe<Scalars['DateTime']>;
|
|
893
989
|
limit?: Maybe<Scalars['Int']>;
|
|
894
990
|
onlyOptIn?: Maybe<Scalars['Boolean']>;
|
|
991
|
+
onlyDoubleOptIn?: Maybe<Scalars['Boolean']>;
|
|
992
|
+
includeTesting?: Maybe<Scalars['Boolean']>;
|
|
895
993
|
};
|
|
896
994
|
export declare type RootQueryTypeUsersArgs = {
|
|
897
995
|
select?: Maybe<SelectUser>;
|
|
@@ -899,9 +997,6 @@ export declare type RootQueryTypeUsersArgs = {
|
|
|
899
997
|
export declare type RootQueryTypeOrgArgs = {
|
|
900
998
|
name: Scalars['String'];
|
|
901
999
|
};
|
|
902
|
-
export declare type RootQueryTypeTargetsArgs = {
|
|
903
|
-
campaignId: Scalars['Int'];
|
|
904
|
-
};
|
|
905
1000
|
export declare type RootSubscriptionType = {
|
|
906
1001
|
__typename?: 'RootSubscriptionType';
|
|
907
1002
|
actionPageUpserted: ActionPage;
|
|
@@ -974,26 +1069,27 @@ export declare type StripeSubscriptionInput = {
|
|
|
974
1069
|
frequencyUnit: DonationFrequencyUnit;
|
|
975
1070
|
};
|
|
976
1071
|
export declare type Target = {
|
|
977
|
-
__typename?: 'Target';
|
|
978
1072
|
id: Scalars['String'];
|
|
979
1073
|
name: Scalars['String'];
|
|
1074
|
+
externalId: Scalars['String'];
|
|
980
1075
|
area: Maybe<Scalars['String']>;
|
|
981
1076
|
fields: Maybe<Scalars['Json']>;
|
|
982
|
-
emails: Array<Maybe<TargetEmail>>;
|
|
983
1077
|
};
|
|
984
1078
|
export declare type TargetEmail = {
|
|
985
1079
|
__typename?: 'TargetEmail';
|
|
986
1080
|
email: Scalars['String'];
|
|
1081
|
+
emailStatus: EmailStatus;
|
|
1082
|
+
error: Maybe<Scalars['String']>;
|
|
987
1083
|
};
|
|
988
1084
|
export declare type TargetEmailInput = {
|
|
989
1085
|
email: Scalars['String'];
|
|
990
1086
|
};
|
|
991
1087
|
export declare type TargetInput = {
|
|
992
|
-
name
|
|
1088
|
+
name?: Maybe<Scalars['String']>;
|
|
993
1089
|
area?: Maybe<Scalars['String']>;
|
|
994
1090
|
externalId: Scalars['String'];
|
|
995
1091
|
fields?: Maybe<Scalars['Json']>;
|
|
996
|
-
emails
|
|
1092
|
+
emails?: Maybe<Array<TargetEmailInput>>;
|
|
997
1093
|
};
|
|
998
1094
|
/** Tracking codes */
|
|
999
1095
|
export declare type Tracking = {
|
|
@@ -1165,6 +1261,13 @@ export declare const RejectLaunchRequestDocument: DocumentNode<RejectLaunchReque
|
|
|
1165
1261
|
org: Scalars['String'];
|
|
1166
1262
|
confirm: ConfirmInput;
|
|
1167
1263
|
}>>;
|
|
1264
|
+
export declare const ActionPageExtraDocument: DocumentNode<ActionPageExtra, Exact<{
|
|
1265
|
+
id: Scalars['Int'];
|
|
1266
|
+
}>>;
|
|
1267
|
+
export declare const ActionPageSetExtraDocument: DocumentNode<ActionPageSetExtra, Exact<{
|
|
1268
|
+
id: Scalars['Int'];
|
|
1269
|
+
extra: Scalars['Int'];
|
|
1270
|
+
}>>;
|
|
1168
1271
|
export declare type CampaignOverview = ({
|
|
1169
1272
|
__typename?: 'PrivateCampaign';
|
|
1170
1273
|
} & {
|
|
@@ -1869,10 +1972,10 @@ declare type ActionPageIds_PublicActionPage_ = ({
|
|
|
1869
1972
|
export declare type ActionPageIds = ActionPageIds_PrivateActionPage_ | ActionPageIds_PublicActionPage_;
|
|
1870
1973
|
declare type ActionPageFields_PrivateActionPage_ = ({
|
|
1871
1974
|
__typename: 'PrivateActionPage';
|
|
1872
|
-
} & Pick<PrivateActionPage, 'id' | 'name' | 'locale' | 'config' | 'live' | 'thankYouTemplateRef'>);
|
|
1975
|
+
} & Pick<PrivateActionPage, 'id' | 'name' | 'locale' | 'config' | 'live' | 'thankYouTemplate' | 'thankYouTemplateRef'>);
|
|
1873
1976
|
declare type ActionPageFields_PublicActionPage_ = ({
|
|
1874
1977
|
__typename: 'PublicActionPage';
|
|
1875
|
-
} & Pick<PublicActionPage, 'id' | 'name' | 'locale' | 'config' | 'live' | 'thankYouTemplateRef'>);
|
|
1978
|
+
} & Pick<PublicActionPage, 'id' | 'name' | 'locale' | 'config' | 'live' | 'thankYouTemplate' | 'thankYouTemplateRef'>);
|
|
1876
1979
|
export declare type ActionPageFields = ActionPageFields_PrivateActionPage_ | ActionPageFields_PublicActionPage_;
|
|
1877
1980
|
export declare type ActionPagePrivateFields = ({
|
|
1878
1981
|
__typename: 'PrivateActionPage';
|
|
@@ -1889,7 +1992,7 @@ export declare type OrgPrivateFields = ({
|
|
|
1889
1992
|
} & Pick<PrivateOrg, 'config'> & {
|
|
1890
1993
|
personalData: ({
|
|
1891
1994
|
__typename?: 'PersonalData';
|
|
1892
|
-
} & Pick<PersonalData, 'contactSchema' | '
|
|
1995
|
+
} & Pick<PersonalData, 'contactSchema' | 'supporterConfirm' | 'supporterConfirmTemplate'>);
|
|
1893
1996
|
});
|
|
1894
1997
|
export declare type KeyFields = ({
|
|
1895
1998
|
__typename?: 'Key';
|
|
@@ -1918,7 +2021,32 @@ export declare type ActionExport = ({
|
|
|
1918
2021
|
} & Pick<Tracking, 'source' | 'medium' | 'campaign' | 'content'>)>;
|
|
1919
2022
|
privacy: ({
|
|
1920
2023
|
__typename?: 'Consent';
|
|
1921
|
-
} & Pick<Consent, 'optIn' | 'givenAt'>);
|
|
2024
|
+
} & Pick<Consent, 'optIn' | 'givenAt' | 'emailStatus' | 'emailStatusChanged'>);
|
|
2025
|
+
});
|
|
2026
|
+
export declare type ActionPageExtraVariables = Exact<{
|
|
2027
|
+
id: Scalars['Int'];
|
|
2028
|
+
}>;
|
|
2029
|
+
export declare type ActionPageExtra = ({
|
|
2030
|
+
__typename?: 'RootQueryType';
|
|
2031
|
+
} & {
|
|
2032
|
+
actionPage: ({
|
|
2033
|
+
__typename?: 'PrivateActionPage';
|
|
2034
|
+
} & Pick<PrivateActionPage, 'extraSupporters'>) | {
|
|
2035
|
+
__typename?: 'PublicActionPage';
|
|
2036
|
+
};
|
|
2037
|
+
});
|
|
2038
|
+
export declare type ActionPageSetExtraVariables = Exact<{
|
|
2039
|
+
id: Scalars['Int'];
|
|
2040
|
+
extra: Scalars['Int'];
|
|
2041
|
+
}>;
|
|
2042
|
+
export declare type ActionPageSetExtra = ({
|
|
2043
|
+
__typename?: 'RootMutationType';
|
|
2044
|
+
} & {
|
|
2045
|
+
updateActionPage: ({
|
|
2046
|
+
__typename: 'PrivateActionPage';
|
|
2047
|
+
} & Pick<PrivateActionPage, 'extraSupporters'>) | {
|
|
2048
|
+
__typename: 'PublicActionPage';
|
|
2049
|
+
};
|
|
1922
2050
|
});
|
|
1923
2051
|
export declare type ObjectFieldTypes = {
|
|
1924
2052
|
[key: string]: {
|