@proca/cli 3.1.1-alpha.0 → 3.3.0
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 +156 -29
- package/dist/proca.js +40 -16
- 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 = {
|
|
@@ -439,11 +495,13 @@ export declare type PersonalData = {
|
|
|
439
495
|
/** Schema for contact personal information */
|
|
440
496
|
contactSchema: ContactSchema;
|
|
441
497
|
/** Email opt in enabled */
|
|
442
|
-
|
|
498
|
+
supporterConfirm: Scalars['Boolean'];
|
|
443
499
|
/** Email opt in template name */
|
|
444
|
-
|
|
500
|
+
supporterConfirmTemplate: Maybe<Scalars['String']>;
|
|
445
501
|
/** High data security enabled */
|
|
446
502
|
highSecurity: Scalars['Boolean'];
|
|
503
|
+
/** Only send thank you emails to opt-ins */
|
|
504
|
+
doiThankYou: Scalars['Boolean'];
|
|
447
505
|
};
|
|
448
506
|
export declare type PrivateActionPage = ActionPage & {
|
|
449
507
|
__typename?: 'PrivateActionPage';
|
|
@@ -452,7 +510,9 @@ export declare type PrivateActionPage = ActionPage & {
|
|
|
452
510
|
locale: Scalars['String'];
|
|
453
511
|
/** Name where the widget is hosted */
|
|
454
512
|
name: Scalars['String'];
|
|
455
|
-
/**
|
|
513
|
+
/** Thank you email templated of this Action Page */
|
|
514
|
+
thankYouTemplate: Maybe<Scalars['String']>;
|
|
515
|
+
/** A reference to thank you email template of this ActionPage */
|
|
456
516
|
thankYouTemplateRef: Maybe<Scalars['String']>;
|
|
457
517
|
/** Is live? */
|
|
458
518
|
live: Scalars['Boolean'];
|
|
@@ -467,6 +527,8 @@ export declare type PrivateActionPage = ActionPage & {
|
|
|
467
527
|
extraSupporters: Scalars['Int'];
|
|
468
528
|
/** Action page collects also opt-out actions */
|
|
469
529
|
delivery: Scalars['Boolean'];
|
|
530
|
+
/** Email template to confirm supporter */
|
|
531
|
+
supporterConfirmTemplate: Maybe<Scalars['String']>;
|
|
470
532
|
/** Location of the widget as last seen in HTTP REFERER header */
|
|
471
533
|
location: Maybe<Scalars['String']>;
|
|
472
534
|
/** Status of action page */
|
|
@@ -491,11 +553,15 @@ export declare type PrivateCampaign = Campaign & {
|
|
|
491
553
|
org: Org;
|
|
492
554
|
/** Fetch public actions */
|
|
493
555
|
actions: PublicActionsResult;
|
|
556
|
+
targets: Maybe<Array<Maybe<Target>>>;
|
|
494
557
|
/** Campaign onwer collects opt-out actions for delivery even if campaign partner is */
|
|
495
558
|
forceDelivery: Scalars['Boolean'];
|
|
559
|
+
/** Action Pages of this campaign that are accessible to current user */
|
|
560
|
+
actionPages: Array<PrivateActionPage>;
|
|
496
561
|
/** List of partnerships and requests */
|
|
497
562
|
partnerships: Maybe<Array<Partnership>>;
|
|
498
|
-
|
|
563
|
+
/** MTT configuration */
|
|
564
|
+
mtt: Maybe<CampaignMtt>;
|
|
499
565
|
};
|
|
500
566
|
export declare type PrivateCampaignActionsArgs = {
|
|
501
567
|
actionType: Scalars['String'];
|
|
@@ -549,17 +615,29 @@ export declare type PrivateOrgActionPageArgs = {
|
|
|
549
615
|
export declare type PrivateOrgCampaignArgs = {
|
|
550
616
|
id: Scalars['Int'];
|
|
551
617
|
};
|
|
618
|
+
export declare type PrivateTarget = Target & {
|
|
619
|
+
__typename?: 'PrivateTarget';
|
|
620
|
+
id: Scalars['String'];
|
|
621
|
+
name: Scalars['String'];
|
|
622
|
+
externalId: Scalars['String'];
|
|
623
|
+
area: Maybe<Scalars['String']>;
|
|
624
|
+
fields: Maybe<Scalars['Json']>;
|
|
625
|
+
emails: Array<Maybe<TargetEmail>>;
|
|
626
|
+
};
|
|
552
627
|
export declare type Processing = {
|
|
553
628
|
__typename?: 'Processing';
|
|
554
629
|
emailFrom: Maybe<Scalars['String']>;
|
|
555
630
|
emailBackend: Maybe<ServiceName>;
|
|
631
|
+
supporterConfirm: Scalars['Boolean'];
|
|
632
|
+
supporterConfirmTemplate: Maybe<Scalars['String']>;
|
|
633
|
+
doiThankYou: Scalars['Boolean'];
|
|
556
634
|
customSupporterConfirm: Scalars['Boolean'];
|
|
557
635
|
customActionConfirm: Scalars['Boolean'];
|
|
558
636
|
customActionDeliver: Scalars['Boolean'];
|
|
559
637
|
sqsDeliver: Scalars['Boolean'];
|
|
560
638
|
eventBackend: Maybe<ServiceName>;
|
|
561
639
|
eventProcessing: Scalars['Boolean'];
|
|
562
|
-
|
|
640
|
+
emailTemplates: Maybe<Array<Scalars['String']>>;
|
|
563
641
|
};
|
|
564
642
|
export declare type PublicActionPage = ActionPage & {
|
|
565
643
|
__typename?: 'PublicActionPage';
|
|
@@ -568,7 +646,9 @@ export declare type PublicActionPage = ActionPage & {
|
|
|
568
646
|
locale: Scalars['String'];
|
|
569
647
|
/** Name where the widget is hosted */
|
|
570
648
|
name: Scalars['String'];
|
|
571
|
-
/**
|
|
649
|
+
/** Thank you email templated of this Action Page */
|
|
650
|
+
thankYouTemplate: Maybe<Scalars['String']>;
|
|
651
|
+
/** A reference to thank you email template of this ActionPage */
|
|
572
652
|
thankYouTemplateRef: Maybe<Scalars['String']>;
|
|
573
653
|
/** Is live? */
|
|
574
654
|
live: Scalars['Boolean'];
|
|
@@ -606,6 +686,7 @@ export declare type PublicCampaign = Campaign & {
|
|
|
606
686
|
org: Org;
|
|
607
687
|
/** Fetch public actions */
|
|
608
688
|
actions: PublicActionsResult;
|
|
689
|
+
targets: Maybe<Array<Maybe<Target>>>;
|
|
609
690
|
};
|
|
610
691
|
export declare type PublicCampaignActionsArgs = {
|
|
611
692
|
actionType: Scalars['String'];
|
|
@@ -620,6 +701,14 @@ export declare type PublicOrg = Org & {
|
|
|
620
701
|
/** config */
|
|
621
702
|
config: Scalars['Json'];
|
|
622
703
|
};
|
|
704
|
+
export declare type PublicTarget = Target & {
|
|
705
|
+
__typename?: 'PublicTarget';
|
|
706
|
+
id: Scalars['String'];
|
|
707
|
+
name: Scalars['String'];
|
|
708
|
+
externalId: Scalars['String'];
|
|
709
|
+
area: Maybe<Scalars['String']>;
|
|
710
|
+
fields: Maybe<Scalars['Json']>;
|
|
711
|
+
};
|
|
623
712
|
export declare type RootMutationType = {
|
|
624
713
|
__typename?: 'RootMutationType';
|
|
625
714
|
/**
|
|
@@ -686,9 +775,11 @@ export declare type RootMutationType = {
|
|
|
686
775
|
acceptOrgConfirm: ConfirmResult;
|
|
687
776
|
/** Reject a confirm on behalf of organisation. */
|
|
688
777
|
rejectOrgConfirm: ConfirmResult;
|
|
778
|
+
/** Accept a confirm by user */
|
|
689
779
|
acceptUserConfirm: ConfirmResult;
|
|
780
|
+
/** Reject a confirm by user */
|
|
690
781
|
rejectUserConfirm: ConfirmResult;
|
|
691
|
-
upsertTargets: Array<Maybe<
|
|
782
|
+
upsertTargets: Array<Maybe<PrivateTarget>>;
|
|
692
783
|
};
|
|
693
784
|
export declare type RootMutationTypeUpsertCampaignArgs = {
|
|
694
785
|
orgName: Scalars['String'];
|
|
@@ -710,7 +801,8 @@ export declare type RootMutationTypeDeleteCampaignArgs = {
|
|
|
710
801
|
externalId?: Maybe<Scalars['Int']>;
|
|
711
802
|
};
|
|
712
803
|
export declare type RootMutationTypeUpdateActionPageArgs = {
|
|
713
|
-
id
|
|
804
|
+
id?: Maybe<Scalars['Int']>;
|
|
805
|
+
name?: Maybe<Scalars['String']>;
|
|
714
806
|
input: ActionPageInput;
|
|
715
807
|
};
|
|
716
808
|
export declare type RootMutationTypeCopyActionPageArgs = {
|
|
@@ -791,13 +883,15 @@ export declare type RootMutationTypeUpdateOrgProcessingArgs = {
|
|
|
791
883
|
name: Scalars['String'];
|
|
792
884
|
emailBackend?: Maybe<ServiceName>;
|
|
793
885
|
emailFrom?: Maybe<Scalars['String']>;
|
|
886
|
+
supporterConfirm?: Maybe<Scalars['Boolean']>;
|
|
887
|
+
supporterConfirmTemplate?: Maybe<Scalars['String']>;
|
|
888
|
+
doiThankYou?: Maybe<Scalars['Boolean']>;
|
|
794
889
|
customSupporterConfirm?: Maybe<Scalars['Boolean']>;
|
|
795
890
|
customActionConfirm?: Maybe<Scalars['Boolean']>;
|
|
796
891
|
customActionDeliver?: Maybe<Scalars['Boolean']>;
|
|
797
892
|
sqsDeliver?: Maybe<Scalars['Boolean']>;
|
|
798
893
|
eventBackend?: Maybe<ServiceName>;
|
|
799
894
|
eventProcessing?: Maybe<Scalars['Boolean']>;
|
|
800
|
-
confirmProcessing?: Maybe<Scalars['Boolean']>;
|
|
801
895
|
};
|
|
802
896
|
export declare type RootMutationTypeJoinOrgArgs = {
|
|
803
897
|
name: Scalars['String'];
|
|
@@ -851,8 +945,9 @@ export declare type RootMutationTypeRejectUserConfirmArgs = {
|
|
|
851
945
|
confirm: ConfirmInput;
|
|
852
946
|
};
|
|
853
947
|
export declare type RootMutationTypeUpsertTargetsArgs = {
|
|
854
|
-
targets: Array<
|
|
948
|
+
targets: Array<TargetInput>;
|
|
855
949
|
campaignId: Scalars['Int'];
|
|
950
|
+
replace?: Maybe<Scalars['Boolean']>;
|
|
856
951
|
};
|
|
857
952
|
export declare type RootQueryType = {
|
|
858
953
|
__typename?: 'RootQueryType';
|
|
@@ -864,10 +959,10 @@ export declare type RootQueryType = {
|
|
|
864
959
|
actionPage: ActionPage;
|
|
865
960
|
exportActions: Array<Maybe<Action>>;
|
|
866
961
|
currentUser: User;
|
|
962
|
+
/** Select users from this instnace. Requires a manage users admin permission. */
|
|
867
963
|
users: Array<User>;
|
|
868
964
|
/** Organization api (authenticated) */
|
|
869
965
|
org: PrivateOrg;
|
|
870
|
-
targets: Array<Maybe<Target>>;
|
|
871
966
|
};
|
|
872
967
|
export declare type RootQueryTypeCampaignsArgs = {
|
|
873
968
|
title?: Maybe<Scalars['String']>;
|
|
@@ -892,6 +987,8 @@ export declare type RootQueryTypeExportActionsArgs = {
|
|
|
892
987
|
after?: Maybe<Scalars['DateTime']>;
|
|
893
988
|
limit?: Maybe<Scalars['Int']>;
|
|
894
989
|
onlyOptIn?: Maybe<Scalars['Boolean']>;
|
|
990
|
+
onlyDoubleOptIn?: Maybe<Scalars['Boolean']>;
|
|
991
|
+
includeTesting?: Maybe<Scalars['Boolean']>;
|
|
895
992
|
};
|
|
896
993
|
export declare type RootQueryTypeUsersArgs = {
|
|
897
994
|
select?: Maybe<SelectUser>;
|
|
@@ -899,9 +996,6 @@ export declare type RootQueryTypeUsersArgs = {
|
|
|
899
996
|
export declare type RootQueryTypeOrgArgs = {
|
|
900
997
|
name: Scalars['String'];
|
|
901
998
|
};
|
|
902
|
-
export declare type RootQueryTypeTargetsArgs = {
|
|
903
|
-
campaignId: Scalars['Int'];
|
|
904
|
-
};
|
|
905
999
|
export declare type RootSubscriptionType = {
|
|
906
1000
|
__typename?: 'RootSubscriptionType';
|
|
907
1001
|
actionPageUpserted: ActionPage;
|
|
@@ -974,26 +1068,27 @@ export declare type StripeSubscriptionInput = {
|
|
|
974
1068
|
frequencyUnit: DonationFrequencyUnit;
|
|
975
1069
|
};
|
|
976
1070
|
export declare type Target = {
|
|
977
|
-
__typename?: 'Target';
|
|
978
1071
|
id: Scalars['String'];
|
|
979
1072
|
name: Scalars['String'];
|
|
1073
|
+
externalId: Scalars['String'];
|
|
980
1074
|
area: Maybe<Scalars['String']>;
|
|
981
1075
|
fields: Maybe<Scalars['Json']>;
|
|
982
|
-
emails: Array<Maybe<TargetEmail>>;
|
|
983
1076
|
};
|
|
984
1077
|
export declare type TargetEmail = {
|
|
985
1078
|
__typename?: 'TargetEmail';
|
|
986
1079
|
email: Scalars['String'];
|
|
1080
|
+
emailStatus: EmailStatus;
|
|
1081
|
+
error: Maybe<Scalars['String']>;
|
|
987
1082
|
};
|
|
988
1083
|
export declare type TargetEmailInput = {
|
|
989
1084
|
email: Scalars['String'];
|
|
990
1085
|
};
|
|
991
1086
|
export declare type TargetInput = {
|
|
992
|
-
name
|
|
1087
|
+
name?: Maybe<Scalars['String']>;
|
|
993
1088
|
area?: Maybe<Scalars['String']>;
|
|
994
1089
|
externalId: Scalars['String'];
|
|
995
1090
|
fields?: Maybe<Scalars['Json']>;
|
|
996
|
-
emails
|
|
1091
|
+
emails?: Maybe<Array<TargetEmailInput>>;
|
|
997
1092
|
};
|
|
998
1093
|
/** Tracking codes */
|
|
999
1094
|
export declare type Tracking = {
|
|
@@ -1165,6 +1260,13 @@ export declare const RejectLaunchRequestDocument: DocumentNode<RejectLaunchReque
|
|
|
1165
1260
|
org: Scalars['String'];
|
|
1166
1261
|
confirm: ConfirmInput;
|
|
1167
1262
|
}>>;
|
|
1263
|
+
export declare const ActionPageExtraDocument: DocumentNode<ActionPageExtra, Exact<{
|
|
1264
|
+
id: Scalars['Int'];
|
|
1265
|
+
}>>;
|
|
1266
|
+
export declare const ActionPageSetExtraDocument: DocumentNode<ActionPageSetExtra, Exact<{
|
|
1267
|
+
id: Scalars['Int'];
|
|
1268
|
+
extra: Scalars['Int'];
|
|
1269
|
+
}>>;
|
|
1168
1270
|
export declare type CampaignOverview = ({
|
|
1169
1271
|
__typename?: 'PrivateCampaign';
|
|
1170
1272
|
} & {
|
|
@@ -1869,10 +1971,10 @@ declare type ActionPageIds_PublicActionPage_ = ({
|
|
|
1869
1971
|
export declare type ActionPageIds = ActionPageIds_PrivateActionPage_ | ActionPageIds_PublicActionPage_;
|
|
1870
1972
|
declare type ActionPageFields_PrivateActionPage_ = ({
|
|
1871
1973
|
__typename: 'PrivateActionPage';
|
|
1872
|
-
} & Pick<PrivateActionPage, 'id' | 'name' | 'locale' | 'config' | 'live' | 'thankYouTemplateRef'>);
|
|
1974
|
+
} & Pick<PrivateActionPage, 'id' | 'name' | 'locale' | 'config' | 'live' | 'thankYouTemplate' | 'thankYouTemplateRef'>);
|
|
1873
1975
|
declare type ActionPageFields_PublicActionPage_ = ({
|
|
1874
1976
|
__typename: 'PublicActionPage';
|
|
1875
|
-
} & Pick<PublicActionPage, 'id' | 'name' | 'locale' | 'config' | 'live' | 'thankYouTemplateRef'>);
|
|
1977
|
+
} & Pick<PublicActionPage, 'id' | 'name' | 'locale' | 'config' | 'live' | 'thankYouTemplate' | 'thankYouTemplateRef'>);
|
|
1876
1978
|
export declare type ActionPageFields = ActionPageFields_PrivateActionPage_ | ActionPageFields_PublicActionPage_;
|
|
1877
1979
|
export declare type ActionPagePrivateFields = ({
|
|
1878
1980
|
__typename: 'PrivateActionPage';
|
|
@@ -1889,7 +1991,7 @@ export declare type OrgPrivateFields = ({
|
|
|
1889
1991
|
} & Pick<PrivateOrg, 'config'> & {
|
|
1890
1992
|
personalData: ({
|
|
1891
1993
|
__typename?: 'PersonalData';
|
|
1892
|
-
} & Pick<PersonalData, 'contactSchema' | '
|
|
1994
|
+
} & Pick<PersonalData, 'contactSchema' | 'supporterConfirm' | 'supporterConfirmTemplate'>);
|
|
1893
1995
|
});
|
|
1894
1996
|
export declare type KeyFields = ({
|
|
1895
1997
|
__typename?: 'Key';
|
|
@@ -1918,7 +2020,32 @@ export declare type ActionExport = ({
|
|
|
1918
2020
|
} & Pick<Tracking, 'source' | 'medium' | 'campaign' | 'content'>)>;
|
|
1919
2021
|
privacy: ({
|
|
1920
2022
|
__typename?: 'Consent';
|
|
1921
|
-
} & Pick<Consent, 'optIn' | 'givenAt'>);
|
|
2023
|
+
} & Pick<Consent, 'optIn' | 'givenAt' | 'emailStatus' | 'emailStatusChanged'>);
|
|
2024
|
+
});
|
|
2025
|
+
export declare type ActionPageExtraVariables = Exact<{
|
|
2026
|
+
id: Scalars['Int'];
|
|
2027
|
+
}>;
|
|
2028
|
+
export declare type ActionPageExtra = ({
|
|
2029
|
+
__typename?: 'RootQueryType';
|
|
2030
|
+
} & {
|
|
2031
|
+
actionPage: ({
|
|
2032
|
+
__typename?: 'PrivateActionPage';
|
|
2033
|
+
} & Pick<PrivateActionPage, 'extraSupporters'>) | {
|
|
2034
|
+
__typename?: 'PublicActionPage';
|
|
2035
|
+
};
|
|
2036
|
+
});
|
|
2037
|
+
export declare type ActionPageSetExtraVariables = Exact<{
|
|
2038
|
+
id: Scalars['Int'];
|
|
2039
|
+
extra: Scalars['Int'];
|
|
2040
|
+
}>;
|
|
2041
|
+
export declare type ActionPageSetExtra = ({
|
|
2042
|
+
__typename?: 'RootMutationType';
|
|
2043
|
+
} & {
|
|
2044
|
+
updateActionPage: ({
|
|
2045
|
+
__typename: 'PrivateActionPage';
|
|
2046
|
+
} & Pick<PrivateActionPage, 'extraSupporters'>) | {
|
|
2047
|
+
__typename: 'PublicActionPage';
|
|
2048
|
+
};
|
|
1922
2049
|
});
|
|
1923
2050
|
export declare type ObjectFieldTypes = {
|
|
1924
2051
|
[key: string]: {
|