Skip to content

Commit

Permalink
Merge pull request #13 from jwdb/master
Browse files Browse the repository at this point in the history
Upgrade terraform bridge to 3.66.0
  • Loading branch information
jwdb authored Nov 23, 2023
2 parents 8ba5920 + d666766 commit 1aac83f
Show file tree
Hide file tree
Showing 40 changed files with 1,766 additions and 398 deletions.
1 change: 0 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,6 @@ build_nodejs:: install_plugins tfgen # build the node sdk
cd sdk/nodejs/ && \
yarn install && \
yarn run tsc && \
cp -R scripts/ bin && \
cp ../../README.md ../../LICENSE package.json yarn.lock ./bin/ && \
sed -i.bak -e "s/\$${VERSION}/$(VERSION)/g" ./bin/package.json

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
"commercetools:index/customerGroup:CustomerGroup": 0,
"commercetools:index/discountCode:DiscountCode": 0,
"commercetools:index/productDiscount:ProductDiscount": 0,
"commercetools:index/productSelection:ProductSelection": 1,
"commercetools:index/productType:ProductType": 0,
"commercetools:index/projectSettings:ProjectSettings": 1,
"commercetools:index/shippingMethod:ShippingMethod": 0,
Expand Down Expand Up @@ -43,6 +44,7 @@
"commercetools:index/customerGroup:CustomerGroup": "commercetools_customer_group",
"commercetools:index/discountCode:DiscountCode": "commercetools_discount_code",
"commercetools:index/productDiscount:ProductDiscount": "commercetools_product_discount",
"commercetools:index/productSelection:ProductSelection": "commercetools_product_selection",
"commercetools:index/productType:ProductType": "commercetools_product_type",
"commercetools:index/projectSettings:ProjectSettings": "commercetools_project_settings",
"commercetools:index/shippingMethod:ShippingMethod": "commercetools_shipping_method",
Expand Down Expand Up @@ -176,6 +178,9 @@
"commercetools:index/StoreCustom:StoreCustom": {
"typeId": "type_id"
},
"commercetools:index/StoreProductSelection:StoreProductSelection": {
"productSelectionId": "product_selection_id"
},
"commercetools:index/SubscriptionChange:SubscriptionChange": {
"resourceTypeIds": "resource_type_ids"
},
Expand Down Expand Up @@ -280,6 +285,7 @@
},
"commercetools:index/store:Store": {
"distributionChannels": "distribution_channels",
"productSelections": "product_selection",
"supplyChannels": "supply_channels"
},
"commercetools:index/subscription:Subscription": {
Expand Down
153 changes: 128 additions & 25 deletions provider/cmd/pulumi-resource-commercetools/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,40 +16,37 @@
},
"language": {
"csharp": {
"compatibility": "tfbridge20",
"namespaces": null,
"packageReferences": {
"Pulumi": "3.*"
}
},
"compatibility": "tfbridge20"
},
"go": {
"generateExtraInputTypes": true,
"importBasePath": "github.com/pulumi/pulumi-commercetools/sdk/go/commercetools",
"generateResourceContainerTypes": true,
"importBasePath": "github.com/pulumi/pulumi-commercetools/sdk/go/commercetools"
"generateExtraInputTypes": true
},
"nodejs": {
"compatibility": "tfbridge20",
"packageName": "@unplatform/commercetools",
"packageDescription": "A Pulumi package for creating and managing commercetools cloud resources.",
"readme": "\u003e This provider is a derived work of the [Terraform Provider](https://github.com/unplatform-io/terraform-provider-commercetools)\n\u003e distributed under [MPL 2.0](https://www.mozilla.org/en-US/MPL/2.0/). If you encounter a bug or missing feature,\n\u003e first check the [`pulumi-commercetools` repo](https://github.com/unplatform-io/pulumi-commercetools/issues); however, if that doesn't turn up anything,\n\u003e please consult the source [`terraform-provider-commercetools` repo](https://github.com/unplatform-io/terraform-provider-commercetools/issues).",
"dependencies": {
"@pulumi/pulumi": "^3.0.0"
},
"devDependencies": {
"@types/mime": "^2.0.0",
"@types/node": "^10.0.0"
},
"disableUnionOutputTypes": true,
"packageDescription": "A Pulumi package for creating and managing commercetools cloud resources.",
"packageName": "@unplatform/commercetools",
"pluginName": "",
"pluginVersion": "",
"readme": "\u003e This provider is a derived work of the [Terraform Provider](https://github.com/unplatform-io/terraform-provider-commercetools)\n\u003e distributed under [MPL 2.0](https://www.mozilla.org/en-US/MPL/2.0/). If you encounter a bug or missing feature,\n\u003e first check the [`pulumi-commercetools` repo](https://github.com/unplatform-io/pulumi-commercetools/issues); however, if that doesn't turn up anything,\n\u003e please consult the source [`terraform-provider-commercetools` repo](https://github.com/unplatform-io/terraform-provider-commercetools/issues).",
"typescriptVersion": ""
"compatibility": "tfbridge20",
"disableUnionOutputTypes": true
},
"python": {
"compatibility": "tfbridge20",
"readme": "\u003e This provider is a derived work of the [Terraform Provider](https://github.com/unplatform-io/terraform-provider-commercetools)\n\u003e distributed under [MPL 2.0](https://www.mozilla.org/en-US/MPL/2.0/). If you encounter a bug or missing feature,\n\u003e first check the [`pulumi-commercetools` repo](https://github.com/unplatform-io/pulumi-commercetools/issues); however, if that doesn't turn up anything,\n\u003e please consult the source [`terraform-provider-commercetools` repo](https://github.com/unplatform-io/terraform-provider-commercetools/issues).",
"requires": {
"pulumi": "\u003e=3.0.0,\u003c4.0.0"
}
},
"readme": "\u003e This provider is a derived work of the [Terraform Provider](https://github.com/unplatform-io/terraform-provider-commercetools)\n\u003e distributed under [MPL 2.0](https://www.mozilla.org/en-US/MPL/2.0/). If you encounter a bug or missing feature,\n\u003e first check the [`pulumi-commercetools` repo](https://github.com/unplatform-io/pulumi-commercetools/issues); however, if that doesn't turn up anything,\n\u003e please consult the source [`terraform-provider-commercetools` repo](https://github.com/unplatform-io/terraform-provider-commercetools/issues).",
"compatibility": "tfbridge20",
"pyproject": {}
}
},
"config": {
Expand Down Expand Up @@ -889,6 +886,21 @@
"typeId"
]
},
"commercetools:index/StoreProductSelection:StoreProductSelection": {
"properties": {
"active": {
"type": "boolean"
},
"productSelectionId": {
"type": "string"
}
},
"type": "object",
"required": [
"active",
"productSelectionId"
]
},
"commercetools:index/SubscriptionChange:SubscriptionChange": {
"properties": {
"resourceTypeIds": {
Expand Down Expand Up @@ -2229,11 +2241,11 @@
},
"maxApplications": {
"type": "integer",
"description": "The discount code can only be applied maxApplications times\n"
"description": "The discount code can only be applied the specified times overallNote that due to an engine constraint 0 cannot be set\nfor this field, so possible values are either larger than 0 or not set\n"
},
"maxApplicationsPerCustomer": {
"type": "integer",
"description": "The discount code can only be applied maxApplicationsPerCustomer times per customer\n"
"description": "The discount code can only be applied the specified times per customer. Note that due to an engine constraint 0 cannot\nbe set for this field, so possible values are either larger than 0 or not set\n"
},
"name": {
"type": "object",
Expand Down Expand Up @@ -2298,11 +2310,11 @@
},
"maxApplications": {
"type": "integer",
"description": "The discount code can only be applied maxApplications times\n"
"description": "The discount code can only be applied the specified times overallNote that due to an engine constraint 0 cannot be set\nfor this field, so possible values are either larger than 0 or not set\n"
},
"maxApplicationsPerCustomer": {
"type": "integer",
"description": "The discount code can only be applied maxApplicationsPerCustomer times per customer\n"
"description": "The discount code can only be applied the specified times per customer. Note that due to an engine constraint 0 cannot\nbe set for this field, so possible values are either larger than 0 or not set\n"
},
"name": {
"type": "object",
Expand Down Expand Up @@ -2364,11 +2376,11 @@
},
"maxApplications": {
"type": "integer",
"description": "The discount code can only be applied maxApplications times\n"
"description": "The discount code can only be applied the specified times overallNote that due to an engine constraint 0 cannot be set\nfor this field, so possible values are either larger than 0 or not set\n"
},
"maxApplicationsPerCustomer": {
"type": "integer",
"description": "The discount code can only be applied maxApplicationsPerCustomer times per customer\n"
"description": "The discount code can only be applied the specified times per customer. Note that due to an engine constraint 0 cannot\nbe set for this field, so possible values are either larger than 0 or not set\n"
},
"name": {
"type": "object",
Expand Down Expand Up @@ -2548,14 +2560,84 @@
"type": "object"
}
},
"commercetools:index/productSelection:ProductSelection": {
"properties": {
"key": {
"type": "string",
"description": "User-defined unique identifier of the ProductSelection.\n"
},
"mode": {
"type": "string",
"description": "Specifies in which way the Products are assigned to the ProductSelection.Currently, the only way of doing this is to\nspecify each Product individually, either by including or excluding them explicitly.Default: Individual\n"
},
"name": {
"type": "object",
"additionalProperties": {
"type": "string"
},
"description": "Name of the ProductSelection.\n"
},
"version": {
"type": "integer",
"description": "Current version of the ProductSelection.\n"
}
},
"required": [
"mode",
"name",
"version"
],
"inputProperties": {
"key": {
"type": "string",
"description": "User-defined unique identifier of the ProductSelection.\n"
},
"mode": {
"type": "string",
"description": "Specifies in which way the Products are assigned to the ProductSelection.Currently, the only way of doing this is to\nspecify each Product individually, either by including or excluding them explicitly.Default: Individual\n"
},
"name": {
"type": "object",
"additionalProperties": {
"type": "string"
},
"description": "Name of the ProductSelection.\n"
}
},
"stateInputs": {
"description": "Input properties used for looking up and filtering ProductSelection resources.\n",
"properties": {
"key": {
"type": "string",
"description": "User-defined unique identifier of the ProductSelection.\n"
},
"mode": {
"type": "string",
"description": "Specifies in which way the Products are assigned to the ProductSelection.Currently, the only way of doing this is to\nspecify each Product individually, either by including or excluding them explicitly.Default: Individual\n"
},
"name": {
"type": "object",
"additionalProperties": {
"type": "string"
},
"description": "Name of the ProductSelection.\n"
},
"version": {
"type": "integer",
"description": "Current version of the ProductSelection.\n"
}
},
"type": "object"
}
},
"commercetools:index/productType:ProductType": {
"properties": {
"attributes": {
"type": "array",
"items": {
"$ref": "#/types/commercetools:index/ProductTypeAttribute:ProductTypeAttribute"
},
"description": "[Product attribute fefinition](https://docs.commercetools.com/api/projects/productTypes#attributedefinition)\n"
"description": "[Product attribute definition](https://docs.commercetools.com/api/projects/productTypes#attributedefinition)\n"
},
"description": {
"type": "string"
Expand All @@ -2581,7 +2663,7 @@
"items": {
"$ref": "#/types/commercetools:index/ProductTypeAttribute:ProductTypeAttribute"
},
"description": "[Product attribute fefinition](https://docs.commercetools.com/api/projects/productTypes#attributedefinition)\n"
"description": "[Product attribute definition](https://docs.commercetools.com/api/projects/productTypes#attributedefinition)\n"
},
"description": {
"type": "string"
Expand All @@ -2602,7 +2684,7 @@
"items": {
"$ref": "#/types/commercetools:index/ProductTypeAttribute:ProductTypeAttribute"
},
"description": "[Product attribute fefinition](https://docs.commercetools.com/api/projects/productTypes#attributedefinition)\n"
"description": "[Product attribute definition](https://docs.commercetools.com/api/projects/productTypes#attributedefinition)\n"
},
"description": {
"type": "string"
Expand Down Expand Up @@ -3343,6 +3425,13 @@
},
"description": "[LocalizedString](https://docs.commercetools.com/api/types#localizedstring)\n"
},
"productSelections": {
"type": "array",
"items": {
"$ref": "#/types/commercetools:index/StoreProductSelection:StoreProductSelection"
},
"description": "Controls availability of Products for this Store via Product Selections\n"
},
"supplyChannels": {
"type": "array",
"items": {
Expand Down Expand Up @@ -3396,6 +3485,13 @@
},
"description": "[LocalizedString](https://docs.commercetools.com/api/types#localizedstring)\n"
},
"productSelections": {
"type": "array",
"items": {
"$ref": "#/types/commercetools:index/StoreProductSelection:StoreProductSelection"
},
"description": "Controls availability of Products for this Store via Product Selections\n"
},
"supplyChannels": {
"type": "array",
"items": {
Expand Down Expand Up @@ -3446,6 +3542,13 @@
},
"description": "[LocalizedString](https://docs.commercetools.com/api/types#localizedstring)\n"
},
"productSelections": {
"type": "array",
"items": {
"$ref": "#/types/commercetools:index/StoreProductSelection:StoreProductSelection"
},
"description": "Controls availability of Products for this Store via Product Selections\n"
},
"supplyChannels": {
"type": "array",
"items": {
Expand Down
Loading

0 comments on commit 1aac83f

Please sign in to comment.