@revenexx/node 0.4.0 → 0.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client.d.mts +1 -0
- package/dist/client.d.ts +1 -0
- package/dist/client.js +3 -3
- package/dist/client.js.map +1 -1
- package/dist/client.mjs +3 -3
- package/dist/client.mjs.map +1 -1
- package/dist/enums/market-readiness-report-warning-reasons.d.mts +9 -0
- package/dist/enums/market-readiness-report-warning-reasons.d.ts +9 -0
- package/dist/enums/market-readiness-report-warning-reasons.js +14 -0
- package/dist/enums/market-readiness-report-warning-reasons.js.map +1 -0
- package/dist/enums/market-readiness-report-warning-reasons.mjs +13 -0
- package/dist/enums/market-readiness-report-warning-reasons.mjs.map +1 -0
- package/dist/enums/market-readiness-warning-reasons.d.mts +9 -0
- package/dist/enums/market-readiness-warning-reasons.d.ts +9 -0
- package/dist/enums/market-readiness-warning-reasons.js +14 -0
- package/dist/enums/market-readiness-warning-reasons.js.map +1 -0
- package/dist/enums/market-readiness-warning-reasons.mjs +13 -0
- package/dist/enums/market-readiness-warning-reasons.mjs.map +1 -0
- package/dist/enums/product-defaults-result-reason.d.mts +6 -0
- package/dist/enums/product-defaults-result-reason.d.ts +6 -0
- package/dist/enums/product-defaults-result-reason.js +11 -0
- package/dist/enums/product-defaults-result-reason.js.map +1 -0
- package/dist/enums/product-defaults-result-reason.mjs +10 -0
- package/dist/enums/product-defaults-result-reason.mjs.map +1 -0
- package/dist/enums/punchout-vocabularies-get-name.d.mts +1 -0
- package/dist/enums/punchout-vocabularies-get-name.d.ts +1 -0
- package/dist/enums/punchout-vocabularies-get-name.js +1 -0
- package/dist/enums/punchout-vocabularies-get-name.js.map +1 -1
- package/dist/enums/punchout-vocabularies-get-name.mjs +1 -0
- package/dist/enums/punchout-vocabularies-get-name.mjs.map +1 -1
- package/dist/index.d.mts +3 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.js +15 -0
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +3 -0
- package/dist/index.mjs.map +1 -1
- package/dist/models.d.mts +160 -12
- package/dist/models.d.ts +160 -12
- package/dist/services/ads-accounts.d.mts +1 -0
- package/dist/services/ads-accounts.d.ts +1 -0
- package/dist/services/ads-conversions.d.mts +1 -0
- package/dist/services/ads-conversions.d.ts +1 -0
- package/dist/services/ads-feeds.d.mts +1 -0
- package/dist/services/ads-feeds.d.ts +1 -0
- package/dist/services/ads-jobs.d.mts +1 -0
- package/dist/services/ads-jobs.d.ts +1 -0
- package/dist/services/ads-links.d.mts +1 -0
- package/dist/services/ads-links.d.ts +1 -0
- package/dist/services/ads-rules.d.mts +1 -0
- package/dist/services/ads-rules.d.ts +1 -0
- package/dist/services/ads-spend.d.mts +1 -0
- package/dist/services/ads-spend.d.ts +1 -0
- package/dist/services/ads-syncs.d.mts +1 -0
- package/dist/services/ads-syncs.d.ts +1 -0
- package/dist/services/ads-vocabularies.d.mts +1 -0
- package/dist/services/ads-vocabularies.d.ts +1 -0
- package/dist/services/apps.d.mts +1 -0
- package/dist/services/apps.d.ts +1 -0
- package/dist/services/audiences-audiences.d.mts +1 -0
- package/dist/services/audiences-audiences.d.ts +1 -0
- package/dist/services/audiences-members.d.mts +1 -0
- package/dist/services/audiences-members.d.ts +1 -0
- package/dist/services/audiences-rules.d.mts +1 -0
- package/dist/services/audiences-rules.d.ts +1 -0
- package/dist/services/audit.d.mts +1 -0
- package/dist/services/audit.d.ts +1 -0
- package/dist/services/avatars.d.mts +1 -0
- package/dist/services/avatars.d.ts +1 -0
- package/dist/services/campaigns-assets.d.mts +1 -0
- package/dist/services/campaigns-assets.d.ts +1 -0
- package/dist/services/campaigns-attribution.d.mts +1 -0
- package/dist/services/campaigns-attribution.d.ts +1 -0
- package/dist/services/campaigns-budgets.d.mts +1 -0
- package/dist/services/campaigns-budgets.d.ts +1 -0
- package/dist/services/campaigns-calendar.d.mts +1 -0
- package/dist/services/campaigns-calendar.d.ts +1 -0
- package/dist/services/campaigns-campaigns.d.mts +1 -0
- package/dist/services/campaigns-campaigns.d.ts +1 -0
- package/dist/services/campaigns-spend.d.mts +1 -0
- package/dist/services/campaigns-spend.d.ts +1 -0
- package/dist/services/campaigns-tasks.d.mts +1 -0
- package/dist/services/campaigns-tasks.d.ts +1 -0
- package/dist/services/campaigns-touches.d.mts +1 -0
- package/dist/services/campaigns-touches.d.ts +1 -0
- package/dist/services/campaigns-vocabularies.d.mts +1 -0
- package/dist/services/campaigns-vocabularies.d.ts +1 -0
- package/dist/services/carts-io.d.mts +1 -0
- package/dist/services/carts-io.d.ts +1 -0
- package/dist/services/carts-items.d.mts +1 -0
- package/dist/services/carts-items.d.ts +1 -0
- package/dist/services/carts.d.mts +1 -0
- package/dist/services/carts.d.ts +1 -0
- package/dist/services/channels.d.mts +1 -0
- package/dist/services/channels.d.ts +1 -0
- package/dist/services/consent-manager-delivery.d.mts +1 -0
- package/dist/services/consent-manager-delivery.d.ts +1 -0
- package/dist/services/consent-manager-policy.d.mts +1 -0
- package/dist/services/consent-manager-policy.d.ts +1 -0
- package/dist/services/consent-manager-records.d.mts +1 -0
- package/dist/services/consent-manager-records.d.ts +1 -0
- package/dist/services/consent-manager-registry.d.mts +1 -0
- package/dist/services/consent-manager-registry.d.ts +1 -0
- package/dist/services/cost-centers.d.mts +9 -8
- package/dist/services/cost-centers.d.ts +9 -8
- package/dist/services/cost-centers.js +19 -13
- package/dist/services/cost-centers.js.map +1 -1
- package/dist/services/cost-centers.mjs +19 -13
- package/dist/services/cost-centers.mjs.map +1 -1
- package/dist/services/customers-contacts.d.mts +1 -0
- package/dist/services/customers-contacts.d.ts +1 -0
- package/dist/services/customers-follow-ups.d.mts +1 -0
- package/dist/services/customers-follow-ups.d.ts +1 -0
- package/dist/services/customers-leads.d.mts +1 -0
- package/dist/services/customers-leads.d.ts +1 -0
- package/dist/services/customers-organizations.d.mts +1 -0
- package/dist/services/customers-organizations.d.ts +1 -0
- package/dist/services/customers-roles.d.mts +1 -0
- package/dist/services/customers-roles.d.ts +1 -0
- package/dist/services/customers-segments.d.mts +1 -0
- package/dist/services/customers-segments.d.ts +1 -0
- package/dist/services/customers-value-lists.d.mts +1 -0
- package/dist/services/customers-value-lists.d.ts +1 -0
- package/dist/services/customers.d.mts +1 -0
- package/dist/services/customers.d.ts +1 -0
- package/dist/services/documents-kinds.d.mts +1 -0
- package/dist/services/documents-kinds.d.ts +1 -0
- package/dist/services/documents-register.d.mts +1 -0
- package/dist/services/documents-register.d.ts +1 -0
- package/dist/services/events.d.mts +1 -0
- package/dist/services/events.d.ts +1 -0
- package/dist/services/forms.d.mts +1 -0
- package/dist/services/forms.d.ts +1 -0
- package/dist/services/health.d.mts +1 -0
- package/dist/services/health.d.ts +1 -0
- package/dist/services/inventories-locations.d.mts +1 -0
- package/dist/services/inventories-locations.d.ts +1 -0
- package/dist/services/inventories-reservations.d.mts +1 -0
- package/dist/services/inventories-reservations.d.ts +1 -0
- package/dist/services/inventories-stock.d.mts +1 -0
- package/dist/services/inventories-stock.d.ts +1 -0
- package/dist/services/io.d.mts +1 -0
- package/dist/services/io.d.ts +1 -0
- package/dist/services/journeys-enrollments.d.mts +1 -0
- package/dist/services/journeys-enrollments.d.ts +1 -0
- package/dist/services/journeys-jobs.d.mts +1 -0
- package/dist/services/journeys-jobs.d.ts +1 -0
- package/dist/services/journeys-journeys.d.mts +1 -0
- package/dist/services/journeys-journeys.d.ts +1 -0
- package/dist/services/journeys-stats.d.mts +1 -0
- package/dist/services/journeys-stats.d.ts +1 -0
- package/dist/services/journeys-steps.d.mts +1 -0
- package/dist/services/journeys-steps.d.ts +1 -0
- package/dist/services/journeys-templates.d.mts +1 -0
- package/dist/services/journeys-templates.d.ts +1 -0
- package/dist/services/journeys-timeline.d.mts +1 -0
- package/dist/services/journeys-timeline.d.ts +1 -0
- package/dist/services/journeys-versions.d.mts +1 -0
- package/dist/services/journeys-versions.d.ts +1 -0
- package/dist/services/journeys-vocabularies.d.mts +1 -0
- package/dist/services/journeys-vocabularies.d.ts +1 -0
- package/dist/services/journeys-watches.d.mts +1 -0
- package/dist/services/journeys-watches.d.ts +1 -0
- package/dist/services/locale.d.mts +1 -0
- package/dist/services/locale.d.ts +1 -0
- package/dist/services/loyalty-bonus.d.mts +1 -0
- package/dist/services/loyalty-bonus.d.ts +1 -0
- package/dist/services/loyalty-jobs.d.mts +1 -0
- package/dist/services/loyalty-jobs.d.ts +1 -0
- package/dist/services/loyalty-memberships.d.mts +1 -0
- package/dist/services/loyalty-memberships.d.ts +1 -0
- package/dist/services/loyalty-points.d.mts +1 -0
- package/dist/services/loyalty-points.d.ts +1 -0
- package/dist/services/loyalty-programs.d.mts +1 -0
- package/dist/services/loyalty-programs.d.ts +1 -0
- package/dist/services/loyalty-referrals.d.mts +1 -0
- package/dist/services/loyalty-referrals.d.ts +1 -0
- package/dist/services/loyalty-rewards.d.mts +1 -0
- package/dist/services/loyalty-rewards.d.ts +1 -0
- package/dist/services/loyalty-tiers.d.mts +1 -0
- package/dist/services/loyalty-tiers.d.ts +1 -0
- package/dist/services/loyalty-vocabularies.d.mts +1 -0
- package/dist/services/loyalty-vocabularies.d.ts +1 -0
- package/dist/services/mailings-analysis.d.mts +1 -0
- package/dist/services/mailings-analysis.d.ts +1 -0
- package/dist/services/mailings-blocks.d.mts +1 -0
- package/dist/services/mailings-blocks.d.ts +1 -0
- package/dist/services/mailings-health.d.mts +1 -0
- package/dist/services/mailings-health.d.ts +1 -0
- package/dist/services/mailings-mailings.d.mts +1 -0
- package/dist/services/mailings-mailings.d.ts +1 -0
- package/dist/services/mailings-recipients.d.mts +1 -0
- package/dist/services/mailings-recipients.d.ts +1 -0
- package/dist/services/mailings-send.d.mts +1 -0
- package/dist/services/mailings-send.d.ts +1 -0
- package/dist/services/mailings-variants.d.mts +1 -0
- package/dist/services/mailings-variants.d.ts +1 -0
- package/dist/services/mailings-vocabularies.d.mts +1 -0
- package/dist/services/mailings-vocabularies.d.ts +1 -0
- package/dist/services/marketing-consents-evidence.d.mts +1 -0
- package/dist/services/marketing-consents-evidence.d.ts +1 -0
- package/dist/services/marketing-consents-subscriptions.d.mts +1 -0
- package/dist/services/marketing-consents-subscriptions.d.ts +1 -0
- package/dist/services/marketing-consents-types.d.mts +1 -0
- package/dist/services/marketing-consents-types.d.ts +1 -0
- package/dist/services/markets.d.mts +5 -4
- package/dist/services/markets.d.ts +5 -4
- package/dist/services/markets.js.map +1 -1
- package/dist/services/markets.mjs.map +1 -1
- package/dist/services/messaging.d.mts +1 -0
- package/dist/services/messaging.d.ts +1 -0
- package/dist/services/orderlists.d.mts +1 -0
- package/dist/services/orderlists.d.ts +1 -0
- package/dist/services/orders.d.mts +1 -0
- package/dist/services/orders.d.ts +1 -0
- package/dist/services/pages-collaboration.d.mts +1 -0
- package/dist/services/pages-collaboration.d.ts +1 -0
- package/dist/services/pages-delivery.d.mts +1 -0
- package/dist/services/pages-delivery.d.ts +1 -0
- package/dist/services/pages-editor.d.mts +1 -0
- package/dist/services/pages-editor.d.ts +1 -0
- package/dist/services/pages.d.mts +1 -0
- package/dist/services/pages.d.ts +1 -0
- package/dist/services/payments-ledger.d.mts +1 -0
- package/dist/services/payments-ledger.d.ts +1 -0
- package/dist/services/payments-methods.d.mts +20 -0
- package/dist/services/payments-methods.d.ts +20 -0
- package/dist/services/payments-methods.js +24 -0
- package/dist/services/payments-methods.js.map +1 -1
- package/dist/services/payments-methods.mjs +24 -0
- package/dist/services/payments-methods.mjs.map +1 -1
- package/dist/services/payments-providers.d.mts +3 -2
- package/dist/services/payments-providers.d.ts +3 -2
- package/dist/services/payments-providers.js.map +1 -1
- package/dist/services/payments-providers.mjs.map +1 -1
- package/dist/services/prices.d.mts +1 -0
- package/dist/services/prices.d.ts +1 -0
- package/dist/services/procurement.d.mts +1 -0
- package/dist/services/procurement.d.ts +1 -0
- package/dist/services/products-assets.d.mts +1 -0
- package/dist/services/products-assets.d.ts +1 -0
- package/dist/services/products-categories.d.mts +1 -0
- package/dist/services/products-categories.d.ts +1 -0
- package/dist/services/products-data-model.d.mts +20 -0
- package/dist/services/products-data-model.d.ts +20 -0
- package/dist/services/products-data-model.js +29 -0
- package/dist/services/products-data-model.js.map +1 -1
- package/dist/services/products-data-model.mjs +29 -0
- package/dist/services/products-data-model.mjs.map +1 -1
- package/dist/services/products-manufacturers.d.mts +1 -0
- package/dist/services/products-manufacturers.d.ts +1 -0
- package/dist/services/products-references.d.mts +1 -0
- package/dist/services/products-references.d.ts +1 -0
- package/dist/services/products.d.mts +20 -0
- package/dist/services/products.d.ts +20 -0
- package/dist/services/products.js +24 -0
- package/dist/services/products.js.map +1 -1
- package/dist/services/products.mjs +24 -0
- package/dist/services/products.mjs.map +1 -1
- package/dist/services/promotions-evaluation.d.mts +1 -0
- package/dist/services/promotions-evaluation.d.ts +1 -0
- package/dist/services/promotions-promotions.d.mts +1 -0
- package/dist/services/promotions-promotions.d.ts +1 -0
- package/dist/services/promotions-redemptions.d.mts +1 -0
- package/dist/services/promotions-redemptions.d.ts +1 -0
- package/dist/services/promotions-vouchers.d.mts +1 -0
- package/dist/services/promotions-vouchers.d.ts +1 -0
- package/dist/services/punchout.d.mts +4 -3
- package/dist/services/punchout.d.ts +4 -3
- package/dist/services/punchout.js +1 -1
- package/dist/services/punchout.js.map +1 -1
- package/dist/services/punchout.mjs +1 -1
- package/dist/services/punchout.mjs.map +1 -1
- package/dist/services/quotes-acceptance.d.mts +1 -0
- package/dist/services/quotes-acceptance.d.ts +1 -0
- package/dist/services/quotes-pricing.d.mts +1 -0
- package/dist/services/quotes-pricing.d.ts +1 -0
- package/dist/services/quotes-quotes.d.mts +1 -0
- package/dist/services/quotes-quotes.d.ts +1 -0
- package/dist/services/quotes-ranges.d.mts +1 -0
- package/dist/services/quotes-ranges.d.ts +1 -0
- package/dist/services/quotes-trail.d.mts +1 -0
- package/dist/services/quotes-trail.d.ts +1 -0
- package/dist/services/reviews-aggregates.d.mts +1 -0
- package/dist/services/reviews-aggregates.d.ts +1 -0
- package/dist/services/reviews-jobs.d.mts +1 -0
- package/dist/services/reviews-jobs.d.ts +1 -0
- package/dist/services/reviews-moderation.d.mts +1 -0
- package/dist/services/reviews-moderation.d.ts +1 -0
- package/dist/services/reviews-privacy.d.mts +1 -0
- package/dist/services/reviews-privacy.d.ts +1 -0
- package/dist/services/reviews-products.d.mts +1 -0
- package/dist/services/reviews-products.d.ts +1 -0
- package/dist/services/reviews-requests.d.mts +1 -0
- package/dist/services/reviews-requests.d.ts +1 -0
- package/dist/services/reviews-reviews.d.mts +1 -0
- package/dist/services/reviews-reviews.d.ts +1 -0
- package/dist/services/reviews-vocabularies.d.mts +1 -0
- package/dist/services/reviews-vocabularies.d.ts +1 -0
- package/dist/services/sales-reps-acting-for.d.mts +1 -0
- package/dist/services/sales-reps-acting-for.d.ts +1 -0
- package/dist/services/sales-reps-coverage.d.mts +1 -0
- package/dist/services/sales-reps-coverage.d.ts +1 -0
- package/dist/services/sales-reps-roster.d.mts +1 -0
- package/dist/services/sales-reps-roster.d.ts +1 -0
- package/dist/services/search.d.mts +1 -0
- package/dist/services/search.d.ts +1 -0
- package/dist/services/settings.d.mts +1 -0
- package/dist/services/settings.d.ts +1 -0
- package/dist/services/shipping-carriers.d.mts +1 -0
- package/dist/services/shipping-carriers.d.ts +1 -0
- package/dist/services/shipping-methods.d.mts +5 -4
- package/dist/services/shipping-methods.d.ts +5 -4
- package/dist/services/shipping-methods.js.map +1 -1
- package/dist/services/shipping-methods.mjs.map +1 -1
- package/dist/services/shipping-value-lists.d.mts +1 -0
- package/dist/services/shipping-value-lists.d.ts +1 -0
- package/dist/services/sites.d.mts +1 -0
- package/dist/services/sites.d.ts +1 -0
- package/dist/services/storage.d.mts +1 -0
- package/dist/services/storage.d.ts +1 -0
- package/dist/services/tag-manager-container.d.mts +1 -0
- package/dist/services/tag-manager-container.d.ts +1 -0
- package/dist/services/tag-manager-delivery.d.mts +1 -0
- package/dist/services/tag-manager-delivery.d.ts +1 -0
- package/dist/services/tag-manager-tags.d.mts +1 -0
- package/dist/services/tag-manager-tags.d.ts +1 -0
- package/package.json +3 -2
|
@@ -385,6 +385,7 @@ import '../enums/procurement-vocabulary-summary-name.mjs';
|
|
|
385
385
|
import '../enums/procurement-vocabulary-value-tone.mjs';
|
|
386
386
|
import '../enums/product-categories-source.mjs';
|
|
387
387
|
import '../enums/product-channels-assign-request-mode.mjs';
|
|
388
|
+
import '../enums/product-defaults-result-reason.mjs';
|
|
388
389
|
import '../enums/product-grid-column-source.mjs';
|
|
389
390
|
import '../enums/product-label-source.mjs';
|
|
390
391
|
import '../enums/product-label-attribute-source.mjs';
|
|
@@ -1828,6 +1829,25 @@ declare class ProductsDataModel {
|
|
|
1828
1829
|
* @deprecated Use the object parameter style method for a better developer experience.
|
|
1829
1830
|
*/
|
|
1830
1831
|
productsAttributesUpdate(id: string, active?: boolean, code?: string, config?: object, entityRef?: string, entityType?: string, externalId?: string, externalRefs?: object, groupId?: string, isFilterable?: boolean, isUnique?: boolean, labels?: object, localizable?: boolean, metadata?: object, position?: number, scopable?: boolean, sourceData?: object, sourceSyncedAt?: string, type?: string, usableInGrid?: boolean, validation?: object): Promise<Models.Attributes>;
|
|
1832
|
+
/**
|
|
1833
|
+
* Creates the smallest catalog model a tenant can work with, for a tenant that has none: the product attributes `name` (text, localizable), `description` (textarea, localizable) and `images` (asset_collection), and the family `standard` („Standard“) carrying the three, with `name` as its label attribute and required, and `images` as its image attribute. It writes only into a tenant without any attribute or family — the rows an earlier run of this call wrote excepted, so a run that stopped half-way is finished by the next. A tenant with one attribute or family of its own is answered `seeded: false` with `reason: not_empty` and nothing is written. Idempotent: a second run writes nothing. The model is founded without a market. The install announcement runs the same seeding, but it is not reliably delivered, so support can call this for an existing empty tenant.
|
|
1834
|
+
*
|
|
1835
|
+
* @param {object} params.data - Request body
|
|
1836
|
+
* @throws {RevenexxException}
|
|
1837
|
+
* @returns {Promise<Models.ProductDefaultsResult>}
|
|
1838
|
+
*/
|
|
1839
|
+
productsDefaultsRun(params: {
|
|
1840
|
+
data: object;
|
|
1841
|
+
}): Promise<Models.ProductDefaultsResult>;
|
|
1842
|
+
/**
|
|
1843
|
+
* Creates the smallest catalog model a tenant can work with, for a tenant that has none: the product attributes `name` (text, localizable), `description` (textarea, localizable) and `images` (asset_collection), and the family `standard` („Standard“) carrying the three, with `name` as its label attribute and required, and `images` as its image attribute. It writes only into a tenant without any attribute or family — the rows an earlier run of this call wrote excepted, so a run that stopped half-way is finished by the next. A tenant with one attribute or family of its own is answered `seeded: false` with `reason: not_empty` and nothing is written. Idempotent: a second run writes nothing. The model is founded without a market. The install announcement runs the same seeding, but it is not reliably delivered, so support can call this for an existing empty tenant.
|
|
1844
|
+
*
|
|
1845
|
+
* @param {object} data - Request body
|
|
1846
|
+
* @throws {RevenexxException}
|
|
1847
|
+
* @returns {Promise<Models.ProductDefaultsResult>}
|
|
1848
|
+
* @deprecated Use the object parameter style method for a better developer experience.
|
|
1849
|
+
*/
|
|
1850
|
+
productsDefaultsRun(data: object): Promise<Models.ProductDefaultsResult>;
|
|
1831
1851
|
/**
|
|
1832
1852
|
* A family decides WHICH attributes a product has — the set is `family_attributes`, and every family-driven surface follows from it. It also names which attribute carries the display name (`label_attribute`) and which carries the main image. A product with no family has no required attributes at all, so its completeness cannot be measured and its name never resolves past the SKU; `POST /products/{id}/family` is the call that ends that state.
|
|
1833
1853
|
*
|
|
@@ -385,6 +385,7 @@ import '../enums/procurement-vocabulary-summary-name.js';
|
|
|
385
385
|
import '../enums/procurement-vocabulary-value-tone.js';
|
|
386
386
|
import '../enums/product-categories-source.js';
|
|
387
387
|
import '../enums/product-channels-assign-request-mode.js';
|
|
388
|
+
import '../enums/product-defaults-result-reason.js';
|
|
388
389
|
import '../enums/product-grid-column-source.js';
|
|
389
390
|
import '../enums/product-label-source.js';
|
|
390
391
|
import '../enums/product-label-attribute-source.js';
|
|
@@ -1828,6 +1829,25 @@ declare class ProductsDataModel {
|
|
|
1828
1829
|
* @deprecated Use the object parameter style method for a better developer experience.
|
|
1829
1830
|
*/
|
|
1830
1831
|
productsAttributesUpdate(id: string, active?: boolean, code?: string, config?: object, entityRef?: string, entityType?: string, externalId?: string, externalRefs?: object, groupId?: string, isFilterable?: boolean, isUnique?: boolean, labels?: object, localizable?: boolean, metadata?: object, position?: number, scopable?: boolean, sourceData?: object, sourceSyncedAt?: string, type?: string, usableInGrid?: boolean, validation?: object): Promise<Models.Attributes>;
|
|
1832
|
+
/**
|
|
1833
|
+
* Creates the smallest catalog model a tenant can work with, for a tenant that has none: the product attributes `name` (text, localizable), `description` (textarea, localizable) and `images` (asset_collection), and the family `standard` („Standard“) carrying the three, with `name` as its label attribute and required, and `images` as its image attribute. It writes only into a tenant without any attribute or family — the rows an earlier run of this call wrote excepted, so a run that stopped half-way is finished by the next. A tenant with one attribute or family of its own is answered `seeded: false` with `reason: not_empty` and nothing is written. Idempotent: a second run writes nothing. The model is founded without a market. The install announcement runs the same seeding, but it is not reliably delivered, so support can call this for an existing empty tenant.
|
|
1834
|
+
*
|
|
1835
|
+
* @param {object} params.data - Request body
|
|
1836
|
+
* @throws {RevenexxException}
|
|
1837
|
+
* @returns {Promise<Models.ProductDefaultsResult>}
|
|
1838
|
+
*/
|
|
1839
|
+
productsDefaultsRun(params: {
|
|
1840
|
+
data: object;
|
|
1841
|
+
}): Promise<Models.ProductDefaultsResult>;
|
|
1842
|
+
/**
|
|
1843
|
+
* Creates the smallest catalog model a tenant can work with, for a tenant that has none: the product attributes `name` (text, localizable), `description` (textarea, localizable) and `images` (asset_collection), and the family `standard` („Standard“) carrying the three, with `name` as its label attribute and required, and `images` as its image attribute. It writes only into a tenant without any attribute or family — the rows an earlier run of this call wrote excepted, so a run that stopped half-way is finished by the next. A tenant with one attribute or family of its own is answered `seeded: false` with `reason: not_empty` and nothing is written. Idempotent: a second run writes nothing. The model is founded without a market. The install announcement runs the same seeding, but it is not reliably delivered, so support can call this for an existing empty tenant.
|
|
1844
|
+
*
|
|
1845
|
+
* @param {object} data - Request body
|
|
1846
|
+
* @throws {RevenexxException}
|
|
1847
|
+
* @returns {Promise<Models.ProductDefaultsResult>}
|
|
1848
|
+
* @deprecated Use the object parameter style method for a better developer experience.
|
|
1849
|
+
*/
|
|
1850
|
+
productsDefaultsRun(data: object): Promise<Models.ProductDefaultsResult>;
|
|
1831
1851
|
/**
|
|
1832
1852
|
* A family decides WHICH attributes a product has — the set is `family_attributes`, and every family-driven surface follows from it. It also names which attribute carries the display name (`label_attribute`) and which carries the main image. A product with no family has no required attributes at all, so its completeness cannot be measured and its name never resolves past the SKU; `POST /products/{id}/family` is the call that ends that state.
|
|
1833
1853
|
*
|
|
@@ -1536,6 +1536,35 @@ class ProductsDataModel {
|
|
|
1536
1536
|
apiPayload
|
|
1537
1537
|
);
|
|
1538
1538
|
}
|
|
1539
|
+
productsDefaultsRun(paramsOrFirst) {
|
|
1540
|
+
let params;
|
|
1541
|
+
if (paramsOrFirst && typeof paramsOrFirst === "object" && !Array.isArray(paramsOrFirst) && "data" in paramsOrFirst) {
|
|
1542
|
+
params = paramsOrFirst || {};
|
|
1543
|
+
} else {
|
|
1544
|
+
params = {
|
|
1545
|
+
data: paramsOrFirst
|
|
1546
|
+
};
|
|
1547
|
+
}
|
|
1548
|
+
const data = params.data;
|
|
1549
|
+
if (typeof data === "undefined") {
|
|
1550
|
+
throw new client.RevenexxException('Missing required parameter: "data"');
|
|
1551
|
+
}
|
|
1552
|
+
const apiPath = "/v1/products/defaults";
|
|
1553
|
+
const apiPayload = {};
|
|
1554
|
+
if (typeof data !== "undefined") {
|
|
1555
|
+
Object.assign(apiPayload, data);
|
|
1556
|
+
}
|
|
1557
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
1558
|
+
const apiHeaders = {
|
|
1559
|
+
"content-type": "application/json"
|
|
1560
|
+
};
|
|
1561
|
+
return this.client.call(
|
|
1562
|
+
"post",
|
|
1563
|
+
uri,
|
|
1564
|
+
apiHeaders,
|
|
1565
|
+
apiPayload
|
|
1566
|
+
);
|
|
1567
|
+
}
|
|
1539
1568
|
productsFamiliesList(paramsOrFirst, ...rest) {
|
|
1540
1569
|
let params;
|
|
1541
1570
|
if (!paramsOrFirst || paramsOrFirst && typeof paramsOrFirst === "object" && !Array.isArray(paramsOrFirst)) {
|