@manta-eu/ldo 0.1.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/LICENSE +21 -0
- package/README.md +47 -0
- package/dist/.ldkit/attio.d.ts +1465 -0
- package/dist/.ldkit/attio.d.ts.map +1 -0
- package/dist/.ldkit/attio.js +1466 -0
- package/dist/.ldkit/brand.d.ts +1866 -0
- package/dist/.ldkit/brand.d.ts.map +1 -0
- package/dist/.ldkit/brand.js +2056 -0
- package/dist/.ldkit/cledara.d.ts +261 -0
- package/dist/.ldkit/cledara.d.ts.map +1 -0
- package/dist/.ldkit/cledara.js +262 -0
- package/dist/.ldkit/coresignal.d.ts +3488 -0
- package/dist/.ldkit/coresignal.d.ts.map +1 -0
- package/dist/.ldkit/coresignal.js +3489 -0
- package/dist/.ldkit/cs.d.ts +20 -0
- package/dist/.ldkit/cs.d.ts.map +1 -0
- package/dist/.ldkit/cs.js +21 -0
- package/dist/.ldkit/dash.d.ts +8 -0
- package/dist/.ldkit/dash.d.ts.map +1 -0
- package/dist/.ldkit/dash.js +8 -0
- package/dist/.ldkit/figma.d.ts +712 -0
- package/dist/.ldkit/figma.d.ts.map +1 -0
- package/dist/.ldkit/figma.js +713 -0
- package/dist/.ldkit/ga4.d.ts +177 -0
- package/dist/.ldkit/ga4.d.ts.map +1 -0
- package/dist/.ldkit/ga4.js +178 -0
- package/dist/.ldkit/gmc.d.ts +471 -0
- package/dist/.ldkit/gmc.d.ts.map +1 -0
- package/dist/.ldkit/gmc.js +472 -0
- package/dist/.ldkit/google.d.ts +3572 -0
- package/dist/.ldkit/google.d.ts.map +1 -0
- package/dist/.ldkit/google.js +4249 -0
- package/dist/.ldkit/index.d.ts +27 -0
- package/dist/.ldkit/index.d.ts.map +1 -0
- package/dist/.ldkit/index.js +26 -0
- package/dist/.ldkit/ingest.d.ts +32 -0
- package/dist/.ldkit/ingest.d.ts.map +1 -0
- package/dist/.ldkit/ingest.js +33 -0
- package/dist/.ldkit/linkedin.d.ts +625 -0
- package/dist/.ldkit/linkedin.d.ts.map +1 -0
- package/dist/.ldkit/linkedin.js +665 -0
- package/dist/.ldkit/maction.d.ts +29 -0
- package/dist/.ldkit/maction.d.ts.map +1 -0
- package/dist/.ldkit/maction.js +29 -0
- package/dist/.ldkit/manta.d.ts +5562 -0
- package/dist/.ldkit/manta.d.ts.map +1 -0
- package/dist/.ldkit/manta.js +6065 -0
- package/dist/.ldkit/mcontent.d.ts +239 -0
- package/dist/.ldkit/mcontent.d.ts.map +1 -0
- package/dist/.ldkit/mcontent.js +240 -0
- package/dist/.ldkit/meta.d.ts +5293 -0
- package/dist/.ldkit/meta.d.ts.map +1 -0
- package/dist/.ldkit/meta.js +5611 -0
- package/dist/.ldkit/namespaces.d.ts +126 -0
- package/dist/.ldkit/namespaces.d.ts.map +1 -0
- package/dist/.ldkit/namespaces.js +3555 -0
- package/dist/.ldkit/nfo.d.ts +84 -0
- package/dist/.ldkit/nfo.d.ts.map +1 -0
- package/dist/.ldkit/nfo.js +85 -0
- package/dist/.ldkit/nmo.d.ts +118 -0
- package/dist/.ldkit/nmo.d.ts.map +1 -0
- package/dist/.ldkit/nmo.js +119 -0
- package/dist/.ldkit/prov.d.ts +378 -0
- package/dist/.ldkit/prov.d.ts.map +1 -0
- package/dist/.ldkit/prov.js +379 -0
- package/dist/.ldkit/rdf.d.ts +16 -0
- package/dist/.ldkit/rdf.d.ts.map +1 -0
- package/dist/.ldkit/rdf.js +16 -0
- package/dist/.ldkit/rdfox.d.ts +17 -0
- package/dist/.ldkit/rdfox.d.ts.map +1 -0
- package/dist/.ldkit/rdfox.js +18 -0
- package/dist/.ldkit/schema.d.ts +1293 -0
- package/dist/.ldkit/schema.d.ts.map +1 -0
- package/dist/.ldkit/schema.js +1294 -0
- package/dist/.ldkit/sh.d.ts +376 -0
- package/dist/.ldkit/sh.d.ts.map +1 -0
- package/dist/.ldkit/sh.js +377 -0
- package/dist/.ldkit/slack.d.ts +622 -0
- package/dist/.ldkit/slack.d.ts.map +1 -0
- package/dist/.ldkit/slack.js +623 -0
- package/dist/.ldkit/stripe.d.ts +750 -0
- package/dist/.ldkit/stripe.d.ts.map +1 -0
- package/dist/.ldkit/stripe.js +751 -0
- package/dist/ad-platform-links.d.ts +26 -0
- package/dist/ad-platform-links.d.ts.map +1 -0
- package/dist/ad-platform-links.js +85 -0
- package/dist/external-links.d.ts +12 -0
- package/dist/external-links.d.ts.map +1 -0
- package/dist/external-links.js +15 -0
- package/dist/figma-links.d.ts +6 -0
- package/dist/figma-links.d.ts.map +1 -0
- package/dist/figma-links.js +24 -0
- package/dist/index.d.ts +5 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +4 -0
- package/dist/manual-schemas.d.ts +1139 -0
- package/dist/manual-schemas.d.ts.map +1 -0
- package/dist/manual-schemas.js +298 -0
- package/dist/namespaces.d.ts +368 -0
- package/dist/namespaces.d.ts.map +1 -0
- package/dist/namespaces.js +16 -0
- package/dist/realm.d.ts +20 -0
- package/dist/realm.d.ts.map +1 -0
- package/dist/realm.js +97 -0
- package/dist/redirect-queries.d.ts +22 -0
- package/dist/redirect-queries.d.ts.map +1 -0
- package/dist/redirect-queries.js +93 -0
- package/dist/sparql-types.d.ts +33 -0
- package/dist/sparql-types.d.ts.map +1 -0
- package/dist/sparql-types.js +49 -0
- package/package.json +88 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"manual-schemas.d.ts","sourceRoot":"","sources":["../manual-schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAmB,KAAK,eAAe,EAAE,MAAM,OAAO,CAAC;AA8C9D,eAAO,MAAM,yBAAyB;;;;;CAK5B,CAAC;AAEX,eAAO,MAAM,iBAAiB;;;;;;CAGpB,CAAC;AAEX,eAAO,MAAM,yBAAyB;;;;;;;;;;;;CAY5B,CAAC;AAKX,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAMb,CAAC;AAEX,MAAM,MAAM,SAAS,GAAG,eAAe,CAAC,OAAO,UAAU,CAAC,CAAC;AA2D3D,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAmBxB,CAAC;AAEX,MAAM,MAAM,qBAAqB,GAAG,eAAe,CAAC,OAAO,qBAAqB,CAAC,CAAC;AAElF,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAiDtB,CAAC;AAEX,MAAM,MAAM,mBAAmB,GAAG,eAAe,CAAC,OAAO,mBAAmB,CAAC,CAAC;AAc9E,eAAO,MAAM,4BAA4B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAe/B,CAAC;AAEX,MAAM,MAAM,4BAA4B,GAAG,eAAe,CAAC,OAAO,4BAA4B,CAAC,CAAC;AAEhG,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAgB3B,CAAC;AAEX,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAQzB,CAAC;AAIX,eAAO,MAAM,8BAA8B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAA+C,CAAC;AAE3F,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;;CAK9B,CAAC;AAEX,eAAO,MAAM,+BAA+B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAQlC,CAAC;AAEX,eAAO,MAAM,sCAAsC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAAuD,CAAC;AAM3G,eAAO,MAAM,6BAA6B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAqBhC,CAAC;AAOX,eAAO,MAAM,uCAAuC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAO1C,CAAC;AAEX,eAAO,MAAM,yCAAyC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAO5C,CAAC;AAOX,eAAO,MAAM,kCAAkC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAQrC,CAAC;AAEX,eAAO,MAAM,kCAAkC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAQrC,CAAC"}
|
|
@@ -0,0 +1,298 @@
|
|
|
1
|
+
import { createNamespace } from "ldkit";
|
|
2
|
+
import { rdfs, xsd } from "ldkit/namespaces";
|
|
3
|
+
import { AttioMeetingSchema, Ga4DailyOverviewSchema, Ga4PropertySchema, Ga4TrafficSourceSchema, GoogleAdGroupAdSchema1, GoogleAdGroupSchema, GoogleCampaignBudgetSchema, GoogleCampaignSchema, GoogleCampaignInsightSchema, GoogleCustomerSchema, GoogleResponsiveSearchAdDescriptionSchema, GoogleResponsiveSearchAdHeadlineSchema, GoogleSearchTermInsightSchema, MetaAdAccountSchema, MetaAdCreativeSchema, MetaAdCreativeSchema1, MetaAdSchema, MetaAdSetSchema, MetaBodySchema, MetaCallToActionSchema, MetaCampaignSchema, MetaDescriptionSchema, MetaInsightSchema, MetaLinkDataSchema, MetaLinkUrlSchema, MetaObjectStorySpecSchema, MetaTargetingSchema, MetaTitleSchema, nfo, NfoFileDataObjectSchema, NfoFileHashSchema, } from "./.ldkit/index.js";
|
|
4
|
+
import { google, linkedin, m, nmo, prov, schema, slack } from "./.ldkit/namespaces.js";
|
|
5
|
+
import { vocab, vocabBase } from "./realm.js";
|
|
6
|
+
// `priority` is the only m: term codegen does not emit; everything else comes from `.ldkit`.
|
|
7
|
+
const mManual = createNamespace({ iri: vocabBase, prefix: "m:", terms: ["priority"] });
|
|
8
|
+
// Connected-account provider entities (MNT-506). These KG resource types back the OAuth accounts on
|
|
9
|
+
// the integrations page; the node router dispatches a type-specific view off these constants.
|
|
10
|
+
// Only shopify: needs a hand-authored namespace — no kgc mapper produces it
|
|
11
|
+
const shopify = createNamespace({ iri: vocab("shopify"), prefix: "shopify:", terms: ["Shop"] });
|
|
12
|
+
export const ProviderAccountEntityType = {
|
|
13
|
+
GOOGLE_CUSTOMER: google.Customer,
|
|
14
|
+
LINKEDIN_AD_ACCOUNT: linkedin.AdAccount,
|
|
15
|
+
SHOPIFY_SHOP: shopify.Shop,
|
|
16
|
+
SLACK_WORKSPACE: slack.Workspace,
|
|
17
|
+
};
|
|
18
|
+
export const ShopifyShopSchema = {
|
|
19
|
+
"@type": shopify.Shop,
|
|
20
|
+
name: { "@id": schema.name, "@optional": true },
|
|
21
|
+
};
|
|
22
|
+
export const ConversationStarterSchema = {
|
|
23
|
+
"@type": m.ConversationStarter,
|
|
24
|
+
label: rdfs.label,
|
|
25
|
+
priority: {
|
|
26
|
+
"@id": mManual.priority,
|
|
27
|
+
"@type": xsd.integer,
|
|
28
|
+
},
|
|
29
|
+
integration: {
|
|
30
|
+
"@id": m.integration,
|
|
31
|
+
"@type": xsd.string,
|
|
32
|
+
"@optional": true,
|
|
33
|
+
},
|
|
34
|
+
};
|
|
35
|
+
// hasHash is overridden to nest the generated FileHash schema so the file and its
|
|
36
|
+
// hash are written as one atomic INSERT DATA (the codegen emits hasHash as a bare
|
|
37
|
+
// IRI ref, which would otherwise require inserting the FileHash node separately).
|
|
38
|
+
export const FileSchema = {
|
|
39
|
+
...NfoFileDataObjectSchema,
|
|
40
|
+
hasHash: {
|
|
41
|
+
"@id": nfo.hasHash,
|
|
42
|
+
"@schema": NfoFileHashSchema,
|
|
43
|
+
},
|
|
44
|
+
};
|
|
45
|
+
const MetaBodyTextSchema = {
|
|
46
|
+
"@type": MetaBodySchema["@type"],
|
|
47
|
+
text: MetaBodySchema.text,
|
|
48
|
+
};
|
|
49
|
+
const MetaTitleTextSchema = {
|
|
50
|
+
"@type": MetaTitleSchema["@type"],
|
|
51
|
+
text: MetaTitleSchema.text,
|
|
52
|
+
};
|
|
53
|
+
const MetaDescriptionTextSchema = {
|
|
54
|
+
"@type": MetaDescriptionSchema["@type"],
|
|
55
|
+
text: MetaDescriptionSchema.text,
|
|
56
|
+
};
|
|
57
|
+
const MetaLinkUrlValueSchema = {
|
|
58
|
+
"@type": MetaLinkUrlSchema["@type"],
|
|
59
|
+
websiteUrl: MetaLinkUrlSchema.websiteUrl,
|
|
60
|
+
displayUrl: MetaLinkUrlSchema.displayUrl,
|
|
61
|
+
};
|
|
62
|
+
const NfoOriginalFileSchema = {
|
|
63
|
+
"@type": NfoFileDataObjectSchema["@type"],
|
|
64
|
+
contentMimeType: { "@id": nmo.contentMimeType, "@optional": true },
|
|
65
|
+
};
|
|
66
|
+
const MetaCallToActionValueSchema = {
|
|
67
|
+
"@type": MetaCallToActionSchema["@type"],
|
|
68
|
+
callToActionType: MetaCallToActionSchema.callToActionType,
|
|
69
|
+
};
|
|
70
|
+
const MetaLinkDataValueSchema = {
|
|
71
|
+
"@type": MetaLinkDataSchema["@type"],
|
|
72
|
+
storyLink: MetaLinkDataSchema.storyLink,
|
|
73
|
+
callToAction: {
|
|
74
|
+
"@id": MetaLinkDataSchema.callToAction["@id"],
|
|
75
|
+
"@optional": true,
|
|
76
|
+
"@schema": MetaCallToActionValueSchema,
|
|
77
|
+
},
|
|
78
|
+
};
|
|
79
|
+
const MetaObjectStorySpecValueSchema = {
|
|
80
|
+
"@type": MetaObjectStorySpecSchema["@type"],
|
|
81
|
+
linkData: {
|
|
82
|
+
"@id": MetaObjectStorySpecSchema.linkData["@id"],
|
|
83
|
+
"@optional": true,
|
|
84
|
+
"@schema": MetaLinkDataValueSchema,
|
|
85
|
+
},
|
|
86
|
+
};
|
|
87
|
+
const MetaPlacementTargetingSchema = {
|
|
88
|
+
"@type": MetaTargetingSchema["@type"],
|
|
89
|
+
facebookPositions: MetaTargetingSchema.facebookPositions,
|
|
90
|
+
instagramPositions: MetaTargetingSchema.instagramPositions,
|
|
91
|
+
publisherPlatforms: MetaTargetingSchema.publisherPlatforms,
|
|
92
|
+
};
|
|
93
|
+
export const MetaAdTargetingSchema = {
|
|
94
|
+
"@type": MetaAdSchema["@type"],
|
|
95
|
+
targeting: {
|
|
96
|
+
"@id": MetaAdSchema.targeting["@id"],
|
|
97
|
+
"@optional": true,
|
|
98
|
+
"@schema": MetaPlacementTargetingSchema,
|
|
99
|
+
},
|
|
100
|
+
adSet: {
|
|
101
|
+
"@id": MetaAdSchema.adSet["@id"],
|
|
102
|
+
"@optional": true,
|
|
103
|
+
"@schema": {
|
|
104
|
+
"@type": MetaAdSetSchema["@type"],
|
|
105
|
+
targeting: {
|
|
106
|
+
"@id": MetaAdSetSchema.targeting["@id"],
|
|
107
|
+
"@optional": true,
|
|
108
|
+
"@schema": MetaPlacementTargetingSchema,
|
|
109
|
+
},
|
|
110
|
+
},
|
|
111
|
+
},
|
|
112
|
+
};
|
|
113
|
+
export const MetaAdPreviewSchema = {
|
|
114
|
+
"@type": MetaAdSchema["@type"],
|
|
115
|
+
label: MetaAdSchema.label,
|
|
116
|
+
creative: {
|
|
117
|
+
"@id": MetaAdSchema.creative["@id"],
|
|
118
|
+
"@optional": true,
|
|
119
|
+
"@schema": {
|
|
120
|
+
"@type": MetaAdCreativeSchema1["@type"],
|
|
121
|
+
thumbnailUrl: MetaAdCreativeSchema1.thumbnailUrl,
|
|
122
|
+
imageUrl: MetaAdCreativeSchema.imageUrl,
|
|
123
|
+
callToActionType: MetaAdCreativeSchema1.callToActionType,
|
|
124
|
+
assetFeedSpecCallToActionTypes: MetaAdCreativeSchema1.assetFeedSpecCallToActionTypes,
|
|
125
|
+
objectStorySpec: {
|
|
126
|
+
"@id": MetaAdCreativeSchema.objectStorySpec["@id"],
|
|
127
|
+
"@optional": true,
|
|
128
|
+
"@schema": MetaObjectStorySpecValueSchema,
|
|
129
|
+
},
|
|
130
|
+
assetFeedSpecBodies: {
|
|
131
|
+
"@id": MetaAdCreativeSchema1.assetFeedSpecBodies["@id"],
|
|
132
|
+
"@array": MetaAdCreativeSchema1.assetFeedSpecBodies["@array"],
|
|
133
|
+
"@optional": true,
|
|
134
|
+
"@schema": MetaBodyTextSchema,
|
|
135
|
+
},
|
|
136
|
+
assetFeedSpecTitles: {
|
|
137
|
+
"@id": MetaAdCreativeSchema1.assetFeedSpecTitles["@id"],
|
|
138
|
+
"@array": MetaAdCreativeSchema1.assetFeedSpecTitles["@array"],
|
|
139
|
+
"@optional": true,
|
|
140
|
+
"@schema": MetaTitleTextSchema,
|
|
141
|
+
},
|
|
142
|
+
assetFeedSpecDescriptions: {
|
|
143
|
+
"@id": MetaAdCreativeSchema1.assetFeedSpecDescriptions["@id"],
|
|
144
|
+
"@array": MetaAdCreativeSchema1.assetFeedSpecDescriptions["@array"],
|
|
145
|
+
"@optional": true,
|
|
146
|
+
"@schema": MetaDescriptionTextSchema,
|
|
147
|
+
},
|
|
148
|
+
assetFeedSpecLinkUrls: {
|
|
149
|
+
"@id": MetaAdCreativeSchema1.assetFeedSpecLinkUrls["@id"],
|
|
150
|
+
"@array": MetaAdCreativeSchema1.assetFeedSpecLinkUrls["@array"],
|
|
151
|
+
"@optional": true,
|
|
152
|
+
"@schema": MetaLinkUrlValueSchema,
|
|
153
|
+
},
|
|
154
|
+
wasDerivedFrom: {
|
|
155
|
+
"@id": prov.wasDerivedFrom,
|
|
156
|
+
"@array": true,
|
|
157
|
+
"@optional": true,
|
|
158
|
+
"@schema": NfoOriginalFileSchema,
|
|
159
|
+
},
|
|
160
|
+
},
|
|
161
|
+
},
|
|
162
|
+
};
|
|
163
|
+
const GoogleRsaHeadlineTextSchema = {
|
|
164
|
+
"@type": GoogleResponsiveSearchAdHeadlineSchema["@type"],
|
|
165
|
+
text: GoogleResponsiveSearchAdHeadlineSchema.text,
|
|
166
|
+
};
|
|
167
|
+
const GoogleRsaDescriptionTextSchema = {
|
|
168
|
+
"@type": GoogleResponsiveSearchAdDescriptionSchema["@type"],
|
|
169
|
+
text: GoogleResponsiveSearchAdDescriptionSchema.text,
|
|
170
|
+
};
|
|
171
|
+
// RSA headlines/descriptions are IRIs to sub-nodes whose text lives one hop away; nesting the sub-node
|
|
172
|
+
// schema pulls a whole strip of ads plus their copy in one query instead of a two-hop fetch per ad.
|
|
173
|
+
export const GoogleAdGroupAdPreviewSchema = {
|
|
174
|
+
"@type": GoogleAdGroupAdSchema1["@type"],
|
|
175
|
+
adGroupAdAdFinalUrls: GoogleAdGroupAdSchema1.adGroupAdAdFinalUrls,
|
|
176
|
+
adGroupAdAdResponsiveSearchAdHeadlines: {
|
|
177
|
+
"@id": GoogleAdGroupAdSchema1.adGroupAdAdResponsiveSearchAdHeadlines["@id"],
|
|
178
|
+
"@array": GoogleAdGroupAdSchema1.adGroupAdAdResponsiveSearchAdHeadlines["@array"],
|
|
179
|
+
"@optional": true,
|
|
180
|
+
"@schema": GoogleRsaHeadlineTextSchema,
|
|
181
|
+
},
|
|
182
|
+
adGroupAdAdResponsiveSearchAdDescriptions: {
|
|
183
|
+
"@id": GoogleAdGroupAdSchema1.adGroupAdAdResponsiveSearchAdDescriptions["@id"],
|
|
184
|
+
"@array": GoogleAdGroupAdSchema1.adGroupAdAdResponsiveSearchAdDescriptions["@array"],
|
|
185
|
+
"@optional": true,
|
|
186
|
+
"@schema": GoogleRsaDescriptionTextSchema,
|
|
187
|
+
},
|
|
188
|
+
};
|
|
189
|
+
export const GoogleCampaignCardSchema = {
|
|
190
|
+
"@type": GoogleCampaignSchema["@type"],
|
|
191
|
+
campaignName: GoogleCampaignSchema.campaignName,
|
|
192
|
+
campaignStatus: GoogleCampaignSchema.campaignStatus,
|
|
193
|
+
campaignServingStatus: GoogleCampaignSchema.campaignServingStatus,
|
|
194
|
+
campaignAdvertisingChannelType: GoogleCampaignSchema.campaignAdvertisingChannelType,
|
|
195
|
+
campaignBiddingStrategyType: GoogleCampaignSchema.campaignBiddingStrategyType,
|
|
196
|
+
campaignStartDate: GoogleCampaignSchema.campaignStartDate,
|
|
197
|
+
campaignEndDate: GoogleCampaignSchema.campaignEndDate,
|
|
198
|
+
campaignPaymentMode: GoogleCampaignSchema.campaignPaymentMode,
|
|
199
|
+
campaignNetworkSettingsTargetGoogleSearch: GoogleCampaignSchema.campaignNetworkSettingsTargetGoogleSearch,
|
|
200
|
+
campaignNetworkSettingsTargetSearchNetwork: GoogleCampaignSchema.campaignNetworkSettingsTargetSearchNetwork,
|
|
201
|
+
campaignNetworkSettingsTargetContentNetwork: GoogleCampaignSchema.campaignNetworkSettingsTargetContentNetwork,
|
|
202
|
+
campaignNetworkSettingsTargetPartnerSearchNetwork: GoogleCampaignSchema.campaignNetworkSettingsTargetPartnerSearchNetwork,
|
|
203
|
+
dateModified: GoogleCampaignSchema.dateModified,
|
|
204
|
+
};
|
|
205
|
+
export const AttioMeetingCardSchema = {
|
|
206
|
+
"@type": AttioMeetingSchema["@type"],
|
|
207
|
+
title: AttioMeetingSchema.title,
|
|
208
|
+
description: AttioMeetingSchema.description,
|
|
209
|
+
isAllDay: AttioMeetingSchema.isAllDay,
|
|
210
|
+
startDatetime: AttioMeetingSchema.startDatetime,
|
|
211
|
+
endDatetime: AttioMeetingSchema.endDatetime,
|
|
212
|
+
startTimezone: AttioMeetingSchema.startTimezone,
|
|
213
|
+
};
|
|
214
|
+
const currency = { "@id": schema.currency, "@optional": true };
|
|
215
|
+
export const MetaCampaignWithCurrencySchema = { ...MetaCampaignSchema, currency };
|
|
216
|
+
export const MetaAdSetWithCurrencySchema = {
|
|
217
|
+
"@type": MetaAdSetSchema["@type"],
|
|
218
|
+
optimizationGoal: MetaAdSetSchema.optimizationGoal,
|
|
219
|
+
dailyBudget: MetaAdSetSchema.dailyBudget,
|
|
220
|
+
currency,
|
|
221
|
+
};
|
|
222
|
+
export const GoogleAdGroupWithCurrencySchema = {
|
|
223
|
+
"@type": GoogleAdGroupSchema["@type"],
|
|
224
|
+
adGroupName: GoogleAdGroupSchema.adGroupName,
|
|
225
|
+
adGroupStatus: GoogleAdGroupSchema.adGroupStatus,
|
|
226
|
+
adGroupTypex: GoogleAdGroupSchema.adGroupTypex,
|
|
227
|
+
adGroupCpcBidMicros: GoogleAdGroupSchema.adGroupCpcBidMicros,
|
|
228
|
+
adGroupTargetCpaMicros: GoogleAdGroupSchema.adGroupTargetCpaMicros,
|
|
229
|
+
currency,
|
|
230
|
+
};
|
|
231
|
+
export const GoogleCampaignBudgetWithCurrencySchema = { ...GoogleCampaignBudgetSchema, currency };
|
|
232
|
+
// Insights carry no currency of their own; it lives one hop away on the account/customer, and
|
|
233
|
+
// nesting that hop keeps the read a single query.
|
|
234
|
+
const MetaAccountCurrencySchema = { "@type": MetaAdAccountSchema["@type"], currency };
|
|
235
|
+
export const MetaInsightWithCurrencySchema = {
|
|
236
|
+
"@type": MetaInsightSchema["@type"],
|
|
237
|
+
dateStart: MetaInsightSchema.dateStart,
|
|
238
|
+
dateStop: MetaInsightSchema.dateStop,
|
|
239
|
+
impressions: MetaInsightSchema.impressions,
|
|
240
|
+
reach: MetaInsightSchema.reach,
|
|
241
|
+
frequency: MetaInsightSchema.frequency,
|
|
242
|
+
clicks: MetaInsightSchema.clicks,
|
|
243
|
+
uniqueClicks: MetaInsightSchema.uniqueClicks,
|
|
244
|
+
inlineLinkClicks: MetaInsightSchema.inlineLinkClicks,
|
|
245
|
+
ctr: MetaInsightSchema.ctr,
|
|
246
|
+
uniqueCtr: MetaInsightSchema.uniqueCtr,
|
|
247
|
+
spendMicros: MetaInsightSchema.spendMicros,
|
|
248
|
+
cpcMicros: MetaInsightSchema.cpcMicros,
|
|
249
|
+
cpmMicros: MetaInsightSchema.cpmMicros,
|
|
250
|
+
cppMicros: MetaInsightSchema.cppMicros,
|
|
251
|
+
account: {
|
|
252
|
+
"@id": MetaInsightSchema.account["@id"],
|
|
253
|
+
"@optional": true,
|
|
254
|
+
"@schema": MetaAccountCurrencySchema,
|
|
255
|
+
},
|
|
256
|
+
};
|
|
257
|
+
const GoogleCustomerCurrencySchema = {
|
|
258
|
+
"@type": GoogleCustomerSchema["@type"],
|
|
259
|
+
currencyCode: GoogleCustomerSchema.currencyCode,
|
|
260
|
+
};
|
|
261
|
+
export const GoogleCampaignInsightWithCurrencySchema = {
|
|
262
|
+
...GoogleCampaignInsightSchema,
|
|
263
|
+
customer: {
|
|
264
|
+
"@id": GoogleCampaignInsightSchema.customer["@id"],
|
|
265
|
+
"@optional": true,
|
|
266
|
+
"@schema": GoogleCustomerCurrencySchema,
|
|
267
|
+
},
|
|
268
|
+
};
|
|
269
|
+
export const GoogleSearchTermInsightWithCurrencySchema = {
|
|
270
|
+
...GoogleSearchTermInsightSchema,
|
|
271
|
+
customer: {
|
|
272
|
+
"@id": GoogleSearchTermInsightSchema.customer["@id"],
|
|
273
|
+
"@optional": true,
|
|
274
|
+
"@schema": GoogleCustomerCurrencySchema,
|
|
275
|
+
},
|
|
276
|
+
};
|
|
277
|
+
const Ga4PropertyCurrencySchema = {
|
|
278
|
+
"@type": Ga4PropertySchema["@type"],
|
|
279
|
+
currencyCode: Ga4PropertySchema.currencyCode,
|
|
280
|
+
};
|
|
281
|
+
export const Ga4DailyOverviewWithCurrencySchema = {
|
|
282
|
+
...Ga4DailyOverviewSchema,
|
|
283
|
+
property: {
|
|
284
|
+
"@id": Ga4DailyOverviewSchema.property["@id"],
|
|
285
|
+
"@array": Ga4DailyOverviewSchema.property["@array"],
|
|
286
|
+
"@optional": true,
|
|
287
|
+
"@schema": Ga4PropertyCurrencySchema,
|
|
288
|
+
},
|
|
289
|
+
};
|
|
290
|
+
export const Ga4TrafficSourceWithCurrencySchema = {
|
|
291
|
+
...Ga4TrafficSourceSchema,
|
|
292
|
+
property: {
|
|
293
|
+
"@id": Ga4TrafficSourceSchema.property["@id"],
|
|
294
|
+
"@array": Ga4TrafficSourceSchema.property["@array"],
|
|
295
|
+
"@optional": true,
|
|
296
|
+
"@schema": Ga4PropertyCurrencySchema,
|
|
297
|
+
},
|
|
298
|
+
};
|