@proca/api
Advanced tools
Comparing version 0.2.0-beta.9 to 0.2.0-beta.10
export * as widget from './queries/widget'; | ||
export * as admin from './queries/admin'; | ||
export { basicAuth, tokenAuth, BasicAuth, TokenAuth } from './auth'; | ||
export { link, httpLink, request, subscribe } from './client'; | ||
export * as types from './types'; | ||
export { basicAuth, tokenAuth, BasicAuth, TokenAuth, AuthHeader } from './auth'; | ||
export { link, // advanced link that can do both get and subscribe requests | ||
httpLink, // simple link that can do get requests | ||
request, // run get request | ||
subscribe, // run subscribe request | ||
ExecutionErrors } from './client'; |
@@ -22,8 +22,11 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.types = exports.subscribe = exports.request = exports.httpLink = exports.link = exports.tokenAuth = exports.basicAuth = exports.admin = exports.widget = void 0; | ||
exports.subscribe = exports.request = exports.httpLink = exports.link = exports.tokenAuth = exports.basicAuth = exports.types = exports.admin = exports.widget = void 0; | ||
exports.widget = __importStar(require("./queries/widget")); | ||
exports.admin = __importStar(require("./queries/admin")); | ||
exports.types = __importStar(require("./types")); | ||
// Authentication primitives | ||
var auth_1 = require("./auth"); | ||
Object.defineProperty(exports, "basicAuth", { enumerable: true, get: function () { return auth_1.basicAuth; } }); | ||
Object.defineProperty(exports, "tokenAuth", { enumerable: true, get: function () { return auth_1.tokenAuth; } }); | ||
// Api operation primitives | ||
var client_1 = require("./client"); | ||
@@ -34,3 +37,2 @@ Object.defineProperty(exports, "link", { enumerable: true, get: function () { return client_1.link; } }); | ||
Object.defineProperty(exports, "subscribe", { enumerable: true, get: function () { return client_1.subscribe; } }); | ||
exports.types = __importStar(require("./types")); | ||
//# sourceMappingURL=index.js.map |
@@ -7,2 +7,3 @@ import * as Types from '../types'; | ||
export declare const ListActionPagesDocument: DocumentNode<ListActionPages, ListActionPagesVariables>; | ||
export declare const ListActionPagesByCampaignDocument: DocumentNode<ListActionPagesByCampaign, ListActionPagesByCampaignVariables>; | ||
export declare const ExportCampaignActionsDocument: DocumentNode<ExportCampaignActions, ExportCampaignActionsVariables>; | ||
@@ -18,2 +19,3 @@ export declare const ExportOrgActionsDocument: DocumentNode<ExportOrgActions, ExportOrgActionsVariables>; | ||
export declare const CurrentUserOrgsDocument: DocumentNode<CurrentUserOrgs, CurrentUserOrgsVariables>; | ||
export declare const DashOrgOverviewDocument: DocumentNode<DashOrgOverview, DashOrgOverviewVariables>; | ||
export declare type ListCampaignsVariables = Types.Exact<{ | ||
@@ -23,3 +25,3 @@ org: Types.Scalars['String']; | ||
export declare type ListCampaigns = { | ||
org: Types.Maybe<({ | ||
org: ({ | ||
__typename?: 'Org'; | ||
@@ -30,7 +32,7 @@ } & { | ||
} & Pick<Types.Campaign, 'id' | 'externalId' | 'name' | 'title'> & { | ||
org: Types.Maybe<({ | ||
org: ({ | ||
__typename?: 'PublicOrg'; | ||
} & Pick<Types.PublicOrg, 'name' | 'title'>)>; | ||
} & Pick<Types.PublicOrg, 'name' | 'title'>); | ||
})>; | ||
})>; | ||
}); | ||
}; | ||
@@ -42,17 +44,17 @@ export declare type GetCampaignVariables = Types.Exact<{ | ||
export declare type GetCampaign = { | ||
org: Types.Maybe<({ | ||
org: ({ | ||
__typename?: 'Org'; | ||
} & { | ||
campaign: Types.Maybe<({ | ||
campaign: ({ | ||
__typename?: 'Campaign'; | ||
} & Pick<Types.Campaign, 'id' | 'externalId' | 'name' | 'title'> & { | ||
stats: Types.Maybe<({ | ||
stats: ({ | ||
__typename?: 'CampaignStats'; | ||
} & Pick<Types.CampaignStats, 'supporterCount'> & { | ||
actionCount: Types.Maybe<Array<({ | ||
actionCount: Array<({ | ||
__typename?: 'ActionTypeCount'; | ||
} & Pick<Types.ActionTypeCount, 'actionType' | 'count'>)>>; | ||
})>; | ||
})>; | ||
})>; | ||
} & Pick<Types.ActionTypeCount, 'actionType' | 'count'>)>; | ||
}); | ||
}); | ||
}); | ||
}; | ||
@@ -65,3 +67,3 @@ export declare type GetActionPageVariables = Types.Exact<{ | ||
export declare type GetActionPage = { | ||
org: Types.Maybe<({ | ||
org: ({ | ||
__typename?: 'Org'; | ||
@@ -72,7 +74,7 @@ } & Pick<Types.Org, 'name' | 'title'> & { | ||
} & Pick<Types.ActionPage, 'id' | 'name' | 'locale' | 'extraSupporters' | 'thankYouTemplateRef' | 'journey' | 'config'> & { | ||
campaign: Types.Maybe<({ | ||
campaign?: Types.Maybe<({ | ||
__typename?: 'Campaign'; | ||
} & Pick<Types.Campaign, 'id' | 'name' | 'title' | 'externalId'>)>; | ||
}); | ||
})>; | ||
}); | ||
}; | ||
@@ -83,3 +85,3 @@ export declare type ListActionPagesVariables = Types.Exact<{ | ||
export declare type ListActionPages = { | ||
org: Types.Maybe<({ | ||
org: ({ | ||
__typename?: 'Org'; | ||
@@ -90,8 +92,25 @@ } & Pick<Types.Org, 'name' | 'title'> & { | ||
} & Pick<Types.ActionPage, 'id' | 'name' | 'locale' | 'extraSupporters'> & { | ||
campaign: Types.Maybe<({ | ||
campaign?: Types.Maybe<({ | ||
__typename?: 'Campaign'; | ||
} & Pick<Types.Campaign, 'name' | 'id' | 'externalId'>)>; | ||
})>; | ||
})>; | ||
}); | ||
}; | ||
export declare type ListActionPagesByCampaignVariables = Types.Exact<{ | ||
org: Types.Scalars['String']; | ||
campaignId: Types.Scalars['Int']; | ||
}>; | ||
export declare type ListActionPagesByCampaign = { | ||
org: ({ | ||
__typename?: 'Org'; | ||
} & Pick<Types.Org, 'name' | 'title'> & { | ||
actionPages: Array<({ | ||
__typename?: 'ActionPage'; | ||
} & Pick<Types.ActionPage, 'id' | 'name' | 'locale' | 'extraSupporters'> & { | ||
campaign?: Types.Maybe<({ | ||
__typename?: 'Campaign'; | ||
} & Pick<Types.Campaign, 'name' | 'id' | 'externalId'>)>; | ||
})>; | ||
}); | ||
}; | ||
export declare type ExportCampaignActionsVariables = Types.Exact<{ | ||
@@ -107,3 +126,3 @@ org: Types.Scalars['String']; | ||
export declare type ExportCampaignActions = { | ||
exportActions: Types.Maybe<Array<Types.Maybe<({ | ||
exportActions: Array<Types.Maybe<({ | ||
__typename?: 'Action'; | ||
@@ -114,6 +133,6 @@ } & Pick<Types.Action, 'actionId' | 'actionType' | 'createdAt'> & { | ||
} & Pick<Types.Contact, 'contactRef' | 'payload' | 'nonce'> & { | ||
publicKey: Types.Maybe<({ | ||
publicKey?: Types.Maybe<({ | ||
__typename?: 'Key'; | ||
} & Pick<Types.Key, 'id' | 'public'>)>; | ||
signKey: Types.Maybe<({ | ||
signKey?: Types.Maybe<({ | ||
__typename?: 'Key'; | ||
@@ -125,3 +144,3 @@ } & Pick<Types.Key, 'id' | 'public'>)>; | ||
} & Pick<Types.CustomField, 'key' | 'value'>)>; | ||
tracking: Types.Maybe<({ | ||
tracking?: Types.Maybe<({ | ||
__typename?: 'Tracking'; | ||
@@ -135,3 +154,3 @@ } & Pick<Types.Tracking, 'source' | 'medium' | 'campaign' | 'content'>)>; | ||
} & Pick<Types.Consent, 'optIn'>); | ||
})>>>; | ||
})>>; | ||
}; | ||
@@ -146,3 +165,3 @@ export declare type ExportOrgActionsVariables = Types.Exact<{ | ||
export declare type ExportOrgActions = { | ||
exportActions: Types.Maybe<Array<Types.Maybe<({ | ||
exportActions: Array<Types.Maybe<({ | ||
__typename?: 'Action'; | ||
@@ -153,6 +172,6 @@ } & Pick<Types.Action, 'actionId' | 'actionType' | 'createdAt'> & { | ||
} & Pick<Types.Contact, 'contactRef' | 'payload' | 'nonce'> & { | ||
publicKey: Types.Maybe<({ | ||
publicKey?: Types.Maybe<({ | ||
__typename?: 'Key'; | ||
} & Pick<Types.Key, 'id' | 'public'>)>; | ||
signKey: Types.Maybe<({ | ||
signKey?: Types.Maybe<({ | ||
__typename?: 'Key'; | ||
@@ -164,3 +183,3 @@ } & Pick<Types.Key, 'id' | 'public'>)>; | ||
} & Pick<Types.CustomField, 'key' | 'value'>)>; | ||
tracking: Types.Maybe<({ | ||
tracking?: Types.Maybe<({ | ||
__typename?: 'Tracking'; | ||
@@ -177,3 +196,3 @@ } & Pick<Types.Tracking, 'source' | 'medium' | 'campaign' | 'content'>)>; | ||
} & Pick<Types.Consent, 'optIn'>); | ||
})>>>; | ||
})>>; | ||
}; | ||
@@ -185,5 +204,5 @@ export declare type UpdateActionPageVariables = Types.Exact<{ | ||
export declare type UpdateActionPage = { | ||
updateActionPage: Types.Maybe<({ | ||
updateActionPage: ({ | ||
__typename?: 'ActionPage'; | ||
} & Pick<Types.ActionPage, 'id'>)>; | ||
} & Pick<Types.ActionPage, 'id'>); | ||
}; | ||
@@ -195,5 +214,5 @@ export declare type UpsertCampaignVariables = Types.Exact<{ | ||
export declare type UpsertCampaign = { | ||
upsertCampaign: Types.Maybe<({ | ||
upsertCampaign: ({ | ||
__typename?: 'Campaign'; | ||
} & Pick<Types.Campaign, 'id'>)>; | ||
} & Pick<Types.Campaign, 'id'>); | ||
}; | ||
@@ -204,3 +223,3 @@ export declare type ListKeysVariables = Types.Exact<{ | ||
export declare type ListKeys = { | ||
org: Types.Maybe<({ | ||
org: ({ | ||
__typename?: 'Org'; | ||
@@ -211,3 +230,3 @@ } & { | ||
} & Pick<Types.Key, 'id' | 'name' | 'public' | 'active' | 'expired' | 'expiredAt'>)>; | ||
})>; | ||
}); | ||
}; | ||
@@ -219,5 +238,5 @@ export declare type GenerateKeyVariables = Types.Exact<{ | ||
export declare type GenerateKey = { | ||
generateKey: Types.Maybe<({ | ||
generateKey: ({ | ||
__typename?: 'KeyWithPrivate'; | ||
} & Pick<Types.KeyWithPrivate, 'id' | 'name' | 'public' | 'private' | 'active' | 'expired' | 'expiredAt'>)>; | ||
} & Pick<Types.KeyWithPrivate, 'id' | 'name' | 'public' | 'private' | 'active' | 'expired' | 'expiredAt'>); | ||
}; | ||
@@ -229,5 +248,5 @@ export declare type ActivateKeyVariables = Types.Exact<{ | ||
export declare type ActivateKey = { | ||
activateKey: Types.Maybe<({ | ||
activateKey: ({ | ||
__typename?: 'ActivateKeyResult'; | ||
} & Pick<Types.ActivateKeyResult, 'status'>)>; | ||
} & Pick<Types.ActivateKeyResult, 'status'>); | ||
}; | ||
@@ -238,5 +257,5 @@ export declare type AddOrgVariables = Types.Exact<{ | ||
export declare type AddOrg = { | ||
addOrg: Types.Maybe<({ | ||
addOrg: ({ | ||
__typename?: 'Org'; | ||
} & Pick<Types.Org, 'id' | 'name'>)>; | ||
} & Pick<Types.Org, 'id' | 'name'>); | ||
}; | ||
@@ -247,12 +266,12 @@ export declare type ActionPageUpsertedVariables = Types.Exact<{ | ||
export declare type ActionPageUpserted = { | ||
actionPageUpserted: Types.Maybe<({ | ||
actionPageUpserted: ({ | ||
__typename?: 'PublicActionPage'; | ||
} & Pick<Types.PublicActionPage, 'id' | 'name' | 'locale' | 'journey' | 'config'> & { | ||
campaign: Types.Maybe<({ | ||
campaign: ({ | ||
__typename?: 'Campaign'; | ||
} & Pick<Types.Campaign, 'id' | 'name' | 'title' | 'externalId'>)>; | ||
org: Types.Maybe<({ | ||
} & Pick<Types.Campaign, 'id' | 'name' | 'title' | 'externalId'>); | ||
org: ({ | ||
__typename?: 'PublicOrg'; | ||
} & Pick<Types.PublicOrg, 'title'>)>; | ||
})>; | ||
} & Pick<Types.PublicOrg, 'title'>); | ||
}); | ||
}; | ||
@@ -263,3 +282,3 @@ export declare type CurrentUserOrgsVariables = Types.Exact<{ | ||
export declare type CurrentUserOrgs = { | ||
currentUser: Types.Maybe<({ | ||
currentUser: ({ | ||
__typename?: 'User'; | ||
@@ -274,3 +293,22 @@ } & Pick<Types.User, 'id' | 'email'> & { | ||
})>; | ||
})>; | ||
}); | ||
}; | ||
export declare type DashOrgOverviewVariables = Types.Exact<{ | ||
org: Types.Scalars['String']; | ||
}>; | ||
export declare type DashOrgOverview = { | ||
org: ({ | ||
__typename?: 'Org'; | ||
} & Pick<Types.Org, 'id' | 'name' | 'title'> & { | ||
campaigns: Array<({ | ||
__typename?: 'Campaign'; | ||
} & Pick<Types.Campaign, 'id' | 'externalId' | 'name' | 'title' | 'config'> & { | ||
org: ({ | ||
__typename?: 'PublicOrg'; | ||
} & Pick<Types.PublicOrg, 'name' | 'title'>); | ||
stats: ({ | ||
__typename?: 'CampaignStats'; | ||
} & Pick<Types.CampaignStats, 'supporterCount'>); | ||
})>; | ||
}); | ||
}; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.CurrentUserOrgsDocument = exports.ActionPageUpsertedDocument = exports.AddOrgDocument = exports.ActivateKeyDocument = exports.GenerateKeyDocument = exports.ListKeysDocument = exports.UpsertCampaignDocument = exports.UpdateActionPageDocument = exports.ExportOrgActionsDocument = exports.ExportCampaignActionsDocument = exports.ListActionPagesDocument = exports.GetActionPageDocument = exports.GetCampaignDocument = exports.ListCampaignsDocument = void 0; | ||
exports.DashOrgOverviewDocument = exports.CurrentUserOrgsDocument = exports.ActionPageUpsertedDocument = exports.AddOrgDocument = exports.ActivateKeyDocument = exports.GenerateKeyDocument = exports.ListKeysDocument = exports.UpsertCampaignDocument = exports.UpdateActionPageDocument = exports.ExportOrgActionsDocument = exports.ExportCampaignActionsDocument = exports.ListActionPagesByCampaignDocument = exports.ListActionPagesDocument = exports.GetActionPageDocument = exports.GetCampaignDocument = exports.ListCampaignsDocument = void 0; | ||
exports.ListCampaignsDocument = { "kind": "Document", "definitions": [{ "kind": "OperationDefinition", "operation": "query", "name": { "kind": "Name", "value": "ListCampaigns" }, "variableDefinitions": [{ "kind": "VariableDefinition", "variable": { "kind": "Variable", "name": { "kind": "Name", "value": "org" } }, "type": { "kind": "NonNullType", "type": { "kind": "NamedType", "name": { "kind": "Name", "value": "String" } } } }], "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "org" }, "arguments": [{ "kind": "Argument", "name": { "kind": "Name", "value": "name" }, "value": { "kind": "Variable", "name": { "kind": "Name", "value": "org" } } }], "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "campaigns" }, "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "id" } }, { "kind": "Field", "name": { "kind": "Name", "value": "externalId" } }, { "kind": "Field", "name": { "kind": "Name", "value": "name" } }, { "kind": "Field", "name": { "kind": "Name", "value": "title" } }, { "kind": "Field", "name": { "kind": "Name", "value": "org" }, "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "name" } }, { "kind": "Field", "name": { "kind": "Name", "value": "title" } }] } }] } }] } }] } }] }; | ||
@@ -8,2 +8,3 @@ exports.GetCampaignDocument = { "kind": "Document", "definitions": [{ "kind": "OperationDefinition", "operation": "query", "name": { "kind": "Name", "value": "GetCampaign" }, "variableDefinitions": [{ "kind": "VariableDefinition", "variable": { "kind": "Variable", "name": { "kind": "Name", "value": "org" } }, "type": { "kind": "NonNullType", "type": { "kind": "NamedType", "name": { "kind": "Name", "value": "String" } } } }, { "kind": "VariableDefinition", "variable": { "kind": "Variable", "name": { "kind": "Name", "value": "id" } }, "type": { "kind": "NonNullType", "type": { "kind": "NamedType", "name": { "kind": "Name", "value": "Int" } } } }], "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "org" }, "arguments": [{ "kind": "Argument", "name": { "kind": "Name", "value": "name" }, "value": { "kind": "Variable", "name": { "kind": "Name", "value": "org" } } }], "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "campaign" }, "arguments": [{ "kind": "Argument", "name": { "kind": "Name", "value": "id" }, "value": { "kind": "Variable", "name": { "kind": "Name", "value": "id" } } }], "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "id" } }, { "kind": "Field", "name": { "kind": "Name", "value": "externalId" } }, { "kind": "Field", "name": { "kind": "Name", "value": "name" } }, { "kind": "Field", "name": { "kind": "Name", "value": "title" } }, { "kind": "Field", "name": { "kind": "Name", "value": "stats" }, "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "supporterCount" } }, { "kind": "Field", "name": { "kind": "Name", "value": "actionCount" }, "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "actionType" } }, { "kind": "Field", "name": { "kind": "Name", "value": "count" } }] } }] } }] } }] } }] } }] }; | ||
exports.ListActionPagesDocument = { "kind": "Document", "definitions": [{ "kind": "OperationDefinition", "operation": "query", "name": { "kind": "Name", "value": "ListActionPages" }, "variableDefinitions": [{ "kind": "VariableDefinition", "variable": { "kind": "Variable", "name": { "kind": "Name", "value": "org" } }, "type": { "kind": "NonNullType", "type": { "kind": "NamedType", "name": { "kind": "Name", "value": "String" } } } }], "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "org" }, "arguments": [{ "kind": "Argument", "name": { "kind": "Name", "value": "name" }, "value": { "kind": "Variable", "name": { "kind": "Name", "value": "org" } } }], "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "name" } }, { "kind": "Field", "name": { "kind": "Name", "value": "title" } }, { "kind": "Field", "name": { "kind": "Name", "value": "actionPages" }, "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "id" } }, { "kind": "Field", "name": { "kind": "Name", "value": "name" } }, { "kind": "Field", "name": { "kind": "Name", "value": "locale" } }, { "kind": "Field", "name": { "kind": "Name", "value": "extraSupporters" } }, { "kind": "Field", "name": { "kind": "Name", "value": "campaign" }, "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "name" } }, { "kind": "Field", "name": { "kind": "Name", "value": "id" } }, { "kind": "Field", "name": { "kind": "Name", "value": "externalId" } }] } }] } }] } }] } }] }; | ||
exports.ListActionPagesByCampaignDocument = { "kind": "Document", "definitions": [{ "kind": "OperationDefinition", "operation": "query", "name": { "kind": "Name", "value": "ListActionPagesByCampaign" }, "variableDefinitions": [{ "kind": "VariableDefinition", "variable": { "kind": "Variable", "name": { "kind": "Name", "value": "org" } }, "type": { "kind": "NonNullType", "type": { "kind": "NamedType", "name": { "kind": "Name", "value": "String" } } } }, { "kind": "VariableDefinition", "variable": { "kind": "Variable", "name": { "kind": "Name", "value": "campaignId" } }, "type": { "kind": "NonNullType", "type": { "kind": "NamedType", "name": { "kind": "Name", "value": "Int" } } } }], "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "org" }, "arguments": [{ "kind": "Argument", "name": { "kind": "Name", "value": "name" }, "value": { "kind": "Variable", "name": { "kind": "Name", "value": "org" } } }], "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "name" } }, { "kind": "Field", "name": { "kind": "Name", "value": "title" } }, { "kind": "Field", "name": { "kind": "Name", "value": "actionPages" }, "arguments": [{ "kind": "Argument", "name": { "kind": "Name", "value": "select" }, "value": { "kind": "ObjectValue", "fields": [{ "kind": "ObjectField", "name": { "kind": "Name", "value": "campaignId" }, "value": { "kind": "Variable", "name": { "kind": "Name", "value": "campaignId" } } }] } }], "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "id" } }, { "kind": "Field", "name": { "kind": "Name", "value": "name" } }, { "kind": "Field", "name": { "kind": "Name", "value": "locale" } }, { "kind": "Field", "name": { "kind": "Name", "value": "extraSupporters" } }, { "kind": "Field", "name": { "kind": "Name", "value": "campaign" }, "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "name" } }, { "kind": "Field", "name": { "kind": "Name", "value": "id" } }, { "kind": "Field", "name": { "kind": "Name", "value": "externalId" } }] } }] } }] } }] } }] }; | ||
exports.ExportCampaignActionsDocument = { "kind": "Document", "definitions": [{ "kind": "OperationDefinition", "operation": "query", "name": { "kind": "Name", "value": "ExportCampaignActions" }, "variableDefinitions": [{ "kind": "VariableDefinition", "variable": { "kind": "Variable", "name": { "kind": "Name", "value": "org" } }, "type": { "kind": "NonNullType", "type": { "kind": "NamedType", "name": { "kind": "Name", "value": "String" } } } }, { "kind": "VariableDefinition", "variable": { "kind": "Variable", "name": { "kind": "Name", "value": "campaignId" } }, "type": { "kind": "NamedType", "name": { "kind": "Name", "value": "Int" } } }, { "kind": "VariableDefinition", "variable": { "kind": "Variable", "name": { "kind": "Name", "value": "campaignName" } }, "type": { "kind": "NamedType", "name": { "kind": "Name", "value": "String" } } }, { "kind": "VariableDefinition", "variable": { "kind": "Variable", "name": { "kind": "Name", "value": "start" } }, "type": { "kind": "NamedType", "name": { "kind": "Name", "value": "Int" } } }, { "kind": "VariableDefinition", "variable": { "kind": "Variable", "name": { "kind": "Name", "value": "after" } }, "type": { "kind": "NamedType", "name": { "kind": "Name", "value": "DateTime" } } }, { "kind": "VariableDefinition", "variable": { "kind": "Variable", "name": { "kind": "Name", "value": "limit" } }, "type": { "kind": "NamedType", "name": { "kind": "Name", "value": "Int" } } }, { "kind": "VariableDefinition", "variable": { "kind": "Variable", "name": { "kind": "Name", "value": "onlyOptIn" } }, "type": { "kind": "NamedType", "name": { "kind": "Name", "value": "Boolean" } } }], "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "exportActions" }, "arguments": [{ "kind": "Argument", "name": { "kind": "Name", "value": "orgName" }, "value": { "kind": "Variable", "name": { "kind": "Name", "value": "org" } } }, { "kind": "Argument", "name": { "kind": "Name", "value": "campaignId" }, "value": { "kind": "Variable", "name": { "kind": "Name", "value": "campaignId" } } }, { "kind": "Argument", "name": { "kind": "Name", "value": "campaignName" }, "value": { "kind": "Variable", "name": { "kind": "Name", "value": "campaignName" } } }, { "kind": "Argument", "name": { "kind": "Name", "value": "start" }, "value": { "kind": "Variable", "name": { "kind": "Name", "value": "start" } } }, { "kind": "Argument", "name": { "kind": "Name", "value": "after" }, "value": { "kind": "Variable", "name": { "kind": "Name", "value": "after" } } }, { "kind": "Argument", "name": { "kind": "Name", "value": "limit" }, "value": { "kind": "Variable", "name": { "kind": "Name", "value": "limit" } } }, { "kind": "Argument", "name": { "kind": "Name", "value": "onlyOptIn" }, "value": { "kind": "Variable", "name": { "kind": "Name", "value": "onlyOptIn" } } }], "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "actionId" } }, { "kind": "Field", "name": { "kind": "Name", "value": "actionType" } }, { "kind": "Field", "name": { "kind": "Name", "value": "createdAt" } }, { "kind": "Field", "name": { "kind": "Name", "value": "contact" }, "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "contactRef" } }, { "kind": "Field", "name": { "kind": "Name", "value": "payload" } }, { "kind": "Field", "name": { "kind": "Name", "value": "nonce" } }, { "kind": "Field", "name": { "kind": "Name", "value": "publicKey" }, "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "id" } }, { "kind": "Field", "name": { "kind": "Name", "value": "public" } }] } }, { "kind": "Field", "name": { "kind": "Name", "value": "signKey" }, "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "id" } }, { "kind": "Field", "name": { "kind": "Name", "value": "public" } }] } }] } }, { "kind": "Field", "name": { "kind": "Name", "value": "fields" }, "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "key" } }, { "kind": "Field", "name": { "kind": "Name", "value": "value" } }] } }, { "kind": "Field", "name": { "kind": "Name", "value": "tracking" }, "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "source" } }, { "kind": "Field", "name": { "kind": "Name", "value": "medium" } }, { "kind": "Field", "name": { "kind": "Name", "value": "campaign" } }, { "kind": "Field", "name": { "kind": "Name", "value": "content" } }] } }, { "kind": "Field", "name": { "kind": "Name", "value": "actionPage" }, "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "id" } }, { "kind": "Field", "name": { "kind": "Name", "value": "name" } }] } }, { "kind": "Field", "name": { "kind": "Name", "value": "privacy" }, "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "optIn" } }] } }] } }] } }] }; | ||
@@ -19,2 +20,3 @@ exports.ExportOrgActionsDocument = { "kind": "Document", "definitions": [{ "kind": "OperationDefinition", "operation": "query", "name": { "kind": "Name", "value": "ExportOrgActions" }, "variableDefinitions": [{ "kind": "VariableDefinition", "variable": { "kind": "Variable", "name": { "kind": "Name", "value": "org" } }, "type": { "kind": "NonNullType", "type": { "kind": "NamedType", "name": { "kind": "Name", "value": "String" } } } }, { "kind": "VariableDefinition", "variable": { "kind": "Variable", "name": { "kind": "Name", "value": "start" } }, "type": { "kind": "NamedType", "name": { "kind": "Name", "value": "Int" } } }, { "kind": "VariableDefinition", "variable": { "kind": "Variable", "name": { "kind": "Name", "value": "after" } }, "type": { "kind": "NamedType", "name": { "kind": "Name", "value": "DateTime" } } }, { "kind": "VariableDefinition", "variable": { "kind": "Variable", "name": { "kind": "Name", "value": "limit" } }, "type": { "kind": "NamedType", "name": { "kind": "Name", "value": "Int" } } }, { "kind": "VariableDefinition", "variable": { "kind": "Variable", "name": { "kind": "Name", "value": "onlyOptIn" } }, "type": { "kind": "NamedType", "name": { "kind": "Name", "value": "Boolean" } } }], "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "exportActions" }, "arguments": [{ "kind": "Argument", "name": { "kind": "Name", "value": "orgName" }, "value": { "kind": "Variable", "name": { "kind": "Name", "value": "org" } } }, { "kind": "Argument", "name": { "kind": "Name", "value": "start" }, "value": { "kind": "Variable", "name": { "kind": "Name", "value": "start" } } }, { "kind": "Argument", "name": { "kind": "Name", "value": "after" }, "value": { "kind": "Variable", "name": { "kind": "Name", "value": "after" } } }, { "kind": "Argument", "name": { "kind": "Name", "value": "limit" }, "value": { "kind": "Variable", "name": { "kind": "Name", "value": "limit" } } }, { "kind": "Argument", "name": { "kind": "Name", "value": "onlyOptIn" }, "value": { "kind": "Variable", "name": { "kind": "Name", "value": "onlyOptIn" } } }], "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "actionId" } }, { "kind": "Field", "name": { "kind": "Name", "value": "actionType" } }, { "kind": "Field", "name": { "kind": "Name", "value": "createdAt" } }, { "kind": "Field", "name": { "kind": "Name", "value": "contact" }, "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "contactRef" } }, { "kind": "Field", "name": { "kind": "Name", "value": "payload" } }, { "kind": "Field", "name": { "kind": "Name", "value": "nonce" } }, { "kind": "Field", "name": { "kind": "Name", "value": "publicKey" }, "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "id" } }, { "kind": "Field", "name": { "kind": "Name", "value": "public" } }] } }, { "kind": "Field", "name": { "kind": "Name", "value": "signKey" }, "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "id" } }, { "kind": "Field", "name": { "kind": "Name", "value": "public" } }] } }] } }, { "kind": "Field", "name": { "kind": "Name", "value": "fields" }, "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "key" } }, { "kind": "Field", "name": { "kind": "Name", "value": "value" } }] } }, { "kind": "Field", "name": { "kind": "Name", "value": "tracking" }, "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "source" } }, { "kind": "Field", "name": { "kind": "Name", "value": "medium" } }, { "kind": "Field", "name": { "kind": "Name", "value": "campaign" } }, { "kind": "Field", "name": { "kind": "Name", "value": "content" } }] } }, { "kind": "Field", "name": { "kind": "Name", "value": "actionPage" }, "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "id" } }, { "kind": "Field", "name": { "kind": "Name", "value": "name" } }] } }, { "kind": "Field", "name": { "kind": "Name", "value": "campaign" }, "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "name" } }, { "kind": "Field", "name": { "kind": "Name", "value": "externalId" } }] } }, { "kind": "Field", "name": { "kind": "Name", "value": "privacy" }, "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "optIn" } }] } }] } }] } }] }; | ||
exports.CurrentUserOrgsDocument = { "kind": "Document", "definitions": [{ "kind": "OperationDefinition", "operation": "query", "name": { "kind": "Name", "value": "CurrentUserOrgs" }, "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "currentUser" }, "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "id" } }, { "kind": "Field", "name": { "kind": "Name", "value": "email" } }, { "kind": "Field", "name": { "kind": "Name", "value": "roles" }, "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "role" } }, { "kind": "Field", "name": { "kind": "Name", "value": "org" }, "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "id" } }, { "kind": "Field", "name": { "kind": "Name", "value": "name" } }, { "kind": "Field", "name": { "kind": "Name", "value": "title" } }] } }] } }] } }] } }] }; | ||
exports.DashOrgOverviewDocument = { "kind": "Document", "definitions": [{ "kind": "OperationDefinition", "operation": "query", "name": { "kind": "Name", "value": "DashOrgOverview" }, "variableDefinitions": [{ "kind": "VariableDefinition", "variable": { "kind": "Variable", "name": { "kind": "Name", "value": "org" } }, "type": { "kind": "NonNullType", "type": { "kind": "NamedType", "name": { "kind": "Name", "value": "String" } } } }], "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "org" }, "arguments": [{ "kind": "Argument", "name": { "kind": "Name", "value": "name" }, "value": { "kind": "Variable", "name": { "kind": "Name", "value": "org" } } }], "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "id" } }, { "kind": "Field", "name": { "kind": "Name", "value": "name" } }, { "kind": "Field", "name": { "kind": "Name", "value": "title" } }, { "kind": "Field", "name": { "kind": "Name", "value": "campaigns" }, "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "id" } }, { "kind": "Field", "name": { "kind": "Name", "value": "externalId" } }, { "kind": "Field", "name": { "kind": "Name", "value": "name" } }, { "kind": "Field", "name": { "kind": "Name", "value": "title" } }, { "kind": "Field", "name": { "kind": "Name", "value": "org" }, "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "name" } }, { "kind": "Field", "name": { "kind": "Name", "value": "title" } }] } }, { "kind": "Field", "name": { "kind": "Name", "value": "config" } }, { "kind": "Field", "name": { "kind": "Name", "value": "stats" }, "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "supporterCount" } }] } }] } }] } }] } }] }; | ||
//# sourceMappingURL=admin.js.map |
@@ -13,23 +13,23 @@ import * as Types from '../types'; | ||
export declare type GetActionPage = { | ||
actionPage: Types.Maybe<({ | ||
actionPage: ({ | ||
__typename?: 'PublicActionPage'; | ||
} & Pick<Types.PublicActionPage, 'id' | 'config' | 'locale' | 'journey' | 'name'> & { | ||
org: Types.Maybe<({ | ||
org: ({ | ||
__typename?: 'PublicOrg'; | ||
} & Pick<Types.PublicOrg, 'name' | 'title'>)>; | ||
campaign: Types.Maybe<({ | ||
} & Pick<Types.PublicOrg, 'name' | 'title'>); | ||
campaign: ({ | ||
__typename?: 'Campaign'; | ||
} & Pick<Types.Campaign, 'id' | 'title' | 'name' | 'externalId'> & { | ||
stats: Types.Maybe<({ | ||
stats: ({ | ||
__typename?: 'CampaignStats'; | ||
} & Pick<Types.CampaignStats, 'supporterCount'> & { | ||
actionCount: Types.Maybe<Array<({ | ||
actionCount: Array<({ | ||
__typename?: 'ActionTypeCount'; | ||
} & Pick<Types.ActionTypeCount, 'actionType' | 'count'>)>>; | ||
})>; | ||
org: Types.Maybe<({ | ||
} & Pick<Types.ActionTypeCount, 'actionType' | 'count'>)>; | ||
}); | ||
org: ({ | ||
__typename?: 'PublicOrg'; | ||
} & Pick<Types.PublicOrg, 'name' | 'title'>)>; | ||
})>; | ||
})>; | ||
} & Pick<Types.PublicOrg, 'name' | 'title'>); | ||
}); | ||
}); | ||
}; | ||
@@ -41,17 +41,17 @@ export declare type GetStatsVariables = Types.Exact<{ | ||
export declare type GetStats = { | ||
actionPage: Types.Maybe<({ | ||
actionPage: ({ | ||
__typename?: 'PublicActionPage'; | ||
} & { | ||
campaign: Types.Maybe<({ | ||
campaign: ({ | ||
__typename?: 'Campaign'; | ||
} & { | ||
stats: Types.Maybe<({ | ||
stats: ({ | ||
__typename?: 'CampaignStats'; | ||
} & Pick<Types.CampaignStats, 'supporterCount'> & { | ||
actionCount: Types.Maybe<Array<({ | ||
actionCount: Array<({ | ||
__typename?: 'ActionTypeCount'; | ||
} & Pick<Types.ActionTypeCount, 'actionType' | 'count'>)>>; | ||
})>; | ||
})>; | ||
})>; | ||
} & Pick<Types.ActionTypeCount, 'actionType' | 'count'>)>; | ||
}); | ||
}); | ||
}); | ||
}; | ||
@@ -65,31 +65,31 @@ export declare type GetPublicResultVariables = Types.Exact<{ | ||
export declare type GetPublicResult = { | ||
actionPage: Types.Maybe<({ | ||
actionPage: ({ | ||
__typename?: 'PublicActionPage'; | ||
} & Pick<Types.PublicActionPage, 'config' | 'locale' | 'journey' | 'name'> & { | ||
campaign: Types.Maybe<({ | ||
campaign: ({ | ||
__typename?: 'Campaign'; | ||
} & Pick<Types.Campaign, 'title' | 'name' | 'externalId'> & { | ||
stats: Types.Maybe<({ | ||
stats: ({ | ||
__typename?: 'CampaignStats'; | ||
} & Pick<Types.CampaignStats, 'supporterCount'> & { | ||
actionCount: Types.Maybe<Array<({ | ||
actionCount: Array<({ | ||
__typename?: 'ActionTypeCount'; | ||
} & Pick<Types.ActionTypeCount, 'actionType' | 'count'>)>>; | ||
})>; | ||
actions: Types.Maybe<({ | ||
} & Pick<Types.ActionTypeCount, 'actionType' | 'count'>)>; | ||
}); | ||
actions: ({ | ||
__typename?: 'PublicActionsResult'; | ||
} & Pick<Types.PublicActionsResult, 'fieldKeys'> & { | ||
list: Types.Maybe<Array<Types.Maybe<({ | ||
list?: Types.Maybe<Array<Types.Maybe<({ | ||
__typename?: 'ActionCustomFields'; | ||
} & Pick<Types.ActionCustomFields, 'actionType' | 'insertedAt'> & { | ||
fields: Types.Maybe<Array<({ | ||
fields: Array<({ | ||
__typename?: 'CustomField'; | ||
} & Pick<Types.CustomField, 'key' | 'value'>)>>; | ||
} & Pick<Types.CustomField, 'key' | 'value'>)>; | ||
})>>>; | ||
})>; | ||
org: Types.Maybe<({ | ||
}); | ||
org: ({ | ||
__typename?: 'PublicOrg'; | ||
} & Pick<Types.PublicOrg, 'title'>)>; | ||
})>; | ||
})>; | ||
} & Pick<Types.PublicOrg, 'title'>); | ||
}); | ||
}); | ||
}; | ||
@@ -106,5 +106,5 @@ export declare type AddActionContactVariables = Types.Exact<{ | ||
export declare type AddActionContact = { | ||
addActionContact: Types.Maybe<({ | ||
addActionContact: ({ | ||
__typename?: 'ContactReference'; | ||
} & Pick<Types.ContactReference, 'contactRef' | 'firstName'>)>; | ||
} & Pick<Types.ContactReference, 'contactRef' | 'firstName'>); | ||
}; | ||
@@ -119,5 +119,5 @@ export declare type AddActionVariables = Types.Exact<{ | ||
export declare type AddAction = { | ||
addAction: Types.Maybe<({ | ||
addAction: ({ | ||
__typename?: 'ContactReference'; | ||
} & Pick<Types.ContactReference, 'contactRef' | 'firstName'>)>; | ||
} & Pick<Types.ContactReference, 'contactRef' | 'firstName'>); | ||
}; |
@@ -35,3 +35,3 @@ export declare type Maybe<T> = T | null; | ||
org: Org; | ||
role: Maybe<Scalars['String']>; | ||
role: Scalars['String']; | ||
}; | ||
@@ -46,5 +46,5 @@ export declare type SelectActionPage = { | ||
private: Scalars['String']; | ||
name: Maybe<Scalars['String']>; | ||
active: Maybe<Scalars['Boolean']>; | ||
expired: Maybe<Scalars['Boolean']>; | ||
name: Scalars['String']; | ||
active: Scalars['Boolean']; | ||
expired: Scalars['Boolean']; | ||
expiredAt: Maybe<Scalars['DateTime']>; | ||
@@ -100,3 +100,3 @@ }; | ||
__typename?: 'RootSubscriptionType'; | ||
actionPageUpserted: Maybe<PublicActionPage>; | ||
actionPageUpserted: PublicActionPage; | ||
}; | ||
@@ -148,3 +148,3 @@ export declare type RootSubscriptionTypeActionPageUpsertedArgs = { | ||
__typename?: 'ActivateKeyResult'; | ||
status: Maybe<Status>; | ||
status: Status; | ||
}; | ||
@@ -155,5 +155,5 @@ /** Campaign statistics */ | ||
/** Signature count (naive at the moment) */ | ||
supporterCount: Maybe<Scalars['Int']>; | ||
supporterCount: Scalars['Int']; | ||
/** Action counts for selected action types */ | ||
actionCount: Maybe<Array<ActionTypeCount>>; | ||
actionCount: Array<ActionTypeCount>; | ||
}; | ||
@@ -165,3 +165,3 @@ export declare type ActionCustomFields = { | ||
insertedAt: Scalars['DateTime']; | ||
fields: Maybe<Array<CustomField>>; | ||
fields: Array<CustomField>; | ||
}; | ||
@@ -190,7 +190,7 @@ export declare type Action = { | ||
*/ | ||
upsertCampaign: Maybe<Campaign>; | ||
upsertCampaign: Campaign; | ||
/** Deprecated, use upsert_campaign. */ | ||
declareCampaign: Maybe<Campaign>; | ||
declareCampaign: Campaign; | ||
/** Update an Action Page */ | ||
updateActionPage: Maybe<ActionPage>; | ||
updateActionPage: ActionPage; | ||
/** | ||
@@ -200,20 +200,20 @@ * Adds a new Action Page based on another Action Page. Intended to be used to | ||
*/ | ||
copyActionPage: Maybe<ActionPage>; | ||
copyActionPage: ActionPage; | ||
/** Adds an action referencing contact data via contactRef */ | ||
addAction: Maybe<ContactReference>; | ||
addAction: ContactReference; | ||
/** Adds an action with contact data */ | ||
addActionContact: Maybe<ContactReference>; | ||
addActionContact: ContactReference; | ||
/** Link actions with refs to contact with contact reference */ | ||
linkActions: Maybe<ContactReference>; | ||
linkActions: ContactReference; | ||
addOrgUser: Maybe<User>; | ||
deleteOrgUser: Maybe<DeleteUserResult>; | ||
updateOrgUser: Maybe<User>; | ||
addOrg: Maybe<Org>; | ||
deleteOrg: Maybe<Scalars['Boolean']>; | ||
updateOrg: Maybe<Org>; | ||
joinOrg: Maybe<JoinOrgResult>; | ||
generateKey: Maybe<KeyWithPrivate>; | ||
addKey: Maybe<Key>; | ||
addOrg: Org; | ||
deleteOrg: Scalars['Boolean']; | ||
updateOrg: Org; | ||
joinOrg: JoinOrgResult; | ||
generateKey: KeyWithPrivate; | ||
addKey: Key; | ||
/** A separate key activate operation, because you also need to add the key to receiving system before it is used */ | ||
activateKey: Maybe<ActivateKeyResult>; | ||
activateKey: ActivateKeyResult; | ||
}; | ||
@@ -299,9 +299,9 @@ export declare type RootMutationTypeUpsertCampaignArgs = { | ||
/** Get a list of campains */ | ||
campaigns: Maybe<Array<Maybe<Campaign>>>; | ||
campaigns: Array<Campaign>; | ||
/** Get action page */ | ||
actionPage: Maybe<PublicActionPage>; | ||
exportActions: Maybe<Array<Maybe<Action>>>; | ||
currentUser: Maybe<User>; | ||
actionPage: PublicActionPage; | ||
exportActions: Array<Maybe<Action>>; | ||
currentUser: User; | ||
/** Organization api (authenticated) */ | ||
org: Maybe<Org>; | ||
org: Org; | ||
}; | ||
@@ -332,13 +332,13 @@ export declare type RootQueryTypeCampaignsArgs = { | ||
/** Organisation short name */ | ||
name: Maybe<Scalars['String']>; | ||
name: Scalars['String']; | ||
/** Organisation title (human readable name) */ | ||
title: Maybe<Scalars['String']>; | ||
title: Scalars['String']; | ||
}; | ||
export declare type ActionPage = { | ||
__typename?: 'ActionPage'; | ||
id: Maybe<Scalars['Int']>; | ||
id: Scalars['Int']; | ||
/** Locale for the widget, in i18n format */ | ||
locale: Maybe<Scalars['String']>; | ||
locale: Scalars['String']; | ||
/** Name where the widget is hosted */ | ||
name: Maybe<Scalars['String']>; | ||
name: Scalars['String']; | ||
/** Reference to thank you email templated of this Action Page */ | ||
@@ -349,6 +349,6 @@ thankYouTemplateRef: Maybe<Scalars['String']>; | ||
/** Config JSON of this action page */ | ||
config: Maybe<Scalars['Json']>; | ||
config: Scalars['Json']; | ||
/** Extra supporters (added to supporters count) */ | ||
extraSupporters: Maybe<Scalars['Int']>; | ||
/** Campaign this widget belongs to */ | ||
extraSupporters: Scalars['Int']; | ||
/** Campaign this widget belongs to. Can be null for trashed action pages */ | ||
campaign: Maybe<Campaign>; | ||
@@ -359,20 +359,20 @@ org: Maybe<PublicOrg>; | ||
__typename?: 'PublicActionPage'; | ||
id: Maybe<Scalars['Int']>; | ||
id: Scalars['Int']; | ||
/** Locale for the widget, in i18n format */ | ||
locale: Maybe<Scalars['String']>; | ||
locale: Scalars['String']; | ||
/** Name where the widget is hosted */ | ||
name: Maybe<Scalars['String']>; | ||
name: Scalars['String']; | ||
/** Reference to thank you email templated of this Action Page */ | ||
thankYouTemplateRef: Maybe<Scalars['String']>; | ||
/** List of steps in journey */ | ||
journey: Maybe<Array<Scalars['String']>>; | ||
journey: Array<Scalars['String']>; | ||
/** Config JSON of this action page */ | ||
config: Maybe<Scalars['Json']>; | ||
/** Campaign this widget belongs to */ | ||
campaign: Maybe<Campaign>; | ||
org: Maybe<PublicOrg>; | ||
config: Scalars['Json']; | ||
/** Campaign this widget belongs to. Can't be null because trashed action pages are not public */ | ||
campaign: Campaign; | ||
org: PublicOrg; | ||
}; | ||
export declare type DeleteUserResult = { | ||
__typename?: 'DeleteUserResult'; | ||
status: Maybe<Status>; | ||
status: Status; | ||
}; | ||
@@ -444,16 +444,16 @@ /** Campaign input */ | ||
__typename?: 'Campaign'; | ||
id: Maybe<Scalars['Int']>; | ||
id: Scalars['Int']; | ||
/** Internal name of the campaign */ | ||
name: Maybe<Scalars['String']>; | ||
name: Scalars['String']; | ||
/** External ID (if set) */ | ||
externalId: Maybe<Scalars['Int']>; | ||
/** Full, official name of the campaign */ | ||
title: Maybe<Scalars['String']>; | ||
title: Scalars['String']; | ||
/** Custom config map */ | ||
config: Maybe<Scalars['Json']>; | ||
config: Scalars['Json']; | ||
/** Campaign statistics */ | ||
stats: Maybe<CampaignStats>; | ||
stats: CampaignStats; | ||
/** Fetch public actions */ | ||
actions: Maybe<PublicActionsResult>; | ||
org: Maybe<PublicOrg>; | ||
actions: PublicActionsResult; | ||
org: PublicOrg; | ||
}; | ||
@@ -469,5 +469,5 @@ export declare type CampaignActionsArgs = { | ||
public: Scalars['String']; | ||
name: Maybe<Scalars['String']>; | ||
active: Maybe<Scalars['Boolean']>; | ||
expired: Maybe<Scalars['Boolean']>; | ||
name: Scalars['String']; | ||
active: Scalars['Boolean']; | ||
expired: Scalars['Boolean']; | ||
expiredAt: Maybe<Scalars['DateTime']>; | ||
@@ -483,5 +483,6 @@ }; | ||
title: Scalars['String']; | ||
/** Personal data settings for this org */ | ||
personalData: PersonalData; | ||
keys: Array<Key>; | ||
key: Maybe<Key>; | ||
key: Key; | ||
/** List campaigns this org is leader or partner of */ | ||
@@ -494,3 +495,3 @@ campaigns: Array<Campaign>; | ||
/** Get campaign this org is leader or partner of by id */ | ||
campaign: Maybe<Campaign>; | ||
campaign: Campaign; | ||
}; | ||
@@ -519,3 +520,3 @@ export declare type OrgKeysArgs = { | ||
/** Contact's reference */ | ||
contactRef: Maybe<Scalars['String']>; | ||
contactRef: Scalars['String']; | ||
/** Contacts first name */ | ||
@@ -527,3 +528,3 @@ firstName: Maybe<Scalars['String']>; | ||
contactRef: Scalars['String']; | ||
payload: Maybe<Scalars['String']>; | ||
payload: Scalars['String']; | ||
nonce: Maybe<Scalars['String']>; | ||
@@ -535,3 +536,3 @@ publicKey: Maybe<Key>; | ||
__typename?: 'JoinOrgResult'; | ||
status: Maybe<Status>; | ||
status: Status; | ||
}; | ||
@@ -538,0 +539,0 @@ /** Custom field with a key and value. Both are strings. */ |
{ | ||
"name": "@proca/api", | ||
"version": "0.2.0-beta.9", | ||
"version": "0.2.0-beta.10", | ||
"description": "Client library for Proca API", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
159040
1454