diff --git a/.changeset/selfish-spies-shop.md b/.changeset/selfish-spies-shop.md new file mode 100644 index 00000000..c5d00a3a --- /dev/null +++ b/.changeset/selfish-spies-shop.md @@ -0,0 +1,5 @@ +--- +"@sap-ux/fe-mockserver-core": patch +--- + +fix: update metadata definition for v2 requests diff --git a/packages/fe-mockserver-core/src/data/dataAccess.ts b/packages/fe-mockserver-core/src/data/dataAccess.ts index fa640140..bfcd6798 100644 --- a/packages/fe-mockserver-core/src/data/dataAccess.ts +++ b/packages/fe-mockserver-core/src/data/dataAccess.ts @@ -971,6 +971,10 @@ export class DataAccess implements DataAccessInterface { case 'Edm.Int64': { return `${key}=${currentKeys[key]}`; } + case 'Edm.Boolean': + return `${key}=${currentKeys[key]}`; + case 'Edm.Guid': + return `${key}=guid'${currentKeys[key]}'`; default: { return `${key}='${currentKeys[key]}'`; } diff --git a/packages/fe-mockserver-core/test/unit/v2/__snapshots__/dataAccess.test.ts.snap b/packages/fe-mockserver-core/test/unit/v2/__snapshots__/dataAccess.test.ts.snap index 7ffcb095..39f4ad7b 100644 --- a/packages/fe-mockserver-core/test/unit/v2/__snapshots__/dataAccess.test.ts.snap +++ b/packages/fe-mockserver-core/test/unit/v2/__snapshots__/dataAccess.test.ts.snap @@ -10,7 +10,7 @@ exports[`Data Access v2metadata - it can DELETE data for an entity 2`] = ` } `; -exports[`Data Access v2metadata - it can GET data for an entity 1`] = `"{"d":{"__count":4,"results":[{"ProductID":1,"Product":"Acme_Boomerang","DraftUUID":"","IsActiveEntity":true,"HasActiveEntity":true,"HasDraftEntity":false,"Copy_ac":false,"ProductForEdit":"","ProductCategory":"","ProductPictureURL":"","to_ProductTextInOriginalLang":{"Preparation_ac":false,"Validation_ac":false,"Description_fc":0,"LanguageForEdit_fc":0,"Delete_mc":false,"Product":"","Language":"","LanguageForEdit":"","Name":"","Description":"","DraftUUID":"","DraftEntityCreationDateTime":"/Date()/","DraftEntityLastChangeDateTime":"/Date()/","ParentDraftUUID":"","HasActiveEntity":false,"HasDraftEntity":false,"IsActiveEntity":false,"__metadata":{"id":"undefined/SEPMRA_C_PD_ProductText(Product='',Language='',DraftUUID='',IsActiveEntity='false')","uri":"undefined/SEPMRA_C_PD_ProductText(Product='',Language='',DraftUUID='',IsActiveEntity='false')","type":"SEPMRA_PROD_MAN.SEPMRA_C_PD_ProductTextType"}},"DraftAdministrativeData":{"DraftUUID":"","DraftEntityType":"","CreationDateTime":"/Date()/","CreatedByUser":"","LastChangeDateTime":"/Date()/","LastChangedByUser":"","DraftAccessType":"","ProcessingStartDateTime":"/Date()/","InProcessByUser":"","DraftIsKeptByUser":false,"EnqueueStartDateTime":"/Date()/","DraftIsCreatedByMe":false,"DraftIsLastChangedByMe":false,"DraftIsProcessedByMe":false,"CreatedByUserDescription":"","LastChangedByUserDescription":"","InProcessByUserDescription":"","__metadata":{"id":"undefined/I_DraftAdministrativeData()","uri":"undefined/I_DraftAdministrativeData()","type":"SEPMRA_PROD_MAN.I_DraftAdministrativeDataType"}},"__metadata":{"id":"undefined/SEPMRA_C_PD_Product(ProductID=1,DraftUUID='',IsActiveEntity='true')","uri":"undefined/SEPMRA_C_PD_Product(ProductID=1,DraftUUID='',IsActiveEntity='true')","type":"SEPMRA_PROD_MAN.SEPMRA_C_PD_ProductType"}},{"ProductID":2,"Product":"Acme_TNT","DraftUUID":"","IsActiveEntity":true,"HasActiveEntity":true,"HasDraftEntity":false,"Copy_ac":false,"ProductForEdit":"","ProductCategory":"","ProductPictureURL":"","to_ProductTextInOriginalLang":{"Preparation_ac":false,"Validation_ac":false,"Description_fc":0,"LanguageForEdit_fc":0,"Delete_mc":false,"Product":"","Language":"","LanguageForEdit":"","Name":"","Description":"","DraftUUID":"","DraftEntityCreationDateTime":"/Date()/","DraftEntityLastChangeDateTime":"/Date()/","ParentDraftUUID":"","HasActiveEntity":false,"HasDraftEntity":false,"IsActiveEntity":false,"__metadata":{"id":"undefined/SEPMRA_C_PD_ProductText(Product='',Language='',DraftUUID='',IsActiveEntity='false')","uri":"undefined/SEPMRA_C_PD_ProductText(Product='',Language='',DraftUUID='',IsActiveEntity='false')","type":"SEPMRA_PROD_MAN.SEPMRA_C_PD_ProductTextType"}},"DraftAdministrativeData":{"DraftUUID":"","DraftEntityType":"","CreationDateTime":"/Date()/","CreatedByUser":"","LastChangeDateTime":"/Date()/","LastChangedByUser":"","DraftAccessType":"","ProcessingStartDateTime":"/Date()/","InProcessByUser":"","DraftIsKeptByUser":false,"EnqueueStartDateTime":"/Date()/","DraftIsCreatedByMe":false,"DraftIsLastChangedByMe":false,"DraftIsProcessedByMe":false,"CreatedByUserDescription":"","LastChangedByUserDescription":"","InProcessByUserDescription":"","__metadata":{"id":"undefined/I_DraftAdministrativeData()","uri":"undefined/I_DraftAdministrativeData()","type":"SEPMRA_PROD_MAN.I_DraftAdministrativeDataType"}},"__metadata":{"id":"undefined/SEPMRA_C_PD_Product(ProductID=2,DraftUUID='',IsActiveEntity='true')","uri":"undefined/SEPMRA_C_PD_Product(ProductID=2,DraftUUID='',IsActiveEntity='true')","type":"SEPMRA_PROD_MAN.SEPMRA_C_PD_ProductType"}},{"ProductID":3,"Product":"Acme_Trap","DraftUUID":"","IsActiveEntity":true,"HasActiveEntity":true,"HasDraftEntity":false,"Copy_ac":false,"ProductForEdit":"","ProductCategory":"","ProductPictureURL":"","to_ProductTextInOriginalLang":{"Preparation_ac":false,"Validation_ac":false,"Description_fc":0,"LanguageForEdit_fc":0,"Delete_mc":false,"Product":"","Language":"","LanguageForEdit":"","Name":"","Description":"","DraftUUID":"","DraftEntityCreationDateTime":"/Date()/","DraftEntityLastChangeDateTime":"/Date()/","ParentDraftUUID":"","HasActiveEntity":false,"HasDraftEntity":false,"IsActiveEntity":false,"__metadata":{"id":"undefined/SEPMRA_C_PD_ProductText(Product='',Language='',DraftUUID='',IsActiveEntity='false')","uri":"undefined/SEPMRA_C_PD_ProductText(Product='',Language='',DraftUUID='',IsActiveEntity='false')","type":"SEPMRA_PROD_MAN.SEPMRA_C_PD_ProductTextType"}},"DraftAdministrativeData":{"DraftUUID":"","DraftEntityType":"","CreationDateTime":"/Date()/","CreatedByUser":"","LastChangeDateTime":"/Date()/","LastChangedByUser":"","DraftAccessType":"","ProcessingStartDateTime":"/Date()/","InProcessByUser":"","DraftIsKeptByUser":false,"EnqueueStartDateTime":"/Date()/","DraftIsCreatedByMe":false,"DraftIsLastChangedByMe":false,"DraftIsProcessedByMe":false,"CreatedByUserDescription":"","LastChangedByUserDescription":"","InProcessByUserDescription":"","__metadata":{"id":"undefined/I_DraftAdministrativeData()","uri":"undefined/I_DraftAdministrativeData()","type":"SEPMRA_PROD_MAN.I_DraftAdministrativeDataType"}},"__metadata":{"id":"undefined/SEPMRA_C_PD_Product(ProductID=3,DraftUUID='',IsActiveEntity='true')","uri":"undefined/SEPMRA_C_PD_Product(ProductID=3,DraftUUID='',IsActiveEntity='true')","type":"SEPMRA_PROD_MAN.SEPMRA_C_PD_ProductType"}},{"ProductID":4,"Product":"Acme_Safe","DraftUUID":"","IsActiveEntity":true,"HasActiveEntity":true,"HasDraftEntity":false,"Copy_ac":false,"ProductForEdit":"","ProductCategory":"","ProductPictureURL":"","to_ProductTextInOriginalLang":{"Preparation_ac":false,"Validation_ac":false,"Description_fc":0,"LanguageForEdit_fc":0,"Delete_mc":false,"Product":"","Language":"","LanguageForEdit":"","Name":"","Description":"","DraftUUID":"","DraftEntityCreationDateTime":"/Date()/","DraftEntityLastChangeDateTime":"/Date()/","ParentDraftUUID":"","HasActiveEntity":false,"HasDraftEntity":false,"IsActiveEntity":false,"__metadata":{"id":"undefined/SEPMRA_C_PD_ProductText(Product='',Language='',DraftUUID='',IsActiveEntity='false')","uri":"undefined/SEPMRA_C_PD_ProductText(Product='',Language='',DraftUUID='',IsActiveEntity='false')","type":"SEPMRA_PROD_MAN.SEPMRA_C_PD_ProductTextType"}},"DraftAdministrativeData":{"DraftUUID":"","DraftEntityType":"","CreationDateTime":"/Date()/","CreatedByUser":"","LastChangeDateTime":"/Date()/","LastChangedByUser":"","DraftAccessType":"","ProcessingStartDateTime":"/Date()/","InProcessByUser":"","DraftIsKeptByUser":false,"EnqueueStartDateTime":"/Date()/","DraftIsCreatedByMe":false,"DraftIsLastChangedByMe":false,"DraftIsProcessedByMe":false,"CreatedByUserDescription":"","LastChangedByUserDescription":"","InProcessByUserDescription":"","__metadata":{"id":"undefined/I_DraftAdministrativeData()","uri":"undefined/I_DraftAdministrativeData()","type":"SEPMRA_PROD_MAN.I_DraftAdministrativeDataType"}},"__metadata":{"id":"undefined/SEPMRA_C_PD_Product(ProductID=4,DraftUUID='',IsActiveEntity='true')","uri":"undefined/SEPMRA_C_PD_Product(ProductID=4,DraftUUID='',IsActiveEntity='true')","type":"SEPMRA_PROD_MAN.SEPMRA_C_PD_ProductType"}}]}}"`; +exports[`Data Access v2metadata - it can GET data for an entity 1`] = `"{"d":{"__count":4,"results":[{"ProductID":1,"Product":"Acme_Boomerang","DraftUUID":"","IsActiveEntity":true,"HasActiveEntity":true,"HasDraftEntity":false,"Copy_ac":false,"ProductForEdit":"","ProductCategory":"","ProductPictureURL":"","to_ProductTextInOriginalLang":{"Preparation_ac":false,"Validation_ac":false,"Description_fc":0,"LanguageForEdit_fc":0,"Delete_mc":false,"Product":"","Language":"","LanguageForEdit":"","Name":"","Description":"","DraftUUID":"","DraftEntityCreationDateTime":"/Date()/","DraftEntityLastChangeDateTime":"/Date()/","ParentDraftUUID":"","HasActiveEntity":false,"HasDraftEntity":false,"IsActiveEntity":false,"__metadata":{"id":"undefined/SEPMRA_C_PD_ProductText(Product='',Language='',DraftUUID=guid'',IsActiveEntity=false)","uri":"undefined/SEPMRA_C_PD_ProductText(Product='',Language='',DraftUUID=guid'',IsActiveEntity=false)","type":"SEPMRA_PROD_MAN.SEPMRA_C_PD_ProductTextType"}},"DraftAdministrativeData":{"DraftUUID":"","DraftEntityType":"","CreationDateTime":"/Date()/","CreatedByUser":"","LastChangeDateTime":"/Date()/","LastChangedByUser":"","DraftAccessType":"","ProcessingStartDateTime":"/Date()/","InProcessByUser":"","DraftIsKeptByUser":false,"EnqueueStartDateTime":"/Date()/","DraftIsCreatedByMe":false,"DraftIsLastChangedByMe":false,"DraftIsProcessedByMe":false,"CreatedByUserDescription":"","LastChangedByUserDescription":"","InProcessByUserDescription":"","__metadata":{"id":"undefined/I_DraftAdministrativeData()","uri":"undefined/I_DraftAdministrativeData()","type":"SEPMRA_PROD_MAN.I_DraftAdministrativeDataType"}},"__metadata":{"id":"undefined/SEPMRA_C_PD_Product(ProductID=1,DraftUUID=guid'',IsActiveEntity=true)","uri":"undefined/SEPMRA_C_PD_Product(ProductID=1,DraftUUID=guid'',IsActiveEntity=true)","type":"SEPMRA_PROD_MAN.SEPMRA_C_PD_ProductType"}},{"ProductID":2,"Product":"Acme_TNT","DraftUUID":"","IsActiveEntity":true,"HasActiveEntity":true,"HasDraftEntity":false,"Copy_ac":false,"ProductForEdit":"","ProductCategory":"","ProductPictureURL":"","to_ProductTextInOriginalLang":{"Preparation_ac":false,"Validation_ac":false,"Description_fc":0,"LanguageForEdit_fc":0,"Delete_mc":false,"Product":"","Language":"","LanguageForEdit":"","Name":"","Description":"","DraftUUID":"","DraftEntityCreationDateTime":"/Date()/","DraftEntityLastChangeDateTime":"/Date()/","ParentDraftUUID":"","HasActiveEntity":false,"HasDraftEntity":false,"IsActiveEntity":false,"__metadata":{"id":"undefined/SEPMRA_C_PD_ProductText(Product='',Language='',DraftUUID=guid'',IsActiveEntity=false)","uri":"undefined/SEPMRA_C_PD_ProductText(Product='',Language='',DraftUUID=guid'',IsActiveEntity=false)","type":"SEPMRA_PROD_MAN.SEPMRA_C_PD_ProductTextType"}},"DraftAdministrativeData":{"DraftUUID":"","DraftEntityType":"","CreationDateTime":"/Date()/","CreatedByUser":"","LastChangeDateTime":"/Date()/","LastChangedByUser":"","DraftAccessType":"","ProcessingStartDateTime":"/Date()/","InProcessByUser":"","DraftIsKeptByUser":false,"EnqueueStartDateTime":"/Date()/","DraftIsCreatedByMe":false,"DraftIsLastChangedByMe":false,"DraftIsProcessedByMe":false,"CreatedByUserDescription":"","LastChangedByUserDescription":"","InProcessByUserDescription":"","__metadata":{"id":"undefined/I_DraftAdministrativeData()","uri":"undefined/I_DraftAdministrativeData()","type":"SEPMRA_PROD_MAN.I_DraftAdministrativeDataType"}},"__metadata":{"id":"undefined/SEPMRA_C_PD_Product(ProductID=2,DraftUUID=guid'',IsActiveEntity=true)","uri":"undefined/SEPMRA_C_PD_Product(ProductID=2,DraftUUID=guid'',IsActiveEntity=true)","type":"SEPMRA_PROD_MAN.SEPMRA_C_PD_ProductType"}},{"ProductID":3,"Product":"Acme_Trap","DraftUUID":"","IsActiveEntity":true,"HasActiveEntity":true,"HasDraftEntity":false,"Copy_ac":false,"ProductForEdit":"","ProductCategory":"","ProductPictureURL":"","to_ProductTextInOriginalLang":{"Preparation_ac":false,"Validation_ac":false,"Description_fc":0,"LanguageForEdit_fc":0,"Delete_mc":false,"Product":"","Language":"","LanguageForEdit":"","Name":"","Description":"","DraftUUID":"","DraftEntityCreationDateTime":"/Date()/","DraftEntityLastChangeDateTime":"/Date()/","ParentDraftUUID":"","HasActiveEntity":false,"HasDraftEntity":false,"IsActiveEntity":false,"__metadata":{"id":"undefined/SEPMRA_C_PD_ProductText(Product='',Language='',DraftUUID=guid'',IsActiveEntity=false)","uri":"undefined/SEPMRA_C_PD_ProductText(Product='',Language='',DraftUUID=guid'',IsActiveEntity=false)","type":"SEPMRA_PROD_MAN.SEPMRA_C_PD_ProductTextType"}},"DraftAdministrativeData":{"DraftUUID":"","DraftEntityType":"","CreationDateTime":"/Date()/","CreatedByUser":"","LastChangeDateTime":"/Date()/","LastChangedByUser":"","DraftAccessType":"","ProcessingStartDateTime":"/Date()/","InProcessByUser":"","DraftIsKeptByUser":false,"EnqueueStartDateTime":"/Date()/","DraftIsCreatedByMe":false,"DraftIsLastChangedByMe":false,"DraftIsProcessedByMe":false,"CreatedByUserDescription":"","LastChangedByUserDescription":"","InProcessByUserDescription":"","__metadata":{"id":"undefined/I_DraftAdministrativeData()","uri":"undefined/I_DraftAdministrativeData()","type":"SEPMRA_PROD_MAN.I_DraftAdministrativeDataType"}},"__metadata":{"id":"undefined/SEPMRA_C_PD_Product(ProductID=3,DraftUUID=guid'',IsActiveEntity=true)","uri":"undefined/SEPMRA_C_PD_Product(ProductID=3,DraftUUID=guid'',IsActiveEntity=true)","type":"SEPMRA_PROD_MAN.SEPMRA_C_PD_ProductType"}},{"ProductID":4,"Product":"Acme_Safe","DraftUUID":"","IsActiveEntity":true,"HasActiveEntity":true,"HasDraftEntity":false,"Copy_ac":false,"ProductForEdit":"","ProductCategory":"","ProductPictureURL":"","to_ProductTextInOriginalLang":{"Preparation_ac":false,"Validation_ac":false,"Description_fc":0,"LanguageForEdit_fc":0,"Delete_mc":false,"Product":"","Language":"","LanguageForEdit":"","Name":"","Description":"","DraftUUID":"","DraftEntityCreationDateTime":"/Date()/","DraftEntityLastChangeDateTime":"/Date()/","ParentDraftUUID":"","HasActiveEntity":false,"HasDraftEntity":false,"IsActiveEntity":false,"__metadata":{"id":"undefined/SEPMRA_C_PD_ProductText(Product='',Language='',DraftUUID=guid'',IsActiveEntity=false)","uri":"undefined/SEPMRA_C_PD_ProductText(Product='',Language='',DraftUUID=guid'',IsActiveEntity=false)","type":"SEPMRA_PROD_MAN.SEPMRA_C_PD_ProductTextType"}},"DraftAdministrativeData":{"DraftUUID":"","DraftEntityType":"","CreationDateTime":"/Date()/","CreatedByUser":"","LastChangeDateTime":"/Date()/","LastChangedByUser":"","DraftAccessType":"","ProcessingStartDateTime":"/Date()/","InProcessByUser":"","DraftIsKeptByUser":false,"EnqueueStartDateTime":"/Date()/","DraftIsCreatedByMe":false,"DraftIsLastChangedByMe":false,"DraftIsProcessedByMe":false,"CreatedByUserDescription":"","LastChangedByUserDescription":"","InProcessByUserDescription":"","__metadata":{"id":"undefined/I_DraftAdministrativeData()","uri":"undefined/I_DraftAdministrativeData()","type":"SEPMRA_PROD_MAN.I_DraftAdministrativeDataType"}},"__metadata":{"id":"undefined/SEPMRA_C_PD_Product(ProductID=4,DraftUUID=guid'',IsActiveEntity=true)","uri":"undefined/SEPMRA_C_PD_Product(ProductID=4,DraftUUID=guid'',IsActiveEntity=true)","type":"SEPMRA_PROD_MAN.SEPMRA_C_PD_ProductType"}}]}}"`; exports[`Data Access v2metadata - it can GET data for an entity 2`] = ` { @@ -21,7 +21,7 @@ exports[`Data Access v2metadata - it can GET data for an entity 2`] = ` } `; -exports[`Data Access v2metadata - it can GET data for an entity 3`] = `"{"d":{"ProductID":1,"Product":"Acme_Boomerang","DraftUUID":"","Price":3,"Name":"Acme Boomerang","Supplier":"Acme DE","StartingSaleDate":"2018-01-01T00:00:00","IsActiveEntity":true,"HasActiveEntity":true,"HasDraftEntity":false,"Activation_ac":false,"Copy_ac":false,"Copy_new_supplier_ac":false,"Create_review_post_ac":false,"Delete_ext_ac":false,"Edit_ac":false,"Favorites_add_ac":false,"Favorites_remove_ac":false,"Favorites_toggle_ac":false,"Mycart_add_ac":false,"Preparation_ac":false,"Shortage_list_ac":false,"Validation_ac":false,"Description_fc":0,"ProductForEdit_fc":0,"ProductForEdit":"","ProductCategory":"","Currency":"","Height":0,"Width":0,"Depth":0,"DimensionUnit":"","ProductPictureURL":"","ProductBaseUnit":"","Weight":0,"WeightUnit":"","OriginalLanguage":"","Description":"","DraftEntityCreationDateTime":"/Date()/","DraftEntityLastChangeDateTime":"/Date()/","__metadata":{"id":"undefined/SEPMRA_C_PD_Product(ProductID=1,DraftUUID='',IsActiveEntity='true')","uri":"undefined/SEPMRA_C_PD_Product(ProductID=1,DraftUUID='',IsActiveEntity='true')","type":"SEPMRA_PROD_MAN.SEPMRA_C_PD_ProductType"}}}"`; +exports[`Data Access v2metadata - it can GET data for an entity 3`] = `"{"d":{"ProductID":1,"Product":"Acme_Boomerang","DraftUUID":"","Price":3,"Name":"Acme Boomerang","Supplier":"Acme DE","StartingSaleDate":"2018-01-01T00:00:00","IsActiveEntity":true,"HasActiveEntity":true,"HasDraftEntity":false,"Activation_ac":false,"Copy_ac":false,"Copy_new_supplier_ac":false,"Create_review_post_ac":false,"Delete_ext_ac":false,"Edit_ac":false,"Favorites_add_ac":false,"Favorites_remove_ac":false,"Favorites_toggle_ac":false,"Mycart_add_ac":false,"Preparation_ac":false,"Shortage_list_ac":false,"Validation_ac":false,"Description_fc":0,"ProductForEdit_fc":0,"ProductForEdit":"","ProductCategory":"","Currency":"","Height":0,"Width":0,"Depth":0,"DimensionUnit":"","ProductPictureURL":"","ProductBaseUnit":"","Weight":0,"WeightUnit":"","OriginalLanguage":"","Description":"","DraftEntityCreationDateTime":"/Date()/","DraftEntityLastChangeDateTime":"/Date()/","__metadata":{"id":"undefined/SEPMRA_C_PD_Product(ProductID=1,DraftUUID=guid'',IsActiveEntity=true)","uri":"undefined/SEPMRA_C_PD_Product(ProductID=1,DraftUUID=guid'',IsActiveEntity=true)","type":"SEPMRA_PROD_MAN.SEPMRA_C_PD_ProductType"}}}"`; exports[`Data Access v2metadata - it can GET data for an entity 4`] = ` { @@ -32,7 +32,7 @@ exports[`Data Access v2metadata - it can GET data for an entity 4`] = ` } `; -exports[`Data Access v2metadata - it can POST data for an entity 1`] = `"{"d":{"StartingSaleDate":"2022-12-21T00:00:00","Activation_ac":false,"Copy_ac":false,"Copy_new_supplier_ac":false,"Create_review_post_ac":false,"Delete_ext_ac":false,"Edit_ac":false,"Favorites_add_ac":false,"Favorites_remove_ac":false,"Favorites_toggle_ac":false,"Mycart_add_ac":false,"Preparation_ac":false,"Shortage_list_ac":false,"Validation_ac":false,"Description_fc":0,"ProductForEdit_fc":0,"ProductID":1,"Product":"Acme_Bazooka","ProductForEdit":"","ProductCategory":"","Price":3,"Currency":"","Height":0,"Width":0,"Depth":0,"DimensionUnit":"","ProductPictureURL":"","Supplier":"Acme FR","ProductBaseUnit":"","Weight":0,"WeightUnit":"","OriginalLanguage":"","Name":"Acme Bazooka","Description":"","DraftUUID":"","DraftEntityCreationDateTime":"/Date()/","DraftEntityLastChangeDateTime":"/Date()/","HasActiveEntity":false,"HasDraftEntity":false,"IsActiveEntity":false,"DraftAdministrativeData":{"DraftUUID":"","CreationDateTime":"/Date()/","CreatedByUser":"nobody","DraftIsCreatedByMe":true,"LastChangeDateTime":"/Date()/","LastChangedByUser":"nobody","InProcessByUser":"nobody","DraftIsProcessedByMe":true},"__metadata":{"id":"undefined/SEPMRA_C_PD_Product(ProductID=1,DraftUUID='')","uri":"undefined/SEPMRA_C_PD_Product(ProductID=1,DraftUUID='')","type":"SEPMRA_PROD_MAN.SEPMRA_C_PD_ProductType"}}}"`; +exports[`Data Access v2metadata - it can POST data for an entity 1`] = `"{"d":{"StartingSaleDate":"2022-12-21T00:00:00","Activation_ac":false,"Copy_ac":false,"Copy_new_supplier_ac":false,"Create_review_post_ac":false,"Delete_ext_ac":false,"Edit_ac":false,"Favorites_add_ac":false,"Favorites_remove_ac":false,"Favorites_toggle_ac":false,"Mycart_add_ac":false,"Preparation_ac":false,"Shortage_list_ac":false,"Validation_ac":false,"Description_fc":0,"ProductForEdit_fc":0,"ProductID":1,"Product":"Acme_Bazooka","ProductForEdit":"","ProductCategory":"","Price":3,"Currency":"","Height":0,"Width":0,"Depth":0,"DimensionUnit":"","ProductPictureURL":"","Supplier":"Acme FR","ProductBaseUnit":"","Weight":0,"WeightUnit":"","OriginalLanguage":"","Name":"Acme Bazooka","Description":"","DraftUUID":"","DraftEntityCreationDateTime":"/Date()/","DraftEntityLastChangeDateTime":"/Date()/","HasActiveEntity":false,"HasDraftEntity":false,"IsActiveEntity":false,"DraftAdministrativeData":{"DraftUUID":"","CreationDateTime":"/Date()/","CreatedByUser":"nobody","DraftIsCreatedByMe":true,"LastChangeDateTime":"/Date()/","LastChangedByUser":"nobody","InProcessByUser":"nobody","DraftIsProcessedByMe":true},"__metadata":{"id":"undefined/SEPMRA_C_PD_Product(ProductID=1,DraftUUID=guid'')","uri":"undefined/SEPMRA_C_PD_Product(ProductID=1,DraftUUID=guid'')","type":"SEPMRA_PROD_MAN.SEPMRA_C_PD_ProductType"}}}"`; exports[`Data Access v2metadata - it can POST data for an entity 2`] = ` {