@automate.ax/catalog 0.164.0 → 0.165.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/catalog.d.ts +67 -0
- package/dist/catalog.js +42 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/triggers/index.d.ts +240 -0
- package/dist/triggers/index.js +2 -0
- package/dist/triggers/uber.d.ts +122 -0
- package/dist/triggers/uber.js +28 -0
- package/package.json +7 -1
- package/src/catalog.ts +46 -0
- package/src/index.ts +1 -0
- package/src/triggers/index.ts +2 -0
- package/src/triggers/uber.ts +40 -0
package/dist/catalog.d.ts
CHANGED
|
@@ -1166,6 +1166,40 @@ export declare const trelloService: {
|
|
|
1166
1166
|
readonly id: "trello";
|
|
1167
1167
|
readonly name: "Trello";
|
|
1168
1168
|
};
|
|
1169
|
+
export declare const uberService: {
|
|
1170
|
+
readonly connectionMethods: readonly [{
|
|
1171
|
+
readonly credentialUrl: "https://direct.uber.com/";
|
|
1172
|
+
readonly description: "Use the client ID, client secret, and customer ID from the Developer tab of the Uber Direct dashboard.";
|
|
1173
|
+
readonly fields: readonly [{
|
|
1174
|
+
readonly input: "text";
|
|
1175
|
+
readonly label: "Client ID";
|
|
1176
|
+
readonly name: "clientId";
|
|
1177
|
+
readonly required: true;
|
|
1178
|
+
}, {
|
|
1179
|
+
readonly input: "password";
|
|
1180
|
+
readonly label: "Client secret";
|
|
1181
|
+
readonly name: "clientSecret";
|
|
1182
|
+
readonly required: true;
|
|
1183
|
+
}, {
|
|
1184
|
+
readonly input: "text";
|
|
1185
|
+
readonly label: "Customer ID";
|
|
1186
|
+
readonly name: "customerId";
|
|
1187
|
+
readonly required: true;
|
|
1188
|
+
}, {
|
|
1189
|
+
readonly description: "Required for triggers. Point an Uber Direct webhook at https://automate.ax/api/v1/events/uber/ followed by your customer ID, then paste its signing key.";
|
|
1190
|
+
readonly input: "password";
|
|
1191
|
+
readonly label: "Webhook signing key";
|
|
1192
|
+
readonly name: "webhookSigningKey";
|
|
1193
|
+
readonly required: false;
|
|
1194
|
+
}];
|
|
1195
|
+
readonly id: "direct";
|
|
1196
|
+
readonly name: "Uber Direct";
|
|
1197
|
+
readonly type: "form";
|
|
1198
|
+
}];
|
|
1199
|
+
readonly description: "Connect Uber Direct for courier delivery quotes, deliveries, proof of delivery, and signed delivery events.";
|
|
1200
|
+
readonly id: "uber";
|
|
1201
|
+
readonly name: "Uber";
|
|
1202
|
+
};
|
|
1169
1203
|
export declare const vercelAiGatewayService: {
|
|
1170
1204
|
readonly id: "vercel-ai-gateway";
|
|
1171
1205
|
readonly name: string;
|
|
@@ -2398,6 +2432,39 @@ export declare const integrationCatalog: readonly [{
|
|
|
2398
2432
|
readonly description: "Connect a Trello account.";
|
|
2399
2433
|
readonly id: "trello";
|
|
2400
2434
|
readonly name: "Trello";
|
|
2435
|
+
}, {
|
|
2436
|
+
readonly connectionMethods: readonly [{
|
|
2437
|
+
readonly credentialUrl: "https://direct.uber.com/";
|
|
2438
|
+
readonly description: "Use the client ID, client secret, and customer ID from the Developer tab of the Uber Direct dashboard.";
|
|
2439
|
+
readonly fields: readonly [{
|
|
2440
|
+
readonly input: "text";
|
|
2441
|
+
readonly label: "Client ID";
|
|
2442
|
+
readonly name: "clientId";
|
|
2443
|
+
readonly required: true;
|
|
2444
|
+
}, {
|
|
2445
|
+
readonly input: "password";
|
|
2446
|
+
readonly label: "Client secret";
|
|
2447
|
+
readonly name: "clientSecret";
|
|
2448
|
+
readonly required: true;
|
|
2449
|
+
}, {
|
|
2450
|
+
readonly input: "text";
|
|
2451
|
+
readonly label: "Customer ID";
|
|
2452
|
+
readonly name: "customerId";
|
|
2453
|
+
readonly required: true;
|
|
2454
|
+
}, {
|
|
2455
|
+
readonly description: "Required for triggers. Point an Uber Direct webhook at https://automate.ax/api/v1/events/uber/ followed by your customer ID, then paste its signing key.";
|
|
2456
|
+
readonly input: "password";
|
|
2457
|
+
readonly label: "Webhook signing key";
|
|
2458
|
+
readonly name: "webhookSigningKey";
|
|
2459
|
+
readonly required: false;
|
|
2460
|
+
}];
|
|
2461
|
+
readonly id: "direct";
|
|
2462
|
+
readonly name: "Uber Direct";
|
|
2463
|
+
readonly type: "form";
|
|
2464
|
+
}];
|
|
2465
|
+
readonly description: "Connect Uber Direct for courier delivery quotes, deliveries, proof of delivery, and signed delivery events.";
|
|
2466
|
+
readonly id: "uber";
|
|
2467
|
+
readonly name: "Uber";
|
|
2401
2468
|
}, {
|
|
2402
2469
|
readonly id: "vercel-ai-gateway";
|
|
2403
2470
|
readonly name: string;
|
package/dist/catalog.js
CHANGED
|
@@ -927,6 +927,47 @@ export const trelloService = defineIntegrationService({
|
|
|
927
927
|
id: "trello",
|
|
928
928
|
name: "Trello",
|
|
929
929
|
});
|
|
930
|
+
export const uberService = defineIntegrationService({
|
|
931
|
+
connectionMethods: [
|
|
932
|
+
{
|
|
933
|
+
credentialUrl: "https://direct.uber.com/",
|
|
934
|
+
description: "Use the client ID, client secret, and customer ID from the Developer tab of the Uber Direct dashboard.",
|
|
935
|
+
fields: [
|
|
936
|
+
{
|
|
937
|
+
input: "text",
|
|
938
|
+
label: "Client ID",
|
|
939
|
+
name: "clientId",
|
|
940
|
+
required: true,
|
|
941
|
+
},
|
|
942
|
+
{
|
|
943
|
+
input: "password",
|
|
944
|
+
label: "Client secret",
|
|
945
|
+
name: "clientSecret",
|
|
946
|
+
required: true,
|
|
947
|
+
},
|
|
948
|
+
{
|
|
949
|
+
input: "text",
|
|
950
|
+
label: "Customer ID",
|
|
951
|
+
name: "customerId",
|
|
952
|
+
required: true,
|
|
953
|
+
},
|
|
954
|
+
{
|
|
955
|
+
description: "Required for triggers. Point an Uber Direct webhook at https://automate.ax/api/v1/events/uber/ followed by your customer ID, then paste its signing key.",
|
|
956
|
+
input: "password",
|
|
957
|
+
label: "Webhook signing key",
|
|
958
|
+
name: "webhookSigningKey",
|
|
959
|
+
required: false,
|
|
960
|
+
},
|
|
961
|
+
],
|
|
962
|
+
id: "direct",
|
|
963
|
+
name: "Uber Direct",
|
|
964
|
+
type: "form",
|
|
965
|
+
},
|
|
966
|
+
],
|
|
967
|
+
description: "Connect Uber Direct for courier delivery quotes, deliveries, proof of delivery, and signed delivery events.",
|
|
968
|
+
id: "uber",
|
|
969
|
+
name: "Uber",
|
|
970
|
+
});
|
|
930
971
|
export const vercelAiGatewayService = defineApiKeyService({
|
|
931
972
|
description: "Connect a Vercel AI Gateway API key.",
|
|
932
973
|
icon: "vercel",
|
|
@@ -1041,6 +1082,7 @@ export const integrationCatalog = defineIntegrationCatalog([
|
|
|
1041
1082
|
tidycalService,
|
|
1042
1083
|
togetheraiService,
|
|
1043
1084
|
trelloService,
|
|
1085
|
+
uberService,
|
|
1044
1086
|
vercelAiGatewayService,
|
|
1045
1087
|
vercelService,
|
|
1046
1088
|
webflowService,
|
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { airtableService, anthropicService, apolloService, apifyService, asanaService, calendlyService, automateService, axiomService, brevoService, calcomService, browserbaseService, cerebrasService, chatgptService, cloudflareService, metaAdsService, closeService, closeBotService, clickUpService, codexService, cohereService, convexService, discordService, elevenLabsService, deepinfraService, deepseekService, firecrawlService, fireworksService, getIntegrationService, githubService, googleGenaiService, googleService, groqService, huggingfaceService, hubspotService, highLevelService, integrationCatalog, jobNimbusService, kitService, krispService, linearService, microsoftService, millionverifierService, mistralService, notionService, openaiService, onePasswordService, openrouterService, perplexityService, postgresService, redditService, resendService, scrapflyService, slackService, squareService, stripeService, tallyService, tidycalService, togetheraiService, trelloService, vercelAiGatewayService, vercelService, webflowService, whatsappService, xaiService, type IntegrationServiceId, } from "./catalog.js";
|
|
1
|
+
export { airtableService, anthropicService, apolloService, apifyService, asanaService, calendlyService, automateService, axiomService, brevoService, calcomService, browserbaseService, cerebrasService, chatgptService, cloudflareService, metaAdsService, closeService, closeBotService, clickUpService, codexService, cohereService, convexService, discordService, elevenLabsService, deepinfraService, deepseekService, firecrawlService, fireworksService, getIntegrationService, githubService, googleGenaiService, googleService, groqService, huggingfaceService, hubspotService, highLevelService, integrationCatalog, jobNimbusService, kitService, krispService, linearService, microsoftService, millionverifierService, mistralService, notionService, openaiService, onePasswordService, openrouterService, perplexityService, postgresService, redditService, resendService, scrapflyService, slackService, squareService, stripeService, tallyService, tidycalService, togetheraiService, trelloService, uberService, vercelAiGatewayService, vercelService, webflowService, whatsappService, xaiService, type IntegrationServiceId, } from "./catalog.js";
|
|
2
2
|
export { defineIntegrationCatalog, defineIntegrationService, integrationScope, type IntegrationAccountConnectionOption, type IntegrationAccountRequirement, type IntegrationConnectionDefinition, type IntegrationConnectionNotice, type IntegrationFormField, type IntegrationScopeRequirement, type IntegrationServiceDefinition, type ScopeRequirementGroup, type TriggerAccountRequirement, type TriggerDefinition, type TriggerPresentation, type TriggerPresentationContext, type TriggerPresentationDetail, type TriggerScopePresentation, type TriggerPresentationValue, } from "./types.js";
|
|
3
3
|
export { getDashboardRunEndpoint, getDashboardRunEndpointKey, getHttpTriggerEndpoint, getHttpTriggerEndpointKey, getMailhookAddress, getMailhookAddressKey, DASHBOARD_RUN_CONFIG_SCHEMA, getTriggerDefinition, getTriggerName, getTriggerPresentation, isTriggerVisible, PLATFORM_EMAIL_DOMAIN, triggerCatalog, triggerDefinitions, type DashboardRunConfig, type DashboardRunEndpointOptions, type HttpTriggerEndpointOptions, type HttpTriggerScope, type MailhookAddressOptions, type MailhookScope, type TriggerType, } from "./triggers/index.js";
|
|
4
4
|
export { FORM_FIELDS_SCHEMA, getFormFieldDefaultValue, getFormFieldValueSchema, isFormFieldValueValid, normalizeFormFieldValue, readFormFieldValue, parseFormFields, type FormField, type FormFieldValue, type FormFieldValues, } from "./form-fields.js";
|
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { airtableService, anthropicService, apolloService, apifyService, asanaService, calendlyService, automateService, axiomService, brevoService, calcomService, browserbaseService, cerebrasService, chatgptService, cloudflareService, metaAdsService, closeService, closeBotService, clickUpService, codexService, cohereService, convexService, discordService, elevenLabsService, deepinfraService, deepseekService, firecrawlService, fireworksService, getIntegrationService, githubService, googleGenaiService, googleService, groqService, huggingfaceService, hubspotService, highLevelService, integrationCatalog, jobNimbusService, kitService, krispService, linearService, microsoftService, millionverifierService, mistralService, notionService, openaiService, onePasswordService, openrouterService, perplexityService, postgresService, redditService, resendService, scrapflyService, slackService, squareService, stripeService, tallyService, tidycalService, togetheraiService, trelloService, vercelAiGatewayService, vercelService, webflowService, whatsappService, xaiService, } from "./catalog.js";
|
|
1
|
+
export { airtableService, anthropicService, apolloService, apifyService, asanaService, calendlyService, automateService, axiomService, brevoService, calcomService, browserbaseService, cerebrasService, chatgptService, cloudflareService, metaAdsService, closeService, closeBotService, clickUpService, codexService, cohereService, convexService, discordService, elevenLabsService, deepinfraService, deepseekService, firecrawlService, fireworksService, getIntegrationService, githubService, googleGenaiService, googleService, groqService, huggingfaceService, hubspotService, highLevelService, integrationCatalog, jobNimbusService, kitService, krispService, linearService, microsoftService, millionverifierService, mistralService, notionService, openaiService, onePasswordService, openrouterService, perplexityService, postgresService, redditService, resendService, scrapflyService, slackService, squareService, stripeService, tallyService, tidycalService, togetheraiService, trelloService, uberService, vercelAiGatewayService, vercelService, webflowService, whatsappService, xaiService, } from "./catalog.js";
|
|
2
2
|
export { defineIntegrationCatalog, defineIntegrationService, integrationScope, } from "./types.js";
|
|
3
3
|
export { getDashboardRunEndpoint, getDashboardRunEndpointKey, getHttpTriggerEndpoint, getHttpTriggerEndpointKey, getMailhookAddress, getMailhookAddressKey, DASHBOARD_RUN_CONFIG_SCHEMA, getTriggerDefinition, getTriggerName, getTriggerPresentation, isTriggerVisible, PLATFORM_EMAIL_DOMAIN, triggerCatalog, triggerDefinitions, } from "./triggers/index.js";
|
|
4
4
|
export { FORM_FIELDS_SCHEMA, getFormFieldDefaultValue, getFormFieldValueSchema, isFormFieldValueValid, normalizeFormFieldValue, readFormFieldValue, parseFormFields, } from "./form-fields.js";
|
package/dist/triggers/index.d.ts
CHANGED
|
@@ -766,6 +766,126 @@ export declare const triggerDefinitions: {
|
|
|
766
766
|
};
|
|
767
767
|
readonly type: "vercel.alert.triggered";
|
|
768
768
|
};
|
|
769
|
+
readonly uberCourierLocationUpdated: {
|
|
770
|
+
readonly account: {
|
|
771
|
+
readonly connectionOptions: readonly [{
|
|
772
|
+
readonly connectionMethodId: "direct";
|
|
773
|
+
readonly requiredScopes: readonly ["webhooks"];
|
|
774
|
+
}];
|
|
775
|
+
readonly serviceId: "uber";
|
|
776
|
+
};
|
|
777
|
+
readonly type: "uber.courier.locationUpdated";
|
|
778
|
+
};
|
|
779
|
+
readonly uberDeliveryCanceled: {
|
|
780
|
+
readonly account: {
|
|
781
|
+
readonly connectionOptions: readonly [{
|
|
782
|
+
readonly connectionMethodId: "direct";
|
|
783
|
+
readonly requiredScopes: readonly ["webhooks"];
|
|
784
|
+
}];
|
|
785
|
+
readonly serviceId: "uber";
|
|
786
|
+
};
|
|
787
|
+
readonly type: "uber.delivery.canceled";
|
|
788
|
+
};
|
|
789
|
+
readonly uberDeliveryCourierArrivingAtDropoff: {
|
|
790
|
+
readonly account: {
|
|
791
|
+
readonly connectionOptions: readonly [{
|
|
792
|
+
readonly connectionMethodId: "direct";
|
|
793
|
+
readonly requiredScopes: readonly ["webhooks"];
|
|
794
|
+
}];
|
|
795
|
+
readonly serviceId: "uber";
|
|
796
|
+
};
|
|
797
|
+
readonly type: "uber.delivery.courierArrivingAtDropoff";
|
|
798
|
+
};
|
|
799
|
+
readonly uberDeliveryCourierArrivingAtPickup: {
|
|
800
|
+
readonly account: {
|
|
801
|
+
readonly connectionOptions: readonly [{
|
|
802
|
+
readonly connectionMethodId: "direct";
|
|
803
|
+
readonly requiredScopes: readonly ["webhooks"];
|
|
804
|
+
}];
|
|
805
|
+
readonly serviceId: "uber";
|
|
806
|
+
};
|
|
807
|
+
readonly type: "uber.delivery.courierArrivingAtPickup";
|
|
808
|
+
};
|
|
809
|
+
readonly uberDeliveryCourierEnRouteToDropoff: {
|
|
810
|
+
readonly account: {
|
|
811
|
+
readonly connectionOptions: readonly [{
|
|
812
|
+
readonly connectionMethodId: "direct";
|
|
813
|
+
readonly requiredScopes: readonly ["webhooks"];
|
|
814
|
+
}];
|
|
815
|
+
readonly serviceId: "uber";
|
|
816
|
+
};
|
|
817
|
+
readonly type: "uber.delivery.courierEnRouteToDropoff";
|
|
818
|
+
};
|
|
819
|
+
readonly uberDeliveryCourierEnRouteToPickup: {
|
|
820
|
+
readonly account: {
|
|
821
|
+
readonly connectionOptions: readonly [{
|
|
822
|
+
readonly connectionMethodId: "direct";
|
|
823
|
+
readonly requiredScopes: readonly ["webhooks"];
|
|
824
|
+
}];
|
|
825
|
+
readonly serviceId: "uber";
|
|
826
|
+
};
|
|
827
|
+
readonly type: "uber.delivery.courierEnRouteToPickup";
|
|
828
|
+
};
|
|
829
|
+
readonly uberDeliveryDelivered: {
|
|
830
|
+
readonly account: {
|
|
831
|
+
readonly connectionOptions: readonly [{
|
|
832
|
+
readonly connectionMethodId: "direct";
|
|
833
|
+
readonly requiredScopes: readonly ["webhooks"];
|
|
834
|
+
}];
|
|
835
|
+
readonly serviceId: "uber";
|
|
836
|
+
};
|
|
837
|
+
readonly type: "uber.delivery.delivered";
|
|
838
|
+
};
|
|
839
|
+
readonly uberDeliveryEvent: {
|
|
840
|
+
readonly account: {
|
|
841
|
+
readonly connectionOptions: readonly [{
|
|
842
|
+
readonly connectionMethodId: "direct";
|
|
843
|
+
readonly requiredScopes: readonly ["webhooks"];
|
|
844
|
+
}];
|
|
845
|
+
readonly serviceId: "uber";
|
|
846
|
+
};
|
|
847
|
+
readonly type: "uber.delivery.event";
|
|
848
|
+
};
|
|
849
|
+
readonly uberDeliveryPending: {
|
|
850
|
+
readonly account: {
|
|
851
|
+
readonly connectionOptions: readonly [{
|
|
852
|
+
readonly connectionMethodId: "direct";
|
|
853
|
+
readonly requiredScopes: readonly ["webhooks"];
|
|
854
|
+
}];
|
|
855
|
+
readonly serviceId: "uber";
|
|
856
|
+
};
|
|
857
|
+
readonly type: "uber.delivery.pending";
|
|
858
|
+
};
|
|
859
|
+
readonly uberDeliveryPickedUp: {
|
|
860
|
+
readonly account: {
|
|
861
|
+
readonly connectionOptions: readonly [{
|
|
862
|
+
readonly connectionMethodId: "direct";
|
|
863
|
+
readonly requiredScopes: readonly ["webhooks"];
|
|
864
|
+
}];
|
|
865
|
+
readonly serviceId: "uber";
|
|
866
|
+
};
|
|
867
|
+
readonly type: "uber.delivery.pickedUp";
|
|
868
|
+
};
|
|
869
|
+
readonly uberDeliveryReturned: {
|
|
870
|
+
readonly account: {
|
|
871
|
+
readonly connectionOptions: readonly [{
|
|
872
|
+
readonly connectionMethodId: "direct";
|
|
873
|
+
readonly requiredScopes: readonly ["webhooks"];
|
|
874
|
+
}];
|
|
875
|
+
readonly serviceId: "uber";
|
|
876
|
+
};
|
|
877
|
+
readonly type: "uber.delivery.returned";
|
|
878
|
+
};
|
|
879
|
+
readonly uberRefundRequested: {
|
|
880
|
+
readonly account: {
|
|
881
|
+
readonly connectionOptions: readonly [{
|
|
882
|
+
readonly connectionMethodId: "direct";
|
|
883
|
+
readonly requiredScopes: readonly ["webhooks"];
|
|
884
|
+
}];
|
|
885
|
+
readonly serviceId: "uber";
|
|
886
|
+
};
|
|
887
|
+
readonly type: "uber.refund.requested";
|
|
888
|
+
};
|
|
769
889
|
readonly tallyFormEvent: {
|
|
770
890
|
readonly account: {
|
|
771
891
|
readonly connectionOptions: readonly [{
|
|
@@ -19119,6 +19239,126 @@ export declare const triggerCatalog: ({
|
|
|
19119
19239
|
value: string;
|
|
19120
19240
|
};
|
|
19121
19241
|
type: "tally.form.response";
|
|
19242
|
+
} | {
|
|
19243
|
+
name: string;
|
|
19244
|
+
account: {
|
|
19245
|
+
readonly connectionOptions: readonly [{
|
|
19246
|
+
readonly connectionMethodId: "direct";
|
|
19247
|
+
readonly requiredScopes: readonly ["webhooks"];
|
|
19248
|
+
}];
|
|
19249
|
+
readonly serviceId: "uber";
|
|
19250
|
+
};
|
|
19251
|
+
type: "uber.courier.locationUpdated";
|
|
19252
|
+
} | {
|
|
19253
|
+
name: string;
|
|
19254
|
+
account: {
|
|
19255
|
+
readonly connectionOptions: readonly [{
|
|
19256
|
+
readonly connectionMethodId: "direct";
|
|
19257
|
+
readonly requiredScopes: readonly ["webhooks"];
|
|
19258
|
+
}];
|
|
19259
|
+
readonly serviceId: "uber";
|
|
19260
|
+
};
|
|
19261
|
+
type: "uber.delivery.canceled";
|
|
19262
|
+
} | {
|
|
19263
|
+
name: string;
|
|
19264
|
+
account: {
|
|
19265
|
+
readonly connectionOptions: readonly [{
|
|
19266
|
+
readonly connectionMethodId: "direct";
|
|
19267
|
+
readonly requiredScopes: readonly ["webhooks"];
|
|
19268
|
+
}];
|
|
19269
|
+
readonly serviceId: "uber";
|
|
19270
|
+
};
|
|
19271
|
+
type: "uber.delivery.courierArrivingAtDropoff";
|
|
19272
|
+
} | {
|
|
19273
|
+
name: string;
|
|
19274
|
+
account: {
|
|
19275
|
+
readonly connectionOptions: readonly [{
|
|
19276
|
+
readonly connectionMethodId: "direct";
|
|
19277
|
+
readonly requiredScopes: readonly ["webhooks"];
|
|
19278
|
+
}];
|
|
19279
|
+
readonly serviceId: "uber";
|
|
19280
|
+
};
|
|
19281
|
+
type: "uber.delivery.courierArrivingAtPickup";
|
|
19282
|
+
} | {
|
|
19283
|
+
name: string;
|
|
19284
|
+
account: {
|
|
19285
|
+
readonly connectionOptions: readonly [{
|
|
19286
|
+
readonly connectionMethodId: "direct";
|
|
19287
|
+
readonly requiredScopes: readonly ["webhooks"];
|
|
19288
|
+
}];
|
|
19289
|
+
readonly serviceId: "uber";
|
|
19290
|
+
};
|
|
19291
|
+
type: "uber.delivery.courierEnRouteToDropoff";
|
|
19292
|
+
} | {
|
|
19293
|
+
name: string;
|
|
19294
|
+
account: {
|
|
19295
|
+
readonly connectionOptions: readonly [{
|
|
19296
|
+
readonly connectionMethodId: "direct";
|
|
19297
|
+
readonly requiredScopes: readonly ["webhooks"];
|
|
19298
|
+
}];
|
|
19299
|
+
readonly serviceId: "uber";
|
|
19300
|
+
};
|
|
19301
|
+
type: "uber.delivery.courierEnRouteToPickup";
|
|
19302
|
+
} | {
|
|
19303
|
+
name: string;
|
|
19304
|
+
account: {
|
|
19305
|
+
readonly connectionOptions: readonly [{
|
|
19306
|
+
readonly connectionMethodId: "direct";
|
|
19307
|
+
readonly requiredScopes: readonly ["webhooks"];
|
|
19308
|
+
}];
|
|
19309
|
+
readonly serviceId: "uber";
|
|
19310
|
+
};
|
|
19311
|
+
type: "uber.delivery.delivered";
|
|
19312
|
+
} | {
|
|
19313
|
+
name: string;
|
|
19314
|
+
account: {
|
|
19315
|
+
readonly connectionOptions: readonly [{
|
|
19316
|
+
readonly connectionMethodId: "direct";
|
|
19317
|
+
readonly requiredScopes: readonly ["webhooks"];
|
|
19318
|
+
}];
|
|
19319
|
+
readonly serviceId: "uber";
|
|
19320
|
+
};
|
|
19321
|
+
type: "uber.delivery.event";
|
|
19322
|
+
} | {
|
|
19323
|
+
name: string;
|
|
19324
|
+
account: {
|
|
19325
|
+
readonly connectionOptions: readonly [{
|
|
19326
|
+
readonly connectionMethodId: "direct";
|
|
19327
|
+
readonly requiredScopes: readonly ["webhooks"];
|
|
19328
|
+
}];
|
|
19329
|
+
readonly serviceId: "uber";
|
|
19330
|
+
};
|
|
19331
|
+
type: "uber.delivery.pending";
|
|
19332
|
+
} | {
|
|
19333
|
+
name: string;
|
|
19334
|
+
account: {
|
|
19335
|
+
readonly connectionOptions: readonly [{
|
|
19336
|
+
readonly connectionMethodId: "direct";
|
|
19337
|
+
readonly requiredScopes: readonly ["webhooks"];
|
|
19338
|
+
}];
|
|
19339
|
+
readonly serviceId: "uber";
|
|
19340
|
+
};
|
|
19341
|
+
type: "uber.delivery.pickedUp";
|
|
19342
|
+
} | {
|
|
19343
|
+
name: string;
|
|
19344
|
+
account: {
|
|
19345
|
+
readonly connectionOptions: readonly [{
|
|
19346
|
+
readonly connectionMethodId: "direct";
|
|
19347
|
+
readonly requiredScopes: readonly ["webhooks"];
|
|
19348
|
+
}];
|
|
19349
|
+
readonly serviceId: "uber";
|
|
19350
|
+
};
|
|
19351
|
+
type: "uber.delivery.returned";
|
|
19352
|
+
} | {
|
|
19353
|
+
name: string;
|
|
19354
|
+
account: {
|
|
19355
|
+
readonly connectionOptions: readonly [{
|
|
19356
|
+
readonly connectionMethodId: "direct";
|
|
19357
|
+
readonly requiredScopes: readonly ["webhooks"];
|
|
19358
|
+
}];
|
|
19359
|
+
readonly serviceId: "uber";
|
|
19360
|
+
};
|
|
19361
|
+
type: "uber.refund.requested";
|
|
19122
19362
|
} | {
|
|
19123
19363
|
name: string;
|
|
19124
19364
|
account: {
|
package/dist/triggers/index.js
CHANGED
|
@@ -31,6 +31,7 @@ import { squareTriggerDefinitions } from "./square.js";
|
|
|
31
31
|
import { stripeTriggerDefinitions } from "./stripe.js";
|
|
32
32
|
import { trelloTriggerDefinitions } from "./trello.js";
|
|
33
33
|
import { tallyTriggerDefinitions } from "./tally.js";
|
|
34
|
+
import { uberTriggerDefinitions } from "./uber.js";
|
|
34
35
|
import { vercelTriggerDefinitions } from "./vercel.js";
|
|
35
36
|
import { webflowTriggerDefinitions } from "./webflow.js";
|
|
36
37
|
import { whatsappTriggerDefinitions } from "./whatsapp.js";
|
|
@@ -72,6 +73,7 @@ export const triggerDefinitions = {
|
|
|
72
73
|
...stripeTriggerDefinitions,
|
|
73
74
|
...trelloTriggerDefinitions,
|
|
74
75
|
...tallyTriggerDefinitions,
|
|
76
|
+
...uberTriggerDefinitions,
|
|
75
77
|
...vercelTriggerDefinitions,
|
|
76
78
|
...webflowTriggerDefinitions,
|
|
77
79
|
...whatsappTriggerDefinitions,
|
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
export declare const uberTriggerDefinitions: {
|
|
2
|
+
readonly uberCourierLocationUpdated: {
|
|
3
|
+
readonly account: {
|
|
4
|
+
readonly connectionOptions: readonly [{
|
|
5
|
+
readonly connectionMethodId: "direct";
|
|
6
|
+
readonly requiredScopes: readonly ["webhooks"];
|
|
7
|
+
}];
|
|
8
|
+
readonly serviceId: "uber";
|
|
9
|
+
};
|
|
10
|
+
readonly type: "uber.courier.locationUpdated";
|
|
11
|
+
};
|
|
12
|
+
readonly uberDeliveryCanceled: {
|
|
13
|
+
readonly account: {
|
|
14
|
+
readonly connectionOptions: readonly [{
|
|
15
|
+
readonly connectionMethodId: "direct";
|
|
16
|
+
readonly requiredScopes: readonly ["webhooks"];
|
|
17
|
+
}];
|
|
18
|
+
readonly serviceId: "uber";
|
|
19
|
+
};
|
|
20
|
+
readonly type: "uber.delivery.canceled";
|
|
21
|
+
};
|
|
22
|
+
readonly uberDeliveryCourierArrivingAtDropoff: {
|
|
23
|
+
readonly account: {
|
|
24
|
+
readonly connectionOptions: readonly [{
|
|
25
|
+
readonly connectionMethodId: "direct";
|
|
26
|
+
readonly requiredScopes: readonly ["webhooks"];
|
|
27
|
+
}];
|
|
28
|
+
readonly serviceId: "uber";
|
|
29
|
+
};
|
|
30
|
+
readonly type: "uber.delivery.courierArrivingAtDropoff";
|
|
31
|
+
};
|
|
32
|
+
readonly uberDeliveryCourierArrivingAtPickup: {
|
|
33
|
+
readonly account: {
|
|
34
|
+
readonly connectionOptions: readonly [{
|
|
35
|
+
readonly connectionMethodId: "direct";
|
|
36
|
+
readonly requiredScopes: readonly ["webhooks"];
|
|
37
|
+
}];
|
|
38
|
+
readonly serviceId: "uber";
|
|
39
|
+
};
|
|
40
|
+
readonly type: "uber.delivery.courierArrivingAtPickup";
|
|
41
|
+
};
|
|
42
|
+
readonly uberDeliveryCourierEnRouteToDropoff: {
|
|
43
|
+
readonly account: {
|
|
44
|
+
readonly connectionOptions: readonly [{
|
|
45
|
+
readonly connectionMethodId: "direct";
|
|
46
|
+
readonly requiredScopes: readonly ["webhooks"];
|
|
47
|
+
}];
|
|
48
|
+
readonly serviceId: "uber";
|
|
49
|
+
};
|
|
50
|
+
readonly type: "uber.delivery.courierEnRouteToDropoff";
|
|
51
|
+
};
|
|
52
|
+
readonly uberDeliveryCourierEnRouteToPickup: {
|
|
53
|
+
readonly account: {
|
|
54
|
+
readonly connectionOptions: readonly [{
|
|
55
|
+
readonly connectionMethodId: "direct";
|
|
56
|
+
readonly requiredScopes: readonly ["webhooks"];
|
|
57
|
+
}];
|
|
58
|
+
readonly serviceId: "uber";
|
|
59
|
+
};
|
|
60
|
+
readonly type: "uber.delivery.courierEnRouteToPickup";
|
|
61
|
+
};
|
|
62
|
+
readonly uberDeliveryDelivered: {
|
|
63
|
+
readonly account: {
|
|
64
|
+
readonly connectionOptions: readonly [{
|
|
65
|
+
readonly connectionMethodId: "direct";
|
|
66
|
+
readonly requiredScopes: readonly ["webhooks"];
|
|
67
|
+
}];
|
|
68
|
+
readonly serviceId: "uber";
|
|
69
|
+
};
|
|
70
|
+
readonly type: "uber.delivery.delivered";
|
|
71
|
+
};
|
|
72
|
+
readonly uberDeliveryEvent: {
|
|
73
|
+
readonly account: {
|
|
74
|
+
readonly connectionOptions: readonly [{
|
|
75
|
+
readonly connectionMethodId: "direct";
|
|
76
|
+
readonly requiredScopes: readonly ["webhooks"];
|
|
77
|
+
}];
|
|
78
|
+
readonly serviceId: "uber";
|
|
79
|
+
};
|
|
80
|
+
readonly type: "uber.delivery.event";
|
|
81
|
+
};
|
|
82
|
+
readonly uberDeliveryPending: {
|
|
83
|
+
readonly account: {
|
|
84
|
+
readonly connectionOptions: readonly [{
|
|
85
|
+
readonly connectionMethodId: "direct";
|
|
86
|
+
readonly requiredScopes: readonly ["webhooks"];
|
|
87
|
+
}];
|
|
88
|
+
readonly serviceId: "uber";
|
|
89
|
+
};
|
|
90
|
+
readonly type: "uber.delivery.pending";
|
|
91
|
+
};
|
|
92
|
+
readonly uberDeliveryPickedUp: {
|
|
93
|
+
readonly account: {
|
|
94
|
+
readonly connectionOptions: readonly [{
|
|
95
|
+
readonly connectionMethodId: "direct";
|
|
96
|
+
readonly requiredScopes: readonly ["webhooks"];
|
|
97
|
+
}];
|
|
98
|
+
readonly serviceId: "uber";
|
|
99
|
+
};
|
|
100
|
+
readonly type: "uber.delivery.pickedUp";
|
|
101
|
+
};
|
|
102
|
+
readonly uberDeliveryReturned: {
|
|
103
|
+
readonly account: {
|
|
104
|
+
readonly connectionOptions: readonly [{
|
|
105
|
+
readonly connectionMethodId: "direct";
|
|
106
|
+
readonly requiredScopes: readonly ["webhooks"];
|
|
107
|
+
}];
|
|
108
|
+
readonly serviceId: "uber";
|
|
109
|
+
};
|
|
110
|
+
readonly type: "uber.delivery.returned";
|
|
111
|
+
};
|
|
112
|
+
readonly uberRefundRequested: {
|
|
113
|
+
readonly account: {
|
|
114
|
+
readonly connectionOptions: readonly [{
|
|
115
|
+
readonly connectionMethodId: "direct";
|
|
116
|
+
readonly requiredScopes: readonly ["webhooks"];
|
|
117
|
+
}];
|
|
118
|
+
readonly serviceId: "uber";
|
|
119
|
+
};
|
|
120
|
+
readonly type: "uber.refund.requested";
|
|
121
|
+
};
|
|
122
|
+
};
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
const UBER_ACCOUNT = {
|
|
2
|
+
connectionOptions: [
|
|
3
|
+
{ connectionMethodId: "direct", requiredScopes: ["webhooks"] },
|
|
4
|
+
],
|
|
5
|
+
serviceId: "uber",
|
|
6
|
+
};
|
|
7
|
+
export const uberTriggerDefinitions = {
|
|
8
|
+
uberCourierLocationUpdated: trigger("uber.courier.locationUpdated"),
|
|
9
|
+
uberDeliveryCanceled: trigger("uber.delivery.canceled"),
|
|
10
|
+
uberDeliveryCourierArrivingAtDropoff: trigger("uber.delivery.courierArrivingAtDropoff"),
|
|
11
|
+
uberDeliveryCourierArrivingAtPickup: trigger("uber.delivery.courierArrivingAtPickup"),
|
|
12
|
+
uberDeliveryCourierEnRouteToDropoff: trigger("uber.delivery.courierEnRouteToDropoff"),
|
|
13
|
+
uberDeliveryCourierEnRouteToPickup: trigger("uber.delivery.courierEnRouteToPickup"),
|
|
14
|
+
uberDeliveryDelivered: trigger("uber.delivery.delivered"),
|
|
15
|
+
uberDeliveryEvent: trigger("uber.delivery.event"),
|
|
16
|
+
uberDeliveryPending: trigger("uber.delivery.pending"),
|
|
17
|
+
uberDeliveryPickedUp: trigger("uber.delivery.pickedUp"),
|
|
18
|
+
uberDeliveryReturned: trigger("uber.delivery.returned"),
|
|
19
|
+
uberRefundRequested: trigger("uber.refund.requested"),
|
|
20
|
+
};
|
|
21
|
+
/**
|
|
22
|
+
* Creates an Uber Direct trigger catalog entry backed by a signed webhook.
|
|
23
|
+
*
|
|
24
|
+
* @param type - Stable event type.
|
|
25
|
+
*/
|
|
26
|
+
function trigger(type) {
|
|
27
|
+
return { account: UBER_ACCOUNT, type };
|
|
28
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@automate.ax/catalog",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.165.1",
|
|
4
4
|
"description": "Shared integration service and trigger definitions for Automate.ax.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"homepage": "https://docs.automate.ax",
|
|
@@ -51,6 +51,7 @@
|
|
|
51
51
|
"./triggers/stripe": "./src/triggers/stripe.ts",
|
|
52
52
|
"./triggers/tally": "./src/triggers/tally.ts",
|
|
53
53
|
"./triggers/trello": "./src/triggers/trello.ts",
|
|
54
|
+
"./triggers/uber": "./src/triggers/uber.ts",
|
|
54
55
|
"./triggers/vercel": "./src/triggers/vercel.ts",
|
|
55
56
|
"./triggers/webflow": "./src/triggers/webflow.ts",
|
|
56
57
|
"./triggers/whatsapp": "./src/triggers/whatsapp.ts"
|
|
@@ -297,6 +298,11 @@
|
|
|
297
298
|
"types": "./dist/triggers/trello.d.ts",
|
|
298
299
|
"default": "./dist/triggers/trello.js"
|
|
299
300
|
},
|
|
301
|
+
"./triggers/uber": {
|
|
302
|
+
"bun": "./src/triggers/uber.ts",
|
|
303
|
+
"types": "./dist/triggers/uber.d.ts",
|
|
304
|
+
"default": "./dist/triggers/uber.js"
|
|
305
|
+
},
|
|
300
306
|
"./triggers/vercel": {
|
|
301
307
|
"bun": "./src/triggers/vercel.ts",
|
|
302
308
|
"types": "./dist/triggers/vercel.d.ts",
|
package/src/catalog.ts
CHANGED
|
@@ -1019,6 +1019,51 @@ export const trelloService = defineIntegrationService({
|
|
|
1019
1019
|
name: "Trello",
|
|
1020
1020
|
})
|
|
1021
1021
|
|
|
1022
|
+
export const uberService = defineIntegrationService({
|
|
1023
|
+
connectionMethods: [
|
|
1024
|
+
{
|
|
1025
|
+
credentialUrl: "https://direct.uber.com/",
|
|
1026
|
+
description:
|
|
1027
|
+
"Use the client ID, client secret, and customer ID from the Developer tab of the Uber Direct dashboard.",
|
|
1028
|
+
fields: [
|
|
1029
|
+
{
|
|
1030
|
+
input: "text",
|
|
1031
|
+
label: "Client ID",
|
|
1032
|
+
name: "clientId",
|
|
1033
|
+
required: true,
|
|
1034
|
+
},
|
|
1035
|
+
{
|
|
1036
|
+
input: "password",
|
|
1037
|
+
label: "Client secret",
|
|
1038
|
+
name: "clientSecret",
|
|
1039
|
+
required: true,
|
|
1040
|
+
},
|
|
1041
|
+
{
|
|
1042
|
+
input: "text",
|
|
1043
|
+
label: "Customer ID",
|
|
1044
|
+
name: "customerId",
|
|
1045
|
+
required: true,
|
|
1046
|
+
},
|
|
1047
|
+
{
|
|
1048
|
+
description:
|
|
1049
|
+
"Required for triggers. Point an Uber Direct webhook at https://automate.ax/api/v1/events/uber/ followed by your customer ID, then paste its signing key.",
|
|
1050
|
+
input: "password",
|
|
1051
|
+
label: "Webhook signing key",
|
|
1052
|
+
name: "webhookSigningKey",
|
|
1053
|
+
required: false,
|
|
1054
|
+
},
|
|
1055
|
+
],
|
|
1056
|
+
id: "direct",
|
|
1057
|
+
name: "Uber Direct",
|
|
1058
|
+
type: "form",
|
|
1059
|
+
},
|
|
1060
|
+
],
|
|
1061
|
+
description:
|
|
1062
|
+
"Connect Uber Direct for courier delivery quotes, deliveries, proof of delivery, and signed delivery events.",
|
|
1063
|
+
id: "uber",
|
|
1064
|
+
name: "Uber",
|
|
1065
|
+
})
|
|
1066
|
+
|
|
1022
1067
|
export const vercelAiGatewayService = defineApiKeyService({
|
|
1023
1068
|
description: "Connect a Vercel AI Gateway API key.",
|
|
1024
1069
|
icon: "vercel",
|
|
@@ -1140,6 +1185,7 @@ export const integrationCatalog = defineIntegrationCatalog([
|
|
|
1140
1185
|
tidycalService,
|
|
1141
1186
|
togetheraiService,
|
|
1142
1187
|
trelloService,
|
|
1188
|
+
uberService,
|
|
1143
1189
|
vercelAiGatewayService,
|
|
1144
1190
|
vercelService,
|
|
1145
1191
|
webflowService,
|
package/src/index.ts
CHANGED
package/src/triggers/index.ts
CHANGED
|
@@ -31,6 +31,7 @@ import { squareTriggerDefinitions } from "./square"
|
|
|
31
31
|
import { stripeTriggerDefinitions } from "./stripe"
|
|
32
32
|
import { trelloTriggerDefinitions } from "./trello"
|
|
33
33
|
import { tallyTriggerDefinitions } from "./tally"
|
|
34
|
+
import { uberTriggerDefinitions } from "./uber"
|
|
34
35
|
import { vercelTriggerDefinitions } from "./vercel"
|
|
35
36
|
import { webflowTriggerDefinitions } from "./webflow"
|
|
36
37
|
import { whatsappTriggerDefinitions } from "./whatsapp"
|
|
@@ -95,6 +96,7 @@ export const triggerDefinitions = {
|
|
|
95
96
|
...stripeTriggerDefinitions,
|
|
96
97
|
...trelloTriggerDefinitions,
|
|
97
98
|
...tallyTriggerDefinitions,
|
|
99
|
+
...uberTriggerDefinitions,
|
|
98
100
|
...vercelTriggerDefinitions,
|
|
99
101
|
...webflowTriggerDefinitions,
|
|
100
102
|
...whatsappTriggerDefinitions,
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import type { IntegrationAccountRequirement, TriggerDefinition } from "../types"
|
|
2
|
+
|
|
3
|
+
const UBER_ACCOUNT = {
|
|
4
|
+
connectionOptions: [
|
|
5
|
+
{ connectionMethodId: "direct", requiredScopes: ["webhooks"] },
|
|
6
|
+
],
|
|
7
|
+
serviceId: "uber",
|
|
8
|
+
} as const satisfies IntegrationAccountRequirement
|
|
9
|
+
|
|
10
|
+
export const uberTriggerDefinitions = {
|
|
11
|
+
uberCourierLocationUpdated: trigger("uber.courier.locationUpdated"),
|
|
12
|
+
uberDeliveryCanceled: trigger("uber.delivery.canceled"),
|
|
13
|
+
uberDeliveryCourierArrivingAtDropoff: trigger(
|
|
14
|
+
"uber.delivery.courierArrivingAtDropoff",
|
|
15
|
+
),
|
|
16
|
+
uberDeliveryCourierArrivingAtPickup: trigger(
|
|
17
|
+
"uber.delivery.courierArrivingAtPickup",
|
|
18
|
+
),
|
|
19
|
+
uberDeliveryCourierEnRouteToDropoff: trigger(
|
|
20
|
+
"uber.delivery.courierEnRouteToDropoff",
|
|
21
|
+
),
|
|
22
|
+
uberDeliveryCourierEnRouteToPickup: trigger(
|
|
23
|
+
"uber.delivery.courierEnRouteToPickup",
|
|
24
|
+
),
|
|
25
|
+
uberDeliveryDelivered: trigger("uber.delivery.delivered"),
|
|
26
|
+
uberDeliveryEvent: trigger("uber.delivery.event"),
|
|
27
|
+
uberDeliveryPending: trigger("uber.delivery.pending"),
|
|
28
|
+
uberDeliveryPickedUp: trigger("uber.delivery.pickedUp"),
|
|
29
|
+
uberDeliveryReturned: trigger("uber.delivery.returned"),
|
|
30
|
+
uberRefundRequested: trigger("uber.refund.requested"),
|
|
31
|
+
} as const satisfies Record<string, TriggerDefinition>
|
|
32
|
+
|
|
33
|
+
/**
|
|
34
|
+
* Creates an Uber Direct trigger catalog entry backed by a signed webhook.
|
|
35
|
+
*
|
|
36
|
+
* @param type - Stable event type.
|
|
37
|
+
*/
|
|
38
|
+
function trigger<const TType extends string>(type: TType) {
|
|
39
|
+
return { account: UBER_ACCOUNT, type } as const
|
|
40
|
+
}
|