@ultracart/bq-skill 0.1.2
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 +191 -0
- package/README.md +952 -0
- package/dist/cli.d.ts +3 -0
- package/dist/cli.d.ts.map +1 -0
- package/dist/cli.js +42 -0
- package/dist/cli.js.map +1 -0
- package/dist/commands/alarm.d.ts +3 -0
- package/dist/commands/alarm.d.ts.map +1 -0
- package/dist/commands/alarm.js +146 -0
- package/dist/commands/alarm.js.map +1 -0
- package/dist/commands/config.d.ts +3 -0
- package/dist/commands/config.d.ts.map +1 -0
- package/dist/commands/config.js +749 -0
- package/dist/commands/config.js.map +1 -0
- package/dist/commands/deck.d.ts +3 -0
- package/dist/commands/deck.d.ts.map +1 -0
- package/dist/commands/deck.js +567 -0
- package/dist/commands/deck.js.map +1 -0
- package/dist/commands/dry-run.d.ts +3 -0
- package/dist/commands/dry-run.d.ts.map +1 -0
- package/dist/commands/dry-run.js +105 -0
- package/dist/commands/dry-run.js.map +1 -0
- package/dist/commands/history.d.ts +3 -0
- package/dist/commands/history.d.ts.map +1 -0
- package/dist/commands/history.js +127 -0
- package/dist/commands/history.js.map +1 -0
- package/dist/commands/init.d.ts +3 -0
- package/dist/commands/init.d.ts.map +1 -0
- package/dist/commands/init.js +302 -0
- package/dist/commands/init.js.map +1 -0
- package/dist/commands/install-skill.d.ts +3 -0
- package/dist/commands/install-skill.d.ts.map +1 -0
- package/dist/commands/install-skill.js +132 -0
- package/dist/commands/install-skill.js.map +1 -0
- package/dist/commands/list.d.ts +3 -0
- package/dist/commands/list.d.ts.map +1 -0
- package/dist/commands/list.js +89 -0
- package/dist/commands/list.js.map +1 -0
- package/dist/commands/query.d.ts +3 -0
- package/dist/commands/query.d.ts.map +1 -0
- package/dist/commands/query.js +152 -0
- package/dist/commands/query.js.map +1 -0
- package/dist/commands/render.d.ts +3 -0
- package/dist/commands/render.d.ts.map +1 -0
- package/dist/commands/render.js +107 -0
- package/dist/commands/render.js.map +1 -0
- package/dist/commands/run-all.d.ts +3 -0
- package/dist/commands/run-all.d.ts.map +1 -0
- package/dist/commands/run-all.js +285 -0
- package/dist/commands/run-all.js.map +1 -0
- package/dist/commands/run.d.ts +3 -0
- package/dist/commands/run.d.ts.map +1 -0
- package/dist/commands/run.js +321 -0
- package/dist/commands/run.js.map +1 -0
- package/dist/commands/schema.d.ts +3 -0
- package/dist/commands/schema.d.ts.map +1 -0
- package/dist/commands/schema.js +271 -0
- package/dist/commands/schema.js.map +1 -0
- package/dist/commands/validate.d.ts +3 -0
- package/dist/commands/validate.d.ts.map +1 -0
- package/dist/commands/validate.js +109 -0
- package/dist/commands/validate.js.map +1 -0
- package/dist/lib/alarm-notify.d.ts +16 -0
- package/dist/lib/alarm-notify.d.ts.map +1 -0
- package/dist/lib/alarm-notify.js +312 -0
- package/dist/lib/alarm-notify.js.map +1 -0
- package/dist/lib/alarm-state.d.ts +26 -0
- package/dist/lib/alarm-state.d.ts.map +1 -0
- package/dist/lib/alarm-state.js +118 -0
- package/dist/lib/alarm-state.js.map +1 -0
- package/dist/lib/alarm.d.ts +28 -0
- package/dist/lib/alarm.d.ts.map +1 -0
- package/dist/lib/alarm.js +215 -0
- package/dist/lib/alarm.js.map +1 -0
- package/dist/lib/analysis.d.ts +16 -0
- package/dist/lib/analysis.d.ts.map +1 -0
- package/dist/lib/analysis.js +134 -0
- package/dist/lib/analysis.js.map +1 -0
- package/dist/lib/bigquery.d.ts +55 -0
- package/dist/lib/bigquery.d.ts.map +1 -0
- package/dist/lib/bigquery.js +321 -0
- package/dist/lib/bigquery.js.map +1 -0
- package/dist/lib/config-writer.d.ts +3 -0
- package/dist/lib/config-writer.d.ts.map +1 -0
- package/dist/lib/config-writer.js +60 -0
- package/dist/lib/config-writer.js.map +1 -0
- package/dist/lib/config.d.ts +63 -0
- package/dist/lib/config.d.ts.map +1 -0
- package/dist/lib/config.js +151 -0
- package/dist/lib/config.js.map +1 -0
- package/dist/lib/dashboard.d.ts +3 -0
- package/dist/lib/dashboard.d.ts.map +1 -0
- package/dist/lib/dashboard.js +468 -0
- package/dist/lib/dashboard.js.map +1 -0
- package/dist/lib/deck.d.ts +58 -0
- package/dist/lib/deck.d.ts.map +1 -0
- package/dist/lib/deck.js +232 -0
- package/dist/lib/deck.js.map +1 -0
- package/dist/lib/deliver-email.d.ts +14 -0
- package/dist/lib/deliver-email.d.ts.map +1 -0
- package/dist/lib/deliver-email.js +360 -0
- package/dist/lib/deliver-email.js.map +1 -0
- package/dist/lib/deliver-slack.d.ts +6 -0
- package/dist/lib/deliver-slack.d.ts.map +1 -0
- package/dist/lib/deliver-slack.js +73 -0
- package/dist/lib/deliver-slack.js.map +1 -0
- package/dist/lib/deliver.d.ts +10 -0
- package/dist/lib/deliver.d.ts.map +1 -0
- package/dist/lib/deliver.js +95 -0
- package/dist/lib/deliver.js.map +1 -0
- package/dist/lib/llm/anthropic.d.ts +7 -0
- package/dist/lib/llm/anthropic.d.ts.map +1 -0
- package/dist/lib/llm/anthropic.js +69 -0
- package/dist/lib/llm/anthropic.js.map +1 -0
- package/dist/lib/llm/bedrock.d.ts +7 -0
- package/dist/lib/llm/bedrock.d.ts.map +1 -0
- package/dist/lib/llm/bedrock.js +67 -0
- package/dist/lib/llm/bedrock.js.map +1 -0
- package/dist/lib/llm/gemini.d.ts +7 -0
- package/dist/lib/llm/gemini.d.ts.map +1 -0
- package/dist/lib/llm/gemini.js +67 -0
- package/dist/lib/llm/gemini.js.map +1 -0
- package/dist/lib/llm/index.d.ts +5 -0
- package/dist/lib/llm/index.d.ts.map +1 -0
- package/dist/lib/llm/index.js +61 -0
- package/dist/lib/llm/index.js.map +1 -0
- package/dist/lib/llm/models.d.ts +5 -0
- package/dist/lib/llm/models.d.ts.map +1 -0
- package/dist/lib/llm/models.js +33 -0
- package/dist/lib/llm/models.js.map +1 -0
- package/dist/lib/llm/openai.d.ts +8 -0
- package/dist/lib/llm/openai.d.ts.map +1 -0
- package/dist/lib/llm/openai.js +48 -0
- package/dist/lib/llm/openai.js.map +1 -0
- package/dist/lib/llm/provider.d.ts +28 -0
- package/dist/lib/llm/provider.d.ts.map +1 -0
- package/dist/lib/llm/provider.js +3 -0
- package/dist/lib/llm/provider.js.map +1 -0
- package/dist/lib/manifest.d.ts +95 -0
- package/dist/lib/manifest.d.ts.map +1 -0
- package/dist/lib/manifest.js +105 -0
- package/dist/lib/manifest.js.map +1 -0
- package/dist/lib/params.d.ts +27 -0
- package/dist/lib/params.d.ts.map +1 -0
- package/dist/lib/params.js +192 -0
- package/dist/lib/params.js.map +1 -0
- package/dist/lib/pdf.d.ts +8 -0
- package/dist/lib/pdf.d.ts.map +1 -0
- package/dist/lib/pdf.js +86 -0
- package/dist/lib/pdf.js.map +1 -0
- package/dist/lib/renderer.d.ts +17 -0
- package/dist/lib/renderer.d.ts.map +1 -0
- package/dist/lib/renderer.js +166 -0
- package/dist/lib/renderer.js.map +1 -0
- package/dist/lib/schema-filter.d.ts +3 -0
- package/dist/lib/schema-filter.d.ts.map +1 -0
- package/dist/lib/schema-filter.js +49 -0
- package/dist/lib/schema-filter.js.map +1 -0
- package/dist/lib/template.d.ts +4 -0
- package/dist/lib/template.d.ts.map +1 -0
- package/dist/lib/template.js +37 -0
- package/dist/lib/template.js.map +1 -0
- package/dist/lib/validator.d.ts +8 -0
- package/dist/lib/validator.d.ts.map +1 -0
- package/dist/lib/validator.js +88 -0
- package/dist/lib/validator.js.map +1 -0
- package/package.json +59 -0
- package/schemas/deck.schema.json +122 -0
- package/schemas/report-manifest.schema.json +309 -0
- package/schemas/tables/README.md +45 -0
- package/schemas/tables/ultracart_dw/uc_affiliate_clicks.json +186 -0
- package/schemas/tables/ultracart_dw/uc_affiliate_commission_groups.json +317 -0
- package/schemas/tables/ultracart_dw/uc_affiliate_ledgers.json +404 -0
- package/schemas/tables/ultracart_dw/uc_affiliate_network_pixel_postback_logs.json +166 -0
- package/schemas/tables/ultracart_dw/uc_affiliate_network_pixels.json +106 -0
- package/schemas/tables/ultracart_dw/uc_affiliate_payments.json +204 -0
- package/schemas/tables/ultracart_dw/uc_affiliate_postback_logs.json +90 -0
- package/schemas/tables/ultracart_dw/uc_affiliates.json +425 -0
- package/schemas/tables/ultracart_dw/uc_auto_orders.json +13848 -0
- package/schemas/tables/ultracart_dw/uc_cart_abandons.json +3971 -0
- package/schemas/tables/ultracart_dw/uc_conversation_pbx_calls.json +374 -0
- package/schemas/tables/ultracart_dw/uc_conversations.json +374 -0
- package/schemas/tables/ultracart_dw/uc_coupons.json +1893 -0
- package/schemas/tables/ultracart_dw/uc_customers.json +11886 -0
- package/schemas/tables/ultracart_dw/uc_fraud_rules.json +239 -0
- package/schemas/tables/ultracart_dw/uc_gift_certificates.json +135 -0
- package/schemas/tables/ultracart_dw/uc_item_inventory_history.json +79 -0
- package/schemas/tables/ultracart_dw/uc_items.json +4437 -0
- package/schemas/tables/ultracart_dw/uc_orders.json +6629 -0
- package/schemas/tables/ultracart_dw/uc_rotating_transaction_gateway_history.json +271 -0
- package/schemas/tables/ultracart_dw/uc_rotating_transaction_gateways.json +416 -0
- package/schemas/tables/ultracart_dw/uc_shipping_methods.json +1372 -0
- package/schemas/tables/ultracart_dw/uc_storefront_customers.json +261 -0
- package/schemas/tables/ultracart_dw/uc_storefront_experiments.json +386 -0
- package/schemas/tables/ultracart_dw/uc_storefront_pages.json +513 -0
- package/schemas/tables/ultracart_dw/uc_storefront_upsell_offer_events.json +338 -0
- package/schemas/tables/ultracart_dw/uc_storefront_upsell_offers.json +431 -0
- package/schemas/tables/ultracart_dw/uc_storefront_upsell_paths.json +163 -0
- package/schemas/tables/ultracart_dw/uc_storefronts.json +62 -0
- package/schemas/tables/ultracart_dw/uc_surveys.json +238 -0
- package/schemas/tables/ultracart_dw/uc_workflow_tasks.json +377 -0
- package/schemas/tables/ultracart_dw/uc_zoho_desk_tickets.json +1184 -0
- package/schemas/tables/ultracart_dw_high/uc_affiliate_clicks.json +186 -0
- package/schemas/tables/ultracart_dw_high/uc_affiliate_commission_groups.json +317 -0
- package/schemas/tables/ultracart_dw_high/uc_affiliate_ledgers.json +404 -0
- package/schemas/tables/ultracart_dw_high/uc_affiliate_network_pixel_postback_logs.json +166 -0
- package/schemas/tables/ultracart_dw_high/uc_affiliate_network_pixels.json +106 -0
- package/schemas/tables/ultracart_dw_high/uc_affiliate_payments.json +204 -0
- package/schemas/tables/ultracart_dw_high/uc_affiliate_postback_logs.json +90 -0
- package/schemas/tables/ultracart_dw_high/uc_affiliates.json +425 -0
- package/schemas/tables/ultracart_dw_high/uc_auto_orders.json +14332 -0
- package/schemas/tables/ultracart_dw_high/uc_cart_abandons.json +4245 -0
- package/schemas/tables/ultracart_dw_high/uc_conversation_pbx_calls.json +415 -0
- package/schemas/tables/ultracart_dw_high/uc_conversations.json +415 -0
- package/schemas/tables/ultracart_dw_high/uc_coupons.json +1893 -0
- package/schemas/tables/ultracart_dw_high/uc_customers.json +12250 -0
- package/schemas/tables/ultracart_dw_high/uc_fraud_rules.json +239 -0
- package/schemas/tables/ultracart_dw_high/uc_gift_certificates.json +135 -0
- package/schemas/tables/ultracart_dw_high/uc_item_inventory_history.json +79 -0
- package/schemas/tables/ultracart_dw_high/uc_items.json +4437 -0
- package/schemas/tables/ultracart_dw_high/uc_orders.json +6871 -0
- package/schemas/tables/ultracart_dw_high/uc_rotating_transaction_gateway_history.json +271 -0
- package/schemas/tables/ultracart_dw_high/uc_rotating_transaction_gateways.json +416 -0
- package/schemas/tables/ultracart_dw_high/uc_shipping_methods.json +1372 -0
- package/schemas/tables/ultracart_dw_high/uc_storefront_customers.json +261 -0
- package/schemas/tables/ultracart_dw_high/uc_storefront_experiments.json +386 -0
- package/schemas/tables/ultracart_dw_high/uc_storefront_pages.json +513 -0
- package/schemas/tables/ultracart_dw_high/uc_storefront_upsell_offer_events.json +338 -0
- package/schemas/tables/ultracart_dw_high/uc_storefront_upsell_offers.json +431 -0
- package/schemas/tables/ultracart_dw_high/uc_storefront_upsell_paths.json +163 -0
- package/schemas/tables/ultracart_dw_high/uc_storefronts.json +62 -0
- package/schemas/tables/ultracart_dw_high/uc_surveys.json +269 -0
- package/schemas/tables/ultracart_dw_high/uc_workflow_tasks.json +377 -0
- package/schemas/tables/ultracart_dw_high/uc_zoho_desk_tickets.json +1330 -0
- package/schemas/tables/ultracart_dw_low/uc_affiliate_clicks.json +186 -0
- package/schemas/tables/ultracart_dw_low/uc_affiliate_commission_groups.json +317 -0
- package/schemas/tables/ultracart_dw_low/uc_affiliate_ledgers.json +404 -0
- package/schemas/tables/ultracart_dw_low/uc_affiliate_network_pixel_postback_logs.json +166 -0
- package/schemas/tables/ultracart_dw_low/uc_affiliate_network_pixels.json +106 -0
- package/schemas/tables/ultracart_dw_low/uc_affiliate_payments.json +204 -0
- package/schemas/tables/ultracart_dw_low/uc_affiliate_postback_logs.json +90 -0
- package/schemas/tables/ultracart_dw_low/uc_affiliates.json +425 -0
- package/schemas/tables/ultracart_dw_low/uc_auto_orders.json +13868 -0
- package/schemas/tables/ultracart_dw_low/uc_cart_abandons.json +3971 -0
- package/schemas/tables/ultracart_dw_low/uc_conversation_pbx_calls.json +374 -0
- package/schemas/tables/ultracart_dw_low/uc_conversations.json +374 -0
- package/schemas/tables/ultracart_dw_low/uc_coupons.json +1893 -0
- package/schemas/tables/ultracart_dw_low/uc_customers.json +11900 -0
- package/schemas/tables/ultracart_dw_low/uc_fraud_rules.json +239 -0
- package/schemas/tables/ultracart_dw_low/uc_gift_certificates.json +135 -0
- package/schemas/tables/ultracart_dw_low/uc_item_inventory_history.json +79 -0
- package/schemas/tables/ultracart_dw_low/uc_items.json +4437 -0
- package/schemas/tables/ultracart_dw_low/uc_orders.json +6639 -0
- package/schemas/tables/ultracart_dw_low/uc_rotating_transaction_gateway_history.json +271 -0
- package/schemas/tables/ultracart_dw_low/uc_rotating_transaction_gateways.json +416 -0
- package/schemas/tables/ultracart_dw_low/uc_shipping_methods.json +1372 -0
- package/schemas/tables/ultracart_dw_low/uc_storefront_customers.json +261 -0
- package/schemas/tables/ultracart_dw_low/uc_storefront_experiments.json +386 -0
- package/schemas/tables/ultracart_dw_low/uc_storefront_pages.json +513 -0
- package/schemas/tables/ultracart_dw_low/uc_storefront_upsell_offer_events.json +338 -0
- package/schemas/tables/ultracart_dw_low/uc_storefront_upsell_offers.json +431 -0
- package/schemas/tables/ultracart_dw_low/uc_storefront_upsell_paths.json +163 -0
- package/schemas/tables/ultracart_dw_low/uc_storefronts.json +62 -0
- package/schemas/tables/ultracart_dw_low/uc_surveys.json +238 -0
- package/schemas/tables/ultracart_dw_low/uc_workflow_tasks.json +377 -0
- package/schemas/tables/ultracart_dw_low/uc_zoho_desk_tickets.json +1184 -0
- package/schemas/tables/ultracart_dw_medium/uc_affiliate_clicks.json +186 -0
- package/schemas/tables/ultracart_dw_medium/uc_affiliate_commission_groups.json +317 -0
- package/schemas/tables/ultracart_dw_medium/uc_affiliate_ledgers.json +404 -0
- package/schemas/tables/ultracart_dw_medium/uc_affiliate_network_pixel_postback_logs.json +166 -0
- package/schemas/tables/ultracart_dw_medium/uc_affiliate_network_pixels.json +106 -0
- package/schemas/tables/ultracart_dw_medium/uc_affiliate_payments.json +204 -0
- package/schemas/tables/ultracart_dw_medium/uc_affiliate_postback_logs.json +90 -0
- package/schemas/tables/ultracart_dw_medium/uc_affiliates.json +425 -0
- package/schemas/tables/ultracart_dw_medium/uc_auto_orders.json +14320 -0
- package/schemas/tables/ultracart_dw_medium/uc_cart_abandons.json +4245 -0
- package/schemas/tables/ultracart_dw_medium/uc_conversation_pbx_calls.json +415 -0
- package/schemas/tables/ultracart_dw_medium/uc_conversations.json +415 -0
- package/schemas/tables/ultracart_dw_medium/uc_coupons.json +1893 -0
- package/schemas/tables/ultracart_dw_medium/uc_customers.json +12250 -0
- package/schemas/tables/ultracart_dw_medium/uc_fraud_rules.json +239 -0
- package/schemas/tables/ultracart_dw_medium/uc_gift_certificates.json +135 -0
- package/schemas/tables/ultracart_dw_medium/uc_item_inventory_history.json +79 -0
- package/schemas/tables/ultracart_dw_medium/uc_items.json +4437 -0
- package/schemas/tables/ultracart_dw_medium/uc_orders.json +6865 -0
- package/schemas/tables/ultracart_dw_medium/uc_rotating_transaction_gateway_history.json +271 -0
- package/schemas/tables/ultracart_dw_medium/uc_rotating_transaction_gateways.json +416 -0
- package/schemas/tables/ultracart_dw_medium/uc_shipping_methods.json +1372 -0
- package/schemas/tables/ultracart_dw_medium/uc_storefront_customers.json +261 -0
- package/schemas/tables/ultracart_dw_medium/uc_storefront_experiments.json +386 -0
- package/schemas/tables/ultracart_dw_medium/uc_storefront_pages.json +513 -0
- package/schemas/tables/ultracart_dw_medium/uc_storefront_upsell_offer_events.json +338 -0
- package/schemas/tables/ultracart_dw_medium/uc_storefront_upsell_offers.json +431 -0
- package/schemas/tables/ultracart_dw_medium/uc_storefront_upsell_paths.json +163 -0
- package/schemas/tables/ultracart_dw_medium/uc_storefronts.json +62 -0
- package/schemas/tables/ultracart_dw_medium/uc_surveys.json +269 -0
- package/schemas/tables/ultracart_dw_medium/uc_workflow_tasks.json +377 -0
- package/schemas/tables/ultracart_dw_medium/uc_zoho_desk_tickets.json +1330 -0
- package/schemas/tables/ultracart_dw_streaming/uc_analytics_session_streaming.json +2444 -0
- package/schemas/tables/ultracart_dw_streaming/uc_screen_recording_streaming.json +509 -0
- package/schemas/ultracart-bq-config.schema.json +140 -0
- package/skill/skill.md +1228 -0
- package/templates/render.html +73 -0
|
@@ -0,0 +1,317 @@
|
|
|
1
|
+
[
|
|
2
|
+
{
|
|
3
|
+
"mode": "NULLABLE",
|
|
4
|
+
"name": "partition_oid",
|
|
5
|
+
"type": "INTEGER"
|
|
6
|
+
},
|
|
7
|
+
{
|
|
8
|
+
"mode": "NULLABLE",
|
|
9
|
+
"name": "affiliate_commission_group_oid",
|
|
10
|
+
"description": "Unique object identifier for this commission group",
|
|
11
|
+
"type": "INTEGER"
|
|
12
|
+
},
|
|
13
|
+
{
|
|
14
|
+
"mode": "NULLABLE",
|
|
15
|
+
"name": "name",
|
|
16
|
+
"description": "Name of the commission group",
|
|
17
|
+
"type": "STRING"
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
"mode": "NULLABLE",
|
|
21
|
+
"name": "default_commission_group",
|
|
22
|
+
"description": "True if this is the default group new affiliate signups are placed into",
|
|
23
|
+
"type": "BOOLEAN"
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
"mode": "NULLABLE",
|
|
27
|
+
"name": "hide_recruiting_link",
|
|
28
|
+
"description": "True if the recruiting link for downline tiers is hidden for this commission group",
|
|
29
|
+
"type": "BOOLEAN"
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
"mode": "REPEATED",
|
|
33
|
+
"name": "global_commissions",
|
|
34
|
+
"description": "The global commissions for each tier",
|
|
35
|
+
"type": "RECORD",
|
|
36
|
+
"fields": [
|
|
37
|
+
{
|
|
38
|
+
"mode": "NULLABLE",
|
|
39
|
+
"name": "tier_number",
|
|
40
|
+
"description": "Tier number",
|
|
41
|
+
"type": "INTEGER"
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
"mode": "NULLABLE",
|
|
45
|
+
"name": "commission_percentage",
|
|
46
|
+
"description": "Percentage commission",
|
|
47
|
+
"type": "NUMERIC"
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
"mode": "NULLABLE",
|
|
51
|
+
"name": "minimum_commission",
|
|
52
|
+
"description": "The minimum commission paid out for an order",
|
|
53
|
+
"type": "NUMERIC"
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
"mode": "NULLABLE",
|
|
57
|
+
"name": "maximum_commission",
|
|
58
|
+
"description": "The maximum commission paid out for an order",
|
|
59
|
+
"type": "NUMERIC"
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
"mode": "NULLABLE",
|
|
63
|
+
"name": "fixed_commission",
|
|
64
|
+
"description": "A fixed commission paid out for an order",
|
|
65
|
+
"type": "NUMERIC"
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
"mode": "NULLABLE",
|
|
69
|
+
"name": "description",
|
|
70
|
+
"description": "Description of the tier",
|
|
71
|
+
"type": "STRING"
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
"mode": "NULLABLE",
|
|
75
|
+
"name": "commission_percentage_repeat_customer",
|
|
76
|
+
"description": "Percentage commission",
|
|
77
|
+
"type": "NUMERIC"
|
|
78
|
+
},
|
|
79
|
+
{
|
|
80
|
+
"mode": "NULLABLE",
|
|
81
|
+
"name": "minimum_commission_repeat_customer",
|
|
82
|
+
"description": "The minimum commission paid out for an order when they are repeat customers",
|
|
83
|
+
"type": "NUMERIC"
|
|
84
|
+
},
|
|
85
|
+
{
|
|
86
|
+
"mode": "NULLABLE",
|
|
87
|
+
"name": "maximum_commission_repeat_customer",
|
|
88
|
+
"description": "The maximum commission paid out for an order when they are repeat customers",
|
|
89
|
+
"type": "NUMERIC"
|
|
90
|
+
},
|
|
91
|
+
{
|
|
92
|
+
"mode": "NULLABLE",
|
|
93
|
+
"name": "fixed_commission_repeat_customer",
|
|
94
|
+
"description": "A fixed commission paid out for an order when they are repeat customers",
|
|
95
|
+
"type": "NUMERIC"
|
|
96
|
+
}
|
|
97
|
+
]
|
|
98
|
+
},
|
|
99
|
+
{
|
|
100
|
+
"mode": "REPEATED",
|
|
101
|
+
"name": "items",
|
|
102
|
+
"description": "Items configured with specific commissions for this group",
|
|
103
|
+
"type": "RECORD",
|
|
104
|
+
"fields": [
|
|
105
|
+
{
|
|
106
|
+
"mode": "NULLABLE",
|
|
107
|
+
"name": "affiliate_program_item_oid",
|
|
108
|
+
"description": "Unique object identifier for this affiliate program item object",
|
|
109
|
+
"type": "INTEGER"
|
|
110
|
+
},
|
|
111
|
+
{
|
|
112
|
+
"mode": "NULLABLE",
|
|
113
|
+
"name": "merchant_item_oid",
|
|
114
|
+
"description": "The item object identifier this affiliate program item is associated with",
|
|
115
|
+
"type": "INTEGER"
|
|
116
|
+
},
|
|
117
|
+
{
|
|
118
|
+
"mode": "NULLABLE",
|
|
119
|
+
"name": "merchant_item_id",
|
|
120
|
+
"description": "The item id this affiliate program item is associated with",
|
|
121
|
+
"type": "STRING"
|
|
122
|
+
},
|
|
123
|
+
{
|
|
124
|
+
"allowed_values": [
|
|
125
|
+
"Active",
|
|
126
|
+
"Deleted"
|
|
127
|
+
],
|
|
128
|
+
"mode": "NULLABLE",
|
|
129
|
+
"name": "status",
|
|
130
|
+
"description": "Status",
|
|
131
|
+
"type": "STRING"
|
|
132
|
+
},
|
|
133
|
+
{
|
|
134
|
+
"mode": "REPEATED",
|
|
135
|
+
"name": "tier_commissions",
|
|
136
|
+
"description": "The standard commissions for each tier",
|
|
137
|
+
"type": "RECORD",
|
|
138
|
+
"fields": [
|
|
139
|
+
{
|
|
140
|
+
"mode": "NULLABLE",
|
|
141
|
+
"name": "tier_number",
|
|
142
|
+
"description": "The tier this commission is associated with",
|
|
143
|
+
"type": "INTEGER"
|
|
144
|
+
},
|
|
145
|
+
{
|
|
146
|
+
"mode": "REPEATED",
|
|
147
|
+
"name": "commission_ranges",
|
|
148
|
+
"description": "Used to give different commissions based upon the unit cost the item sold for",
|
|
149
|
+
"type": "RECORD",
|
|
150
|
+
"fields": [
|
|
151
|
+
{
|
|
152
|
+
"mode": "NULLABLE",
|
|
153
|
+
"name": "unit_cost_low",
|
|
154
|
+
"description": "Low end of the range for the unit cost",
|
|
155
|
+
"type": "NUMERIC"
|
|
156
|
+
},
|
|
157
|
+
{
|
|
158
|
+
"mode": "NULLABLE",
|
|
159
|
+
"name": "unit_cost_high",
|
|
160
|
+
"description": "High end of the range for the unit cost",
|
|
161
|
+
"type": "NUMERIC"
|
|
162
|
+
},
|
|
163
|
+
{
|
|
164
|
+
"mode": "NULLABLE",
|
|
165
|
+
"name": "unit_cost",
|
|
166
|
+
"description": "Exact unit cost",
|
|
167
|
+
"type": "NUMERIC"
|
|
168
|
+
},
|
|
169
|
+
{
|
|
170
|
+
"mode": "NULLABLE",
|
|
171
|
+
"name": "commission_amount",
|
|
172
|
+
"description": "The commission amount earned. Whether its fixed or percentage is based upon the affiliate program item commission type parent object",
|
|
173
|
+
"type": "NUMERIC"
|
|
174
|
+
}
|
|
175
|
+
]
|
|
176
|
+
},
|
|
177
|
+
{
|
|
178
|
+
"allowed_values": [
|
|
179
|
+
"Fixed",
|
|
180
|
+
"Percentage"
|
|
181
|
+
],
|
|
182
|
+
"mode": "NULLABLE",
|
|
183
|
+
"name": "commission_type",
|
|
184
|
+
"description": "The type of commission paid",
|
|
185
|
+
"type": "STRING"
|
|
186
|
+
},
|
|
187
|
+
{
|
|
188
|
+
"mode": "NULLABLE",
|
|
189
|
+
"name": "commission_amount",
|
|
190
|
+
"description": "The amount of the commission. Type determines how it is applied",
|
|
191
|
+
"type": "NUMERIC"
|
|
192
|
+
},
|
|
193
|
+
{
|
|
194
|
+
"mode": "NULLABLE",
|
|
195
|
+
"name": "description",
|
|
196
|
+
"description": "The description of the tier",
|
|
197
|
+
"type": "STRING"
|
|
198
|
+
},
|
|
199
|
+
{
|
|
200
|
+
"mode": "NULLABLE",
|
|
201
|
+
"name": "commission_amount_repeat_customer",
|
|
202
|
+
"description": "The amount of the commission for repeat customers. Type determines how it is applied",
|
|
203
|
+
"type": "NUMERIC"
|
|
204
|
+
},
|
|
205
|
+
{
|
|
206
|
+
"mode": "REPEATED",
|
|
207
|
+
"name": "commission_ranges_repeat_customer",
|
|
208
|
+
"description": "Used to give different commissions based upon the unit cost the item sold for for repeat customers",
|
|
209
|
+
"type": "RECORD",
|
|
210
|
+
"fields": [
|
|
211
|
+
{
|
|
212
|
+
"mode": "NULLABLE",
|
|
213
|
+
"name": "unit_cost_low",
|
|
214
|
+
"description": "Low end of the range for the unit cost",
|
|
215
|
+
"type": "NUMERIC"
|
|
216
|
+
},
|
|
217
|
+
{
|
|
218
|
+
"mode": "NULLABLE",
|
|
219
|
+
"name": "unit_cost_high",
|
|
220
|
+
"description": "High end of the range for the unit cost",
|
|
221
|
+
"type": "NUMERIC"
|
|
222
|
+
},
|
|
223
|
+
{
|
|
224
|
+
"mode": "NULLABLE",
|
|
225
|
+
"name": "unit_cost",
|
|
226
|
+
"description": "Exact unit cost",
|
|
227
|
+
"type": "NUMERIC"
|
|
228
|
+
},
|
|
229
|
+
{
|
|
230
|
+
"mode": "NULLABLE",
|
|
231
|
+
"name": "commission_amount",
|
|
232
|
+
"description": "The commission amount earned. Whether its fixed or percentage is based upon the affiliate program item commission type parent object",
|
|
233
|
+
"type": "NUMERIC"
|
|
234
|
+
}
|
|
235
|
+
]
|
|
236
|
+
}
|
|
237
|
+
]
|
|
238
|
+
},
|
|
239
|
+
{
|
|
240
|
+
"mode": "NULLABLE",
|
|
241
|
+
"name": "affiliate_commission_group_oid",
|
|
242
|
+
"description": "Unique object identifier for the commission group this item belongs to",
|
|
243
|
+
"type": "INTEGER"
|
|
244
|
+
},
|
|
245
|
+
{
|
|
246
|
+
"mode": "NULLABLE",
|
|
247
|
+
"name": "hide_from_affiliate_console",
|
|
248
|
+
"description": "True if this item should be hidden from the affiliates console",
|
|
249
|
+
"type": "BOOLEAN"
|
|
250
|
+
},
|
|
251
|
+
{
|
|
252
|
+
"mode": "NULLABLE",
|
|
253
|
+
"name": "alternate_description",
|
|
254
|
+
"description": "An alternate description that may be more meaningful to the affiliate than the item title",
|
|
255
|
+
"type": "STRING"
|
|
256
|
+
},
|
|
257
|
+
{
|
|
258
|
+
"mode": "REPEATED",
|
|
259
|
+
"name": "payment_schedule",
|
|
260
|
+
"description": "Payment schedule if the affiliate does not earn the commission immediately",
|
|
261
|
+
"type": "RECORD",
|
|
262
|
+
"fields": [
|
|
263
|
+
{
|
|
264
|
+
"mode": "NULLABLE",
|
|
265
|
+
"name": "days",
|
|
266
|
+
"description": "Number of days",
|
|
267
|
+
"type": "INTEGER"
|
|
268
|
+
},
|
|
269
|
+
{
|
|
270
|
+
"mode": "NULLABLE",
|
|
271
|
+
"name": "percentage",
|
|
272
|
+
"description": "Percentage of commission to have paid out at this point",
|
|
273
|
+
"type": "NUMERIC"
|
|
274
|
+
}
|
|
275
|
+
]
|
|
276
|
+
}
|
|
277
|
+
]
|
|
278
|
+
},
|
|
279
|
+
{
|
|
280
|
+
"mode": "REPEATED",
|
|
281
|
+
"name": "exclude_items",
|
|
282
|
+
"description": "Items that are excluded from global commissions",
|
|
283
|
+
"type": "RECORD",
|
|
284
|
+
"fields": [
|
|
285
|
+
{
|
|
286
|
+
"mode": "NULLABLE",
|
|
287
|
+
"name": "merchant_item_oid",
|
|
288
|
+
"description": "The item object identifier that is excluded from the affiliate program",
|
|
289
|
+
"type": "INTEGER"
|
|
290
|
+
},
|
|
291
|
+
{
|
|
292
|
+
"mode": "NULLABLE",
|
|
293
|
+
"name": "merchant_item_id",
|
|
294
|
+
"description": "The item id that is excluded from the affiliate program",
|
|
295
|
+
"type": "STRING"
|
|
296
|
+
}
|
|
297
|
+
]
|
|
298
|
+
},
|
|
299
|
+
{
|
|
300
|
+
"mode": "NULLABLE",
|
|
301
|
+
"name": "remove_cookie_after_purchase",
|
|
302
|
+
"description": "Optional value if set overrides the same property found on the Affiliate object. If true, affiliate cookies are removed after a purchase.",
|
|
303
|
+
"type": "BOOLEAN"
|
|
304
|
+
},
|
|
305
|
+
{
|
|
306
|
+
"mode": "NULLABLE",
|
|
307
|
+
"name": "prevent_sending_all_emails",
|
|
308
|
+
"description": "If true, affiliate in this group will not receive any email notifications.",
|
|
309
|
+
"type": "BOOLEAN"
|
|
310
|
+
},
|
|
311
|
+
{
|
|
312
|
+
"mode": "NULLABLE",
|
|
313
|
+
"name": "keep_commission_on_refunded_order",
|
|
314
|
+
"description": "Optional value if set overrides the same property found on the Affiliate object. If true, commissions are not refunded when order is refunded.",
|
|
315
|
+
"type": "BOOLEAN"
|
|
316
|
+
}
|
|
317
|
+
]
|